The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
957 B
12 lines
957 B
5 years ago
|
project('foob', 'c',
|
||
|
default_options : ['defopoverride=s_defopt', # This should be overridden.
|
||
|
'fromspfunc=s_defopt', # This is specified with a default_options kwarg to subproject()
|
||
|
'fromcmdline=s_defopt'] # This should get the value set in command line.
|
||
|
)
|
||
|
|
||
|
assert(get_option('fromcmdline') == 's_cmdline', 'Default option defined in cmd line is incorrect: ' + get_option('fromcmdline'))
|
||
|
assert(get_option('fromspfunc') == 'spfunc', 'Default option set with subproject() incorrect: ' + get_option('fromspfunc'))
|
||
|
assert(get_option('fromspfunconly') == 'spfunc', 'Default option set with subproject() incorrect: ' + get_option('fromspfunc'))
|
||
|
assert(get_option('defopoverride') == 's_defopt', 'Default option without cmd line override is incorrect: ' + get_option('defopoverride'))
|
||
|
assert(get_option('fromoptfile') == 's_optfile', 'Default value from option file is incorrect: ' + get_option('fromoptfile'))
|