diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2025-08-29 08:00:28 -0400 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-14 09:24:17 -0700 |
| commit | e2164545cba239e27a604c89c1d11a4c470f50f3 (patch) | |
| tree | 6925dfed8ecbd430738c207ff72165e22335db9d /docs | |
| parent | 64eb00379d6efc24f08606737eed6edf110e6c73 (diff) | |
| download | meson-e2164545cba239e27a604c89c1d11a4c470f50f3.tar.gz | |
Allow compiler methods to accept strings for include_directories
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/snippets/compiler_methods_includes_directories.md | 6 | ||||
| -rw-r--r-- | docs/yaml/objects/compiler.yaml | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/docs/markdown/snippets/compiler_methods_includes_directories.md b/docs/markdown/snippets/compiler_methods_includes_directories.md new file mode 100644 index 000000000..dcb0346f4 --- /dev/null +++ b/docs/markdown/snippets/compiler_methods_includes_directories.md @@ -0,0 +1,6 @@ +## Methods from compiler object now accept strings for include_directories + +The various [[@compiler]] methods with a `include_directories` keyword argument +now accept stings or array of strings, in addition to [[@inc]] objects +generated from [[include_directories]] function, as it was already the case for +[[build_target]] family of functions. diff --git a/docs/yaml/objects/compiler.yaml b/docs/yaml/objects/compiler.yaml index 763060f18..c6761806d 100644 --- a/docs/yaml/objects/compiler.yaml +++ b/docs/yaml/objects/compiler.yaml @@ -61,9 +61,12 @@ methods: description: You have found a bug if you can see this! kwargs: include_directories: - type: inc | array[inc] + type: array[inc | str] since: 0.38.0 - description: Extra directories for header searches. + description: | + Extra directories for header searches, created with the + [[include_directories]] function. + *(Since 1.10.0)* Strings are also accepted. - name: _dependencies returns: void @@ -484,11 +487,12 @@ methods: When the `has_headers` kwarg is also used, this argument is passed to [[compiler.has_header]] as `args`. header_include_directories: - type: inc | array[inc] + type: array[inc | str] since: 0.51.0 description: | When the `has_headers` kwarg is also used, this argument is passed to [[compiler.has_header]] as `include_directories`. + *(Since 1.10.0)* Strings are also accepted. header_dependencies: type: dep | array[dep] since: 0.51.0 |
