summaryrefslogtreecommitdiff
path: root/docs/yaml/functions/dependency.yaml
AgeCommit message (Collapse)Author
2025-10-20docs: Not all dependencies use `prefer_static` when `static` is unsetDylan Baker
Cuda, for example, doesn't use `prefer_static`, and will always link statically unless the static value is explicitly set to `true`. This updates the documentation to reflect that.
2025-07-22Docs: standardize between list and array as arrayDylan Baker
When arrays were added they were called arrays. Because the are implemented with Python lists, that language started leaking into talking about Meson types. This is confusing. I've attempted, as much as possible, to move to using one name, array. I picked array because 1) It's the original name used, and 2) what Meson has are more properly arrays as they have a fixed length, while a critical property of lists are the ability to link and unlink them. There are a couple of places where the list language has leaked into the names of keyword arguments. I have not made any attempt to change those, I don't know if it's that useful or not.
2024-08-04docs: document prefer_static effect on dependency()Sertonix
Ref https://github.com/mesonbuild/meson/pull/9603
2023-11-22docs/dependency: fix type of version kwargGerion Entrup
2023-06-20interpreter: Accept more types in default_options dict valuesXavier Claessens
2023-06-20interpreter: allow default_options and override_options as a dictDylan Baker
2023-03-28Add support for meson.options as a replacement for meson_options.txtDylan Baker
We will still try to load `meson_options.txt` if `meson.options` doesn't exist. Because there are some advantages to using `meson.options` even with older versions of meson (such as better text editor handling) we will not warn about the existence of a `meson.options` file if a `meson_options.txt` file or symlink also exists. The name `meson.options` was picked instead of alternative proposals, such as `meson_options.build` for a couple of reasons: 1. meson.options is shorter 2. While the syntax is the same, only the `option()` function may be called in meson.options, while, it may not be called in meson.build 3. While the two files share a syntax and elementary types (strings, arrays, etc), they have different purposes: `meson.build` declares build targets, `meson.options` declares options. This is similar to the difference between C's `.c` and `.h` extensions. As an implementation detail `Interpreter.option_file` has been removed, as it is used exactly once, in the `project()` call to read the options, and we can just calculate it there and not store it. Fixes: #11176
2022-12-14docs: clarify the semantics of the required: kwarg everywhereEli Schwartz
Link to feature options consistently, and point out that it controls "whether" the function finds what it's trying to find. This clues people in to the fact that disabled features exist.
2022-11-11Fix typo in dependency() 'names' docstring [skip ci]Will Thompson
2022-10-24Add missing since annotations in docsElliott Sales de Andrade
This is based on searching for `@FeatureNew*` decorators. There is also one correction to a version in a decorators; `build_by_default` was added in #1303, which is 0.38.0, not 0.40.0.
2022-10-10Document and test new WrapDB auto fallbackXavier Claessens
2021-10-03docs: Update YAML docs after rebaseDaniel Mensinger
2021-10-03docs: Added new static docsDaniel Mensinger
2021-10-03docs: Add the YAML Reference manualDaniel Mensinger