diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-12-12 15:49:59 -0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-09-06 10:56:44 -0700 |
| commit | 2d6915a5983a64b58ecafd1b1dc92e9c48579ff2 (patch) | |
| tree | 8ed2d004c51ef4d36c502b5851ff9f43adf361d4 /docs | |
| parent | 7b3169f464810dfed0daf3075a5a6e5ed91dbc9b (diff) | |
| download | meson-2d6915a5983a64b58ecafd1b1dc92e9c48579ff2.tar.gz | |
add default_both_libraries core option
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/Builtin-options.md | 11 | ||||
| -rw-r--r-- | docs/markdown/snippets/default_both_libraries.md | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index 6adc4218b..178f793e4 100644 --- a/docs/markdown/Builtin-options.md +++ b/docs/markdown/Builtin-options.md @@ -79,6 +79,7 @@ machine](#specifying-options-per-machine) section for details. | genvslite {vs2022} | vs2022 | Setup multi-builtype ninja build directories and Visual Studio solution | no | no | | buildtype {plain, debug,<br>debugoptimized, release, minsize, custom} | debug | Build type to use | no | no | | debug | true | Enable debug symbols and other information | no | no | +| default_both_libraries {shared, static, auto} | shared | Default library type for both_libraries | no | no | | default_library {shared, static, both} | shared | Default library type | no | yes | | errorlogs | true | Whether to print the logs from failing tests. | no | no | | install_umask {preserve, 0000-0777} | 022 | Default umask to apply on permissions of installed files | no | no | @@ -177,6 +178,16 @@ fails. `vsenv` is `true` by default when using the `vs` backend. + +#### Details for `default_both_libraries` + +Since `1.6.0`, you can select the default type of library selected when using +a `both_libraries` object. This can be either 'shared' (default value, compatible +with previous meson versions), 'static', or 'auto'. With auto, the value from +`default_library` option is used, unless it is 'both', in which case 'shared' +is used instead. + + ## Base options These are set in the same way as universal options, either by diff --git a/docs/markdown/snippets/default_both_libraries.md b/docs/markdown/snippets/default_both_libraries.md new file mode 100644 index 000000000..279c43d22 --- /dev/null +++ b/docs/markdown/snippets/default_both_libraries.md @@ -0,0 +1,4 @@ +## New built-in option for default both_libraries + +`both_libraries` targets used to be considered as a shared library by default. +There is now the `default_both_libraries` option to change this default. |
