Debian Codegraph @

subprojects/meson-docs/docs/yaml/functions/structured_sources.yaml

raw
1 name: structured_sources
2 returns: structured_src
3 since: 0.62.0
4 description: |
5 Create a StructuredSource object, which is opaque and may be passed as a source
6 to any build_target (including static_library, shared_library, executable,
7 etc.). This is useful for languages like Rust, which use the filesystem layout
8 to determine import names. This is only allowed in Rust targets, and cannot be
9 mixed with non structured inputs.
10
11 posargs:
12 root:
13 type: list[str | file | custom_tgt | custom_idx | generated_list]
14 description: Sources to put at the root of the generated structure
15
16 optargs:
17 additional:
18 type: dict[str | file | custom_tgt | custom_idx | generated_list]
19 description: |
20 Additional sources, where the key is the directory under the root to place
21 the values