diff options
| author | Stas Sergeev <stsp2@yandex.ru> | 2024-01-13 17:17:43 +0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-01-17 13:37:36 -0800 |
| commit | 92f638e1f9a9306a4296631cbc8f97c253e6ba88 (patch) | |
| tree | 6049cb8a9df4da0e2072073f57668cb203b5b39c /docs/yaml | |
| parent | 1ca2c74d16c3f5987f686e358b58ce5d2253ce9b (diff) | |
| download | meson-92f638e1f9a9306a4296631cbc8f97c253e6ba88.tar.gz | |
compiler.preprocess: add depends kwarg
This patch adds 'depends' keyword to compiler.preprocess().
It allows to execute other targets before doing the preprocessing.
Test-case is added to demonstrate that functionality: it
generates the header before preprocessing the C source that
uses that generated header.
Thanks to @bruchar1 for getting this patch to work.
Diffstat (limited to 'docs/yaml')
| -rw-r--r-- | docs/yaml/objects/compiler.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/yaml/objects/compiler.yaml b/docs/yaml/objects/compiler.yaml index 239a9bcfd..db2ff05fd 100644 --- a/docs/yaml/objects/compiler.yaml +++ b/docs/yaml/objects/compiler.yaml @@ -681,3 +681,10 @@ methods: type: dep | list[dep] description: Additionally dependencies required. since: 1.1.0 + depends: + type: list[build_tgt | custom_tgt] + description: | + Specifies that this target depends on the specified + target(s). These targets should be built before starting + to preprocess an input. + since: 1.4.0 |
