Debian Codegraph @

test cases/common/161 not-found dependency/meson.build

raw
1 project('dep-test', 'c')
2
3 dep = dependency('', required:false)
4 if dep.found()
5 error('not-found dependency was found')
6 endif
7
8 assert(dep.type_name() == 'not-found', 'dependency should be of type "not-found" not ' + dep.type_name())
9
10 library('testlib', 'testlib.c', dependencies: [dep])
11 subdir('sub', if_found: dep)
12
13 subdep = dependency('', fallback: ['trivial', 'trivial_dep'])
14 missing = dependency('', fallback: ['missing', 'missing_dep'], required: false)