blob: 1cb42c4e77096ae826b94b46fb5e9566309d8471 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
project('module test')
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))
|