diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-16 19:23:35 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-17 14:33:02 -0400 |
| commit | b13a95c30156c0c9ebf11ceb664acee08a835b2c (patch) | |
| tree | 5e32b069bfa309b804f1c0a54c8d599e35371fe6 /docs | |
| parent | e99e55d0aa6209388ce76db42322b18006fbaaad (diff) | |
| download | meson-b13a95c30156c0c9ebf11ceb664acee08a835b2c.tar.gz | |
docs: d_module_versions has an undocumented ability to accept integers
Dlang uses both integer version "levels" and arbitrary string
identifiers, and we support both, but don't mention it in the docs.
Also update a test case to pass one via declare_dependency. We already
test this kwarg for build_target.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/D.md | 4 | ||||
| -rw-r--r-- | docs/yaml/functions/_build_target_base.yaml | 6 | ||||
| -rw-r--r-- | docs/yaml/functions/declare_dependency.yaml | 6 |
3 files changed, 9 insertions, 7 deletions
diff --git a/docs/markdown/D.md b/docs/markdown/D.md index 7ade5c85d..03d4047b7 100644 --- a/docs/markdown/D.md +++ b/docs/markdown/D.md @@ -95,7 +95,7 @@ my_lib = library('mylib', install: true, version: meson.project_version(), soversion: project_soversion, - d_module_versions: ['FeatureA', 'featureB'] + d_module_versions: ['FeatureA', 'featureB', 1] ) pkgc = import('pkgconfig') @@ -104,7 +104,7 @@ pkgc.generate(name: 'mylib', subdirs: 'd/mylib', version: meson.project_version(), description: 'A simple example D library.', - d_module_versions: ['FeatureA'] + d_module_versions: ['FeatureA', 1] ) install_subdir('src/mylib/', install_dir: 'include/d/mylib/') ``` diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index 6bce8ef0e..d299a854d 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -253,12 +253,14 @@ kwargs: description: When set to true, the D modules are compiled in debug mode. d_module_versions: - type: list[str] + type: list[str | int] description: List of module version identifiers set when compiling D sources. d_debug: type: list[str] - description: List of module debug identifiers set when compiling D sources. + description: | + The [D version identifiers](https://dlang.org/spec/version.html#version) to add + during the compilation of D source files. native: type: bool diff --git a/docs/yaml/functions/declare_dependency.yaml b/docs/yaml/functions/declare_dependency.yaml index 51fde28db..752444785 100644 --- a/docs/yaml/functions/declare_dependency.yaml +++ b/docs/yaml/functions/declare_dependency.yaml @@ -59,11 +59,11 @@ kwargs: pkg-config. *since 0.56.0* it can also be a list of `'key=value'` strings. d_module_versions: - type: str | list[str] + type: str | int | list[str | int] since: 0.62.0 description: | - a string or a list of strings, - the D versions to add during the compilation of D source files + The [D version identifiers](https://dlang.org/spec/version.html#version) to add + during the compilation of D source files. d_import_dirs: type: list[inc | str] |
