summaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-12-13 16:02:11 -0500
committerDylan Baker <dylan@pnwbakers.com>2024-09-06 10:56:44 -0700
commitce1602c1ee573f98ab409bcc645d9c7a07925836 (patch)
treebcd69f82bdff413119ccbc80544dfeef37a8eb38 /docs/yaml
parent0fc363021e5c2e79a68fb33e60b72b8ffd353875 (diff)
downloadmeson-ce1602c1ee573f98ab409bcc645d9c7a07925836.tar.gz
alias_target with both_libs builds both
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/functions/alias_target.yaml3
-rw-r--r--docs/yaml/objects/dep.yaml25
2 files changed, 28 insertions, 0 deletions
diff --git a/docs/yaml/functions/alias_target.yaml b/docs/yaml/functions/alias_target.yaml
index bc14f84da..983356901 100644
--- a/docs/yaml/functions/alias_target.yaml
+++ b/docs/yaml/functions/alias_target.yaml
@@ -9,6 +9,9 @@ description: |
are built. Dependencies can be any build target. Since 0.60.0, this includes
[[@run_tgt]].
+ *Since 1.6.0* passing a [[@both_libs]] object builds both shared and
+ static libraries.
+
posargs:
target_name:
type: str
diff --git a/docs/yaml/objects/dep.yaml b/docs/yaml/objects/dep.yaml
index 76543d2c1..28d93d79f 100644
--- a/docs/yaml/objects/dep.yaml
+++ b/docs/yaml/objects/dep.yaml
@@ -221,3 +221,28 @@ methods:
pkgconfig_define:
type: list[str]
description: See [[dep.get_pkgconfig_variable]]
+
+ - name: as_static
+ returns: dep
+ since: 1.6.0
+ description: |
+ Only for dependencies created with [[declare_dependency]],
+ returns a copy of the dependency object that prefer the `static` version
+ of [[both_libraries]].
+ kwargs:
+ recursive:
+ type: bool
+ description: If true, this is recursively applied to dependencies
+
+ - name: as_shared
+ returns: dep
+ since: 1.6.0
+ description: |
+ Only for dependencies created with [[declare_dependency]],
+ returns a copy of the dependency object that prefer the `shared` version
+ of [[both_libraries]].
+ kwargs:
+ recursive:
+ type: bool
+ description: If true, this is recursively applied to dependencies
+ \ No newline at end of file