This method allows meson.build to introspect on the changed options. It works by merely exposing the same set of data that is logged by MesonApp._generate. Fixes #10898pull/11366/head
parent
c2b0ca0fb9
commit
088727164d
5 changed files with 60 additions and 1 deletions
@ -0,0 +1,6 @@ |
||||
project('feature user option', 'c') |
||||
|
||||
feature_opts = get_option('auto_features') |
||||
optional_opt = get_option('optional') |
||||
|
||||
message('Build options:', meson.build_options()) |
@ -0,0 +1 @@ |
||||
option('optional', type : 'feature', value : 'auto', description : 'An optional feature') |
Loading…
Reference in new issue