diff options
author | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-06-28 22:54:39 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-07-02 18:47:39 +0300 |
commit | 15a57e26c4d1123606a7ac455d2ccbce15e976b9 (patch) | |
tree | 26f277d35c2623e981205578a74933d8d03c65d3 | |
parent | 73897bff90630848983c9ae1791d228f8cc4ebf2 (diff) |
Add a bit more documentation regarding Meson optionsv0.77.0
-rw-r--r-- | BUILD.md | 21 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 25 insertions, 4 deletions
@@ -59,11 +59,24 @@ meson setup -Duse_opengl=false build ninja -C build ``` -See file [`meson_options.txt`](meson_options.txt) for list of all available -project-specific build options. +### List Meson's setup options + +Run `meson configure` to see the full list of Meson setup options as well +as project-specific options. Or, see the file +[`meson_options.txt`](meson_options.txt) for only the project-specific +options. + +To query the options set in an existing build directory, simply append +the build directory to the above command. For example: + +``` shell +meson configure build +``` + +Options can be passed to the `meson setup` command using `-Doption=value` +notation or using comma-separated notation (ie: `-Doption=value1,value2,value3`) +when the option supports multiple values. -You can also run `meson configure` to see the list of *all* available -build options (including project-specific ones). ### Run unit tests @@ -165,6 +165,14 @@ ninja -C build ./build/dosbox ``` +To build and link the MT-32 and FluidSynth subprojects statically, +add the `-Ddefault_library=static` option during setup. + +To see all of Meson's setup options, run: +``` shell +meson configure +``` + ### Windows - Visual Studio (2019 or newer) First, you need to setup [vcpkg] to install build dependencies. Once vcpkg |