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.
34 lines
826 B
34 lines
826 B
11 years ago
|
project('options', 'c')
|
||
|
|
||
|
if get_option('testoption') != 'optval'
|
||
|
error('Incorrect value to test option')
|
||
|
endif
|
||
|
|
||
|
if get_option('other_one') != false
|
||
|
error('Incorrect value to boolean option.')
|
||
|
endif
|
||
11 years ago
|
|
||
|
if get_option('combo_opt') != 'combo'
|
||
|
error('Incorrect value to combo option.')
|
||
|
endif
|
||
10 years ago
|
|
||
7 years ago
|
if get_option('array_opt') != ['one', 'two']
|
||
|
message(get_option('array_opt'))
|
||
|
error('Incorrect value for array option')
|
||
|
endif
|
||
|
|
||
7 years ago
|
# If the default changes, update test cases/unit/13 reconfigure
|
||
8 years ago
|
if get_option('b_lto') != false
|
||
|
error('Incorrect value in base option.')
|
||
|
endif
|
||
|
|
||
10 years ago
|
if get_option('includedir') != 'include'
|
||
|
error('Incorrect value in builtin option.')
|
||
|
endif
|
||
7 years ago
|
|
||
|
if get_option('integer_opt') != 3
|
||
|
error('Incorrect value in integer option.')
|
||
|
endif
|
||
6 years ago
|
|
||
|
assert(get_option('wrap_mode') == 'default', 'Wrap mode option is broken.')
|