Skip to content

Commit

Permalink
docs: clarify behavior of default_both_libraries option
Browse files Browse the repository at this point in the history
Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno authored and jpakkane committed Jan 28, 2025
1 parent 8a9dea2 commit b2456ad
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/markdown/Builtin-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,16 @@ fails.

#### 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.
Since `1.6.0`, you can specify the default type of library selected when using a
`both_libraries` object with `default_both_libraries`. Note that, unlike
`default_library`, this option does not affect how the library artifacts are
built, but how they are internally linked to the dependent targets within the
same project.

The possible values of this option are 'shared' (default value, compatible with
previous meson versions), 'static', and 'auto'. With auto, the value from the
`default_library` option is used, unless it is 'both', in which case 'shared' is
used instead.

When `default_both_libraries` is 'auto', passing a [[@both_libs]] dependency
in [[both_libraries]] will link the static dependency with the static lib,
Expand Down

0 comments on commit b2456ad

Please sign in to comment.