From 5837f04b5b537db29365d606498905548f0a13c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 6 May 2024 01:19:12 +0200 Subject: [PATCH] ci/win32: add luajit --- ci/build-win32.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/build-win32.ps1 b/ci/build-win32.ps1 index 0bc6b05ca22e9..f8dde457d7e4f 100644 --- a/ci/build-win32.ps1 +++ b/ci/build-win32.ps1 @@ -61,6 +61,14 @@ spirv_cross_c_dep = declare_dependency(dependencies: [ meson.override_dependency('spirv-cross-c-shared', spirv_cross_c_dep) "@ +if (-not (Test-Path "$subprojects/packagefiles/luajit")) { + New-Item -Path "$subprojects/packagefiles/luajit" -ItemType Directory | Out-Null +} +git clone https://github.com/benoit-pierre/wrapdb --depth 1 -b pr/add_luajit wrapdb_luajit +Copy-Item -Path "wrapdb_luajit/subprojects/luajit.wrap" -Destination "$subprojects" +Copy-Item -Path "wrapdb_luajit/subprojects/packagefiles/luajit/*" ` +-Destination "$subprojects/packagefiles/luajit" -Recurse -Force + $projects = @( @{ Path = "$subprojects/ffmpeg.wrap" @@ -135,7 +143,9 @@ meson setup build ` -Dlibplacebo:shaderc=enabled ` -Dlibplacebo:vulkan=enabled ` -Dlibplacebo:d3d11=enabled ` + -Dluajit:amalgam=true ` -Dd3d11=enabled ` - -Djavascript=enabled + -Djavascript=enabled ` + -Dlua=luajit ninja -C build mpv.exe mpv.com libmpv.a ./build/mpv.com -v --no-config