summaryrefslogtreecommitdiffstats
path: root/scripts/mpv-uninstall
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-05-14 10:29:14 -0500
committerDudemanguy <random342@airmail.cc>2022-05-16 14:16:23 +0000
commit8155e07d700fac69f555c712866e3cc588d7ff0d (patch)
treeebd737acc45f5a7a67592cc3037e635a42f8f171 /scripts/mpv-uninstall
parent040d8ada0bb66fd68203ba531c7830ffa781aba1 (diff)
downloadmpv-build-8155e07d700fac69f555c712866e3cc588d7ff0d.tar.bz2
mpv-build-8155e07d700fac69f555c712866e3cc588d7ff0d.tar.xz
configure/build: add meson support
This adds an optional environment variable, BUILDSYSTEM, that can be passed to the build scripts to use mpv's meson build instead of waf, the default. BUILDSYSTEM=meson needs to be set and any configure options passed must use meson's syntax instead of waf. The catch with meson support is that it requires the new prefer_static option for statically linking libass and ffmpeg. This option is not currrently in a release and will land in meson 0.63.
Diffstat (limited to 'scripts/mpv-uninstall')
-rwxr-xr-xscripts/mpv-uninstall6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mpv-uninstall b/scripts/mpv-uninstall
index 645c45f..777db4b 100755
--- a/scripts/mpv-uninstall
+++ b/scripts/mpv-uninstall
@@ -2,4 +2,8 @@
set -e
cd mpv
-python3 ./waf uninstall
+if [ "$BUILDSYSTEM" = "meson" ]; then
+ ninja uninstall -C build
+else
+ python3 ./waf uninstall
+fi