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.
19 lines
511 B
19 lines
511 B
project('dep fallback', 'c') |
|
|
|
bob = dependency('boblib', fallback : ['boblib', 'bob_dep'], required: false) |
|
if not bob.found() |
|
error('Bob is actually needed') |
|
endif |
|
jimmy = dependency('jimmylib', fallback : ['jimmylib', 'jimmy_dep'], required: false) |
|
|
|
gensrc_py = find_program('gensrc.py') |
|
gensrc = custom_target('gensrc.c', |
|
input : 'tester.c', |
|
output : 'gensrc.c', |
|
command : [gensrc_py, '@INPUT@', '@OUTPUT@']) |
|
|
|
exe = executable('bobtester', |
|
[gensrc], |
|
dependencies : bob) |
|
|
|
test('bobtester', exe)
|
|
|