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.
15 lines
459 B
15 lines
459 B
5 years ago
|
project('dep-test', 'c')
|
||
|
|
||
|
dep = dependency('', required:false)
|
||
|
if dep.found()
|
||
|
error('not-found dependency was found')
|
||
|
endif
|
||
|
|
||
|
assert(dep.type_name() == 'not-found', 'dependency should be of type "not-found" not ' + dep.type_name())
|
||
|
|
||
|
library('testlib', 'testlib.c', dependencies: [dep])
|
||
|
subdir('sub', if_found: dep)
|
||
|
|
||
|
subdep = dependency('', fallback: ['trivial', 'trivial_dep'])
|
||
|
missing = dependency('', fallback: ['missing', 'missing_dep'], required: false)
|