diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-07-13 10:26:14 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-10-09 17:33:48 -0400 |
| commit | 013536fcb45dc40c4f592f5c5821ee6d38d331ed (patch) | |
| tree | ee7cddf43778f63a5f102de1225ce62e1ff5f419 /docs/yaml/functions/library.yaml | |
| parent | e24f43051255d3978002f39d08149c3088cb67f9 (diff) | |
| download | meson-013536fcb45dc40c4f592f5c5821ee6d38d331ed.tar.gz | |
interpreter: add <lang>_(static|shared)_args
Which allow passing arguments specifically to the static or shared
libraries.
For design, this is all handled in the interpreter, by the build layer
the arguments are combined into the existing fields. This limits changes
required in the mid and backend layers
Diffstat (limited to 'docs/yaml/functions/library.yaml')
| -rw-r--r-- | docs/yaml/functions/library.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/yaml/functions/library.yaml b/docs/yaml/functions/library.yaml index f9e336b9b..1d406f13c 100644 --- a/docs/yaml/functions/library.yaml +++ b/docs/yaml/functions/library.yaml @@ -16,6 +16,12 @@ description: | The keyword arguments for this are the same as for [[build_target]] +warnings: + - using <lang>_shared_args and/or <lang>_static_args may lead to much higher + compilation times with both_library, as object files cannot be shared between + the static and shared targets. It is guaranteed to not duplicate the build if + these arguments are empty arrays + posargs_inherit: _build_target_base varargs_inherit: _build_target_base kwargs_inherit: @@ -32,3 +38,31 @@ kwargs: type being build. - 'c': Create a "cdylib" or "staticlib" crate depending on the library type being build. + + <lang>_static_args: + type: list[str] + since: 1.3.0 + description: + Arguments that are only passed to a static library + + vala_static_args: + type: list[str | file] + since: 1.3.0 + description: + Arguments that are only passed to a static library + + Like `vala_args`, [[files]] is allowed in addition to string + + <lang>_shared_args: + type: list[str] + since: 1.3.0 + description: + Arguments that are only passed to a shared library + + vala_shared_args: + type: list[str | file] + since: 1.3.0 + description: + Arguments that are only passed to a shared library + + Like `vala_args`, [[files]] is allowed in addition to string |
