ci/mingw: add exe_wrapper to cross file

Allows running complied binaries on build machine.
This commit is contained in:
Kacper Michajłow 2024-05-21 22:48:47 +02:00
parent 7e8c887873
commit bb078b8303
2 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,7 @@ jobs:
run: | run: |
sudo dpkg --add-architecture i386 sudo dpkg --add-architecture i386
sudo apt-get update sudo apt-get update
sudo apt-get install -y ccache g++-mingw-w64 gcc-multilib nasm ninja-build pkg-config python3-pip wine sudo apt-get install -y ccache g++-mingw-w64 gcc-multilib nasm ninja-build pkg-config python3-pip wine wine32 wine64
sudo python3 -m pip install meson sudo python3 -m pip install meson
- name: Build libraries - name: Build libraries

View File

@ -23,6 +23,10 @@ export LDFLAGS="-fstack-protector-strong"
export PKG_CONFIG_SYSROOT_DIR="$prefix_dir" export PKG_CONFIG_SYSROOT_DIR="$prefix_dir"
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_SYSROOT_DIR/lib/pkgconfig" export PKG_CONFIG_LIBDIR="$PKG_CONFIG_SYSROOT_DIR/lib/pkgconfig"
if [[ "$TARGET" == "i686-"* ]]; then
export WINEPATH="`$CC -print-file-name=`;/usr/$TARGET/lib"
fi
# autotools(-like) # autotools(-like)
commonflags="--disable-static --enable-shared" commonflags="--disable-static --enable-shared"
@ -41,6 +45,7 @@ strip = '${TARGET}-strip'
pkgconfig = 'pkg-config' pkgconfig = 'pkg-config'
windres = '${TARGET}-windres' windres = '${TARGET}-windres'
dlltool = '${TARGET}-dlltool' dlltool = '${TARGET}-dlltool'
exe_wrapper = 'wine'
[host_machine] [host_machine]
system = 'windows' system = 'windows'
cpu_family = '${fam}' cpu_family = '${fam}'