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))