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.
22 lines
897 B
22 lines
897 B
5 years ago
|
project('test project')
|
||
|
|
||
|
case = get_option('case')
|
||
|
|
||
|
if case == 'find_program'
|
||
|
prog = find_program('bash')
|
||
3 years ago
|
result = run_command(prog, ['--version'], check: true)
|
||
5 years ago
|
assert(result.stdout().strip().endswith('12345'), 'Didn\'t load bash from config file')
|
||
|
elif case == 'config_dep'
|
||
|
add_languages('cpp')
|
||
|
dep = dependency('llvm', method : 'config-tool')
|
||
|
assert(dep.get_configtool_variable('version').endswith('12345'), 'Didn\'t load llvm from config file')
|
||
|
elif case == 'python3'
|
||
|
prog = import('python3').find_python()
|
||
3 years ago
|
result = run_command(prog, ['--version'], check: true)
|
||
5 years ago
|
assert(result.stdout().strip().endswith('12345'), 'Didn\'t load python3 from config file')
|
||
|
elif case == 'python'
|
||
|
prog = import('python').find_installation()
|
||
3 years ago
|
result = run_command(prog, ['--version'], check: true)
|
||
5 years ago
|
assert(result.stdout().strip().endswith('12345'), 'Didn\'t load python from config file')
|
||
|
endif
|