mirror of https://github.com/mpv-player/mpv
ci/mingw: enable javascript support
This commit is contained in:
parent
b6d7f778b8
commit
ac5d27fce5
|
@ -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 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: Install Meson Wraps
|
||||||
|
run: |
|
||||||
|
mkdir subprojects -p
|
||||||
|
meson wrap install mujs
|
||||||
|
|
||||||
- name: Build libraries
|
- name: Build libraries
|
||||||
run: |
|
run: |
|
||||||
./ci/build-mingw64.sh
|
./ci/build-mingw64.sh
|
||||||
|
|
|
@ -36,7 +36,7 @@ fam=x86_64
|
||||||
cat >"$prefix_dir/crossfile" <<EOF
|
cat >"$prefix_dir/crossfile" <<EOF
|
||||||
[built-in options]
|
[built-in options]
|
||||||
buildtype = 'release'
|
buildtype = 'release'
|
||||||
wrap_mode = 'nodownload'
|
wrap_mode = 'nofallback'
|
||||||
[binaries]
|
[binaries]
|
||||||
c = ['ccache', '${CC}']
|
c = ['ccache', '${CC}']
|
||||||
cpp = ['ccache', '${CXX}']
|
cpp = ['ccache', '${CXX}']
|
||||||
|
@ -297,8 +297,11 @@ meson setup $build --cross-file "$prefix_dir/crossfile" \
|
||||||
--werror \
|
--werror \
|
||||||
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
|
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
|
||||||
--buildtype debugoptimized \
|
--buildtype debugoptimized \
|
||||||
|
--force-fallback-for=mujs \
|
||||||
|
-Dmujs:werror=false \
|
||||||
|
-Dmujs:default_library=static \
|
||||||
-D{libmpv,tests}=true -Dlua=luajit \
|
-D{libmpv,tests}=true -Dlua=luajit \
|
||||||
-D{shaderc,spirv-cross,d3d11}=enabled
|
-D{shaderc,spirv-cross,d3d11,javascript}=enabled
|
||||||
|
|
||||||
meson compile -C $build
|
meson compile -C $build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue