1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

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: |
sudo dpkg --add-architecture i386
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
- name: Build libraries

View File

@ -23,6 +23,10 @@ export LDFLAGS="-fstack-protector-strong"
export PKG_CONFIG_SYSROOT_DIR="$prefix_dir"
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)
commonflags="--disable-static --enable-shared"
@ -41,6 +45,7 @@ strip = '${TARGET}-strip'
pkgconfig = 'pkg-config'
windres = '${TARGET}-windres'
dlltool = '${TARGET}-dlltool'
exe_wrapper = 'wine'
[host_machine]
system = 'windows'
cpu_family = '${fam}'