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.
11 lines
316 B
11 lines
316 B
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)
|
|
|