summaryrefslogtreecommitdiff
path: root/docs/yaml/functions/subproject.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/yaml/functions/subproject.yaml')
-rw-r--r--docs/yaml/functions/subproject.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/yaml/functions/subproject.yaml b/docs/yaml/functions/subproject.yaml
index 14a778dd8..3017c20f3 100644
--- a/docs/yaml/functions/subproject.yaml
+++ b/docs/yaml/functions/subproject.yaml
@@ -12,8 +12,9 @@ description: |
that override those set in the subproject's `meson.options`
(like `default_options` in `project`, they only have effect when
Meson is run for the first time, and command line arguments override
- any default options in build files). *(since 0.54.0)*: `default_library`
- built-in option can also be overridden.
+ any default options in build files).
+ *(since 0.54.0)*: `default_library` built-in option can also be overridden.
+ *(since 1.2.0)*: A dictionary may be passed instead of array.
- `version`: works just like the same as in `dependency`.
It specifies what version the subproject should be, as an example `>=1.0.1`
- `required` *(since 0.48.0)*: By default, `required` is `true` and
@@ -41,15 +42,16 @@ posargs:
kwargs:
default_options:
- type: list[str]
+ type: list[str] | dict[str]
since: 0.37.0
description: |
An array of default option values
that override those set in the subproject's `meson.options`
(like `default_options` in [[project]], they only have effect when
Meson is run for the first time, and command line arguments override
- any default options in build files). *(since 0.54.0)*: `default_library`
- built-in option can also be overridden.
+ any default options in build files).
+ *(since 0.54.0)*: `default_library` built-in option can also be overridden.
+ *(since 1.2.0)*: A dictionary may now be passed.
version:
type: str