diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-12-13 16:02:11 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-09-06 10:56:44 -0700 |
commit | ce1602c1ee573f98ab409bcc645d9c7a07925836 (patch) | |
tree | bcd69f82bdff413119ccbc80544dfeef37a8eb38 /docs/markdown/snippets | |
parent | 0fc363021e5c2e79a68fb33e60b72b8ffd353875 (diff) | |
download | meson-ce1602c1ee573f98ab409bcc645d9c7a07925836.zip meson-ce1602c1ee573f98ab409bcc645d9c7a07925836.tar.gz meson-ce1602c1ee573f98ab409bcc645d9c7a07925836.tar.bz2 |
alias_target with both_libs builds both
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/alias_target_of_both_libraries.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/dep_as_shared_as_static.md | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/snippets/alias_target_of_both_libraries.md b/docs/markdown/snippets/alias_target_of_both_libraries.md new file mode 100644 index 0000000..ab77a65 --- /dev/null +++ b/docs/markdown/snippets/alias_target_of_both_libraries.md @@ -0,0 +1,5 @@ +## `alias_target` of `both_libraries` + +Previously, when passing a [[@both_libs]] object to [[alias_target]], the alias +would only point to the shared library. It now points to both the static and the +shared library. diff --git a/docs/markdown/snippets/dep_as_shared_as_static.md b/docs/markdown/snippets/dep_as_shared_as_static.md new file mode 100644 index 0000000..a84e9ee --- /dev/null +++ b/docs/markdown/snippets/dep_as_shared_as_static.md @@ -0,0 +1,8 @@ +## New `as_static` and `as_shared` methods on internal dependencies + +[[@dep]] object returned by [[declare_dependency]] now has `.as_static()` and +`.as_shared()` methods, to convert to a dependency that prefers the `static` +or the `shared` version of the linked [[@both_libs]] target. + +When the same dependency is used without those methods, the +`default_both_libraries` option determines which version is used. |