ci/mingw: enable javascript support

This commit is contained in:
Kacper Michajłow 2024-06-05 21:20:27 +02:00
parent b6d7f778b8
commit ac5d27fce5
2 changed files with 10 additions and 2 deletions

View File

@ -57,6 +57,11 @@ jobs:
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: Install Meson Wraps
run: |
mkdir subprojects -p
meson wrap install mujs
- name: Build libraries
run: |
./ci/build-mingw64.sh

View File

@ -36,7 +36,7 @@ fam=x86_64
cat >"$prefix_dir/crossfile" <<EOF
[built-in options]
buildtype = 'release'
wrap_mode = 'nodownload'
wrap_mode = 'nofallback'
[binaries]
c = ['ccache', '${CC}']
cpp = ['ccache', '${CXX}']
@ -297,8 +297,11 @@ meson setup $build --cross-file "$prefix_dir/crossfile" \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
--buildtype debugoptimized \
--force-fallback-for=mujs \
-Dmujs:werror=false \
-Dmujs:default_library=static \
-D{libmpv,tests}=true -Dlua=luajit \
-D{shaderc,spirv-cross,d3d11}=enabled
-D{shaderc,spirv-cross,d3d11,javascript}=enabled
meson compile -C $build