summaryrefslogtreecommitdiffstats
path: root/README.rst
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 /README.rst
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 'README.rst')
-rw-r--r--README.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 04686c1..86e6df4 100644
--- a/README.rst
+++ b/README.rst
@@ -39,6 +39,21 @@ statically linked with mpv when using the provided scripts, and no ffmpeg or
libass libraries are/need to be installed. There are no required config or
data files either.
+Meson Support
+=============
+
+These scripts do have support for building with mpv's meson build. They are not
+used by default. To invoke them, you must pass an additional environment variable,
+BUILDSYSTEM=meson to your commands. For example::
+
+ BUILDSYSTEM=meson ./rebuild -j4
+
+The arguments that you pass should conform to meson conventions and not the waf
+ones.
+
+**Note**: The meson scripts specifically invoke the new ``prefer_static`` built-in
+option. This requires a meson version of 0.63 or greater.
+
Dependencies
============