2023-01-10 04:54:25 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
if [ "$1" = "meson" ]; then
|
2023-01-29 06:30:58 +00:00
|
|
|
meson setup build \
|
2023-01-10 04:54:25 +00:00
|
|
|
-D cdda=enabled \
|
|
|
|
-D d3d-hwaccel=enabled \
|
|
|
|
-D d3d11=enabled \
|
|
|
|
-D dvdnav=enabled \
|
2023-01-19 04:23:57 +00:00
|
|
|
-D egl-angle-lib=enabled \
|
2023-01-10 04:54:25 +00:00
|
|
|
-D egl-angle-win32=enabled \
|
|
|
|
-D jpeg=enabled \
|
|
|
|
-D lcms2=enabled \
|
|
|
|
-D libarchive=enabled \
|
|
|
|
-D libbluray=enabled \
|
|
|
|
-D libmpv=true \
|
|
|
|
-D libplacebo=enabled \
|
2023-04-29 17:02:02 +00:00
|
|
|
-D lua=enabled \
|
2023-01-10 04:54:25 +00:00
|
|
|
-D pdf-build=enabled \
|
|
|
|
-D rubberband=enabled \
|
|
|
|
-D shaderc=enabled \
|
|
|
|
-D spirv-cross=enabled \
|
|
|
|
-D tests=true \
|
|
|
|
-D uchardet=enabled \
|
|
|
|
-D vapoursynth=enabled \
|
|
|
|
-D vulkan=enabled
|
2023-01-29 06:30:58 +00:00
|
|
|
meson compile -C build
|
|
|
|
cp ./build/generated/mpv.com ./build
|
2023-02-24 22:24:49 +00:00
|
|
|
./build/mpv.com -v --no-config
|
2023-01-10 04:54:25 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "waf" ]; then
|
|
|
|
./bootstrap.py
|
|
|
|
./waf configure \
|
2023-01-29 06:30:58 +00:00
|
|
|
--out=build_waf \
|
2023-01-10 04:54:25 +00:00
|
|
|
--enable-cdda \
|
|
|
|
--enable-d3d-hwaccel \
|
|
|
|
--enable-d3d11 \
|
|
|
|
--enable-dvdnav \
|
2023-01-19 04:23:57 +00:00
|
|
|
--enable-egl-angle-lib \
|
2023-01-10 04:54:25 +00:00
|
|
|
--enable-egl-angle-win32 \
|
|
|
|
--enable-jpeg \
|
|
|
|
--enable-lcms2 \
|
|
|
|
--enable-libarchive \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-libmpv-shared \
|
|
|
|
--enable-libplacebo \
|
|
|
|
--enable-pdf-build \
|
|
|
|
--enable-rubberband \
|
|
|
|
--enable-shaderc \
|
|
|
|
--enable-spirv-cross \
|
|
|
|
--enable-uchardet \
|
|
|
|
--enable-vapoursynth \
|
2023-04-29 17:02:02 +00:00
|
|
|
--enable-lua \
|
2023-01-10 04:54:25 +00:00
|
|
|
--enable-vulkan
|
2023-01-29 06:16:21 +00:00
|
|
|
./waf build
|
2023-02-24 22:24:49 +00:00
|
|
|
./build_waf/mpv.com -v --no-config
|
2023-01-10 04:54:25 +00:00
|
|
|
fi
|