aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/67 modules/meson.build
blob: ad33ed6d42b5a2f22cfc6940dfc329a31edff4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
project('module test', 'c')

modtest = import('modtest')
modtest.print_hello()
assert(modtest.found())

modtest = import('modtest', required : get_option('disabled'))
assert(not modtest.found())

notfound = import('not-found', required : false)
assert(not notfound.found())

disabled = import('not-found', required : false, disabler : true)
assert(is_disabler(disabled))