parent
f85c348b94
commit
73042c7912
5 changed files with 29 additions and 2 deletions
@ -0,0 +1,9 @@ |
||||
project('foob', 'c', |
||||
default_options : ['defopoverride=s_defopt', # This should be overridden. |
||||
'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('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')) |
||||
|
@ -0,0 +1,3 @@ |
||||
option('defopoverride', type : 'string', value : 's_optfile', description : 'A value for overriding.') |
||||
option('fromcmdline', type : 'string', value : 's_optfile', description : 'A value for overriding.') |
||||
option('fromoptfile', type : 'string', value : 's_optfile', description : 'A value for not overriding.') |
Loading…
Reference in new issue