test cases/common/67 modules/meson.build
raw| 1 | project('module test') |
| 2 | |
| 3 | modtest = import('modtest') |
| 4 | modtest.print_hello() |
| 5 | assert(modtest.found()) |
| 6 | |
| 7 | modtest = import('modtest', required : get_option('disabled')) |
| 8 | assert(not modtest.found()) |
| 9 | |
| 10 | notfound = import('not-found', required : false) |
| 11 | assert(not notfound.found()) |
| 12 | |
| 13 | disabled = import('not-found', required : false, disabler : true) |
| 14 | assert(is_disabler(disabled)) |