diff options
Diffstat (limited to 'ci/build-mingw64.sh')
-rwxr-xr-x | ci/build-mingw64.sh | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh index 574c5c3fd8..5e4e93f119 100755 --- a/ci/build-mingw64.sh +++ b/ci/build-mingw64.sh @@ -99,7 +99,7 @@ fi ## freetype2 if [ ! -e "$prefix_dir/lib/libfreetype.dll.a" ]; then - ver=2.10.2 + ver=2.11.0 gettar "https://download.savannah.gnu.org/releases/freetype/freetype-${ver}.tar.gz" builddir freetype-${ver} ZLIB_LIBS="-L'$prefix_dir/lib' -lz" \ @@ -111,7 +111,7 @@ fi ## fribidi if [ ! -e "$prefix_dir/lib/libfribidi.dll.a" ]; then - ver=1.0.9 + ver=1.0.11 gettar "https://github.com/fribidi/fribidi/releases/download/v${ver}/fribidi-${ver}.tar.xz" builddir fribidi-${ver} ../configure --host=$TARGET $commonflags @@ -121,7 +121,7 @@ fi ## harfbuzz if [ ! -e "$prefix_dir/lib/libharfbuzz.dll.a" ]; then - ver=2.7.2 + ver=3.0.0 gettar "https://github.com/harfbuzz/harfbuzz/releases/download/${ver}/harfbuzz-${ver}.tar.xz" builddir harfbuzz-${ver} ../configure --host=$TARGET $commonflags --with-icu=no @@ -154,9 +154,39 @@ if [ ! -e "$prefix_dir/lib/libluajit-5.1.a" ]; then fi ## mpv -PKG_CONFIG=pkg-config CFLAGS="-I'$prefix_dir/include'" LDFLAGS="-L'$prefix_dir/lib'" \ -python3 ./waf configure \ - --enable-libmpv-shared --lua=luajit \ - --enable-{shaderc,spirv-cross,d3d11} -python3 ./waf build --verbose +if [ $1 = "meson" ]; then + CPU="x86_64" + mkdir -p "${TARGET}_mingw_build" && pushd "${TARGET}_mingw_build" + +cat > mingw64_crossfile << EOF +[binaries] +c = '${CC}' +cpp = '${CXX}' +ar = '${AR}' +strip = '${TARGET}-strip' +pkgconfig = 'pkg-config' +exe_wrapper = 'wine64' # A command used to run generated executables. +windres = '${TARGET}-windres' +[host_machine] +system = 'windows' +cpu_family = '${CPU}' +cpu = '${CPU}' +endian = 'little' +EOF + + CFLAGS="-I'$prefix_dir/include'" LDFLAGS="-L'$prefix_dir/lib'" \ + meson .. --cross-file mingw64_crossfile --libdir lib \ + -Dlibmpv=true -Dlua=luajit -D{shaderc,spirv-cross,d3d11}=enabled + + meson compile +fi + +if [ $1 = "waf" ]; then + PKG_CONFIG=pkg-config CFLAGS="-I'$prefix_dir/include'" LDFLAGS="-L'$prefix_dir/lib'" \ + python3 ./waf configure \ + --enable-libmpv-shared --lua=luajit \ + --enable-{shaderc,spirv-cross,d3d11} + + python3 ./waf build --verbose +fi |