summaryrefslogtreecommitdiffstats
path: root/test cases/common/161 not-found dependency/meson.build
blob: 02072b6a0db68c36da3f19379ca1c09325784032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)