aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/feature_options.md
blob: 22d9201233b2af1f68c500e1eaa781eb26a1e8a6 (plain)
1
2
3
4
5
6
7
8
9
10
## New feature option type

A new type of option can be defined in `meson_options.txt` for the traditional
`enabled / disabled / auto` tristate. The value of this option can be passed to
the `required` keyword argument of functions `dependency()`, `find_library()`,
`find_program()` and `add_languages()`.

A new global option `auto_features` has been added to override the value of all
`auto` features. It is intended to be used by packagers to have full control on
which feature must be enabled or disabled.