Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f399d3e
Updating translation.
PerryWerneck Apr 16, 2025
cd3138d
Updating package control files.
PerryWerneck Jun 27, 2025
bd52156
Allowing use of lib3270 as static submodule.
PerryWerneck Jun 29, 2025
d982c26
Adding submodule for lib3270.
PerryWerneck Jun 29, 2025
42303fb
Updating gitignore.
PerryWerneck Jun 30, 2025
1364bc5
Updating translation.
PerryWerneck Jun 30, 2025
2cde11b
Working on win32 github action.
PerryWerneck Jun 30, 2025
6f263bf
Working on windows package.
PerryWerneck Jun 30, 2025
644204b
Merge pull request #49 from PerryWerneck/windows
PerryWerneck Jun 30, 2025
1be8555
Fixing win32 package.
PerryWerneck Jun 30, 2025
b30d041
Merge pull request #50 from PerryWerneck/windows
PerryWerneck Jun 30, 2025
3f9c2ea
Renaming win scripts.
PerryWerneck Jul 12, 2025
29fe9da
Removing unused targets.
PerryWerneck Jul 12, 2025
a68757e
Updating win32 action.
PerryWerneck Jul 12, 2025
9d2bf68
Disable publishing of mingw package.
PerryWerneck Jul 12, 2025
a0fd588
Updating msys2 check.
PerryWerneck Jul 12, 2025
b61935d
Merge pull request #51 from PerryWerneck/win
PerryWerneck Jul 12, 2025
0983625
Working on issue #52
PerryWerneck Jul 29, 2025
6436393
Updating meson.build.
PerryWerneck Aug 14, 2025
2e36579
Updating build instructions.
PerryWerneck Aug 15, 2025
94a3ef4
Merge branch 'master' into develop
PerryWerneck Aug 15, 2025
5c61835
Updating package control files.
PerryWerneck Aug 15, 2025
5854368
Updating translation & package control files.
PerryWerneck Aug 15, 2025
9bf0f51
Updating Readme.
PerryWerneck Aug 15, 2025
74d24ea
Changing default buildtype to 'release'
PerryWerneck Nov 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
sudo apt-get update
sudo apt-get install --yes meson pkg-config python3-dev pkg-config lib3270-dev libgtk-3-dev

# Initializes the CodeQL tools for scanning.
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: check-msys2
on:
push:
branches: [ "win" ]
tags: [ "*" ]
pull_request:
branches: [ "master" ]

Expand All @@ -23,14 +24,8 @@ jobs:
msystem: mingw64
update: true
install: dos2unix mingw-w64-x86_64-meson mingw-w64-x86_64-gcc git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl mingw-w64-x86_64-gtk3
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/lib3270"
latest: true
fileName: "mingw-w64-x86_64-lib3270-5.5.0-0-x86_64.pkg.tar.zst"
- name: CI-Build
run: |
pacman -U --noconfirm *.pkg.tar.zst
dos2unix PKGBUILD.mingw
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
meson setup --prefix=/usr .build
meson compile -C .build

83 changes: 0 additions & 83 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ po
marshal
libtool
.vscode
lib3270
7 changes: 5 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
-------------------------------------------------------------------
Thu Feb 27 16:32:03 UTC 2025 - Perry Werneck <perry.werneck@gmail.com>

- Removing fixed meson version.

-------------------------------------------------------------------
Thu Dec 12 19:21:39 UTC 2024 - perry.werneck@gmail.com

- Update to version 5.5.0+git20241211:
* Disabling glade catalog on windows build.
* Publishing updated version 5.5.0
* Disabling static libraries
* Updating codeql workflow.
* Fixing glade install.
* Refactoring deb packages.
* Adding link to documentation.
* Fixing static sdk.
* Fixing pkg-config control file.
* Installing data files.
* Adding headers.
* Updating windows resources.
* Refactoring to meson build system.
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}

source=()

pkgver=$(grep AC_INIT "${startdir}/configure.ac" | cut -d[ -f3 | cut -d] -f1)
pkgver=5.5.0
pkgrel=0
pkgdesc="TN3270 Access library"
pkgdesc="3270 Virtual Terminal for GTK"
url="https://github.com/PerryWerneck/${_realname}"
arch=(i686 x86_64)
license=(LGPL-3.0-or-later)
Expand Down
91 changes: 46 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Created originally as part of [PW3270](../../../pw3270) application.

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![CodeQL](https://github.com/PerryWerneck/libv3270/workflows/CodeQL/badge.svg?branch=master)
[![CodeQL Advanced](https://github.com/PerryWerneck/libv3270/actions/workflows/codeql.yml/badge.svg)](https://github.com/PerryWerneck/libv3270/actions/workflows/codeql.yml)
[![build result](https://build.opensuse.org/projects/home:PerryWerneck:pw3270/packages/libv3270/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/libv3270)
[![Publish](https://github.com/PerryWerneck/libv3270/actions/workflows/publish.yml/badge.svg)](https://github.com/PerryWerneck/libv3270/actions/workflows/publish.yml)

Expand All @@ -13,22 +13,13 @@ Created originally as part of [PW3270](../../../pw3270) application.

[<img src="https://raw.githubusercontent.com/PerryWerneck/pw3270/master/branding/obs-badge-en.svg" alt="Download from open build service" height="80px">]([https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270&package=pw3270](https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270&package=libv3270))

### Windows

* TODO

## Building for Linux

### Requirements

* [GTK3](https://www.gtk.org/)
* [lib3270](../../../lib3270)

### Building

* TODO


## Building for windows

### Cross-compiling on SuSE Linux (Native or WSL)
Expand All @@ -38,7 +29,6 @@ Created originally as part of [PW3270](../../../pw3270) application.
```
sudo zypper ar obs://windows:mingw:win32 mingw32
sudo zypper ar obs://windows:mingw:win64 mingw64
sudo zypper ar obs://home:PerryWerneck:pw3270 pw3270
sudo zypper ref
```

Expand All @@ -48,48 +38,71 @@ Created originally as part of [PW3270](../../../pw3270) application.
git clone https://github.com/PerryWerneck/libv3270.git ./v3270
```

3. Install 64 bits cross compilers
3. Install cross compilers

```
./v3270/win/install-cross.sh --64
```shell
sudo zypper in \
pkgconfig \
gettext-devel \
mingw64-libcurl-devel \
mingw64-cross-meson \
mingw64-libopenssl-devel \
mingw64-cross-gcc-c++ \
'mingw64(pkg:gtk+-win32-3.0)' \
'mingw64(lib:iconv)' \
'mingw64(lib:intl)'
```

4. Configure 64 bits build environment
3. Configure and build

```
./v3270/win/win-configure.sh --64
```shell
meson setup --cross-file /usr/lib/rpm/macros.d/meson-mingw64-cross-file.txt .build
meson compile -C .build
```

5. Build
### Windows native with MSYS2

1. Install and update MSYS2

* Download and install [msys2](https://www.msys2.org/)
* Update msys:

```shell
pacman -Syu
```
cd v3270
make clean
make all
```
Afther this close and reopen mingw shell.

### Windows native with MSYS2
2. Update system path

1. Build and install [lib3270](../../../lib3270)
* Add c:\msys64\usr\bin and c:\msys64\mingw64\bin to system path

2. Install the required libraries
3. Install devel packages using pacman on mingw shell

```
pacman -S mingw-w64-x86_64-gtk3
```shell
pacman -S \
dos2unix \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-meson \
mingw-w64-x86_64-iconv \
pkgconf \
mingw-w64-x86_64-gettext \
gettext-devel \
mingw-w64-x86_64-openssl \
mingw-w64-x86_64-gtk3
```

2. Get libv3270 sources from git
Afther this close and reopen mingw shell.

4. Get libv3270 sources from git

```
git clone https://github.com/PerryWerneck/libv3270.git ./libv3270
```

4. Build library using the mingw shell
5. Build using makepkg

```
cd libv3270
./autogen.sh
make all
```shell
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
```

## Building for macOS
Expand Down Expand Up @@ -129,16 +142,4 @@ To uninstall
rm -fr "$(brew --cellar)/libv3270"
```

### Using jhbuild

1. Install jhbuild and GTK-OSX

https://wiki.gnome.org/Projects/GTK/OSX/Building

2. build

```shell
jhbuild --moduleset=https://raw.githubusercontent.com/PerryWerneck/libv3270/master/mac/libv3270.modules build libv3270
```


2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build-stamp:
dh_testdir

# Add here commands to compile the package.
meson setup --prefix=/usr .build
meson setup --buildtype=release --prefix=/usr .build
# --- end custom part for compiling

touch build-stamp
Expand Down
Loading
Loading