def configure(conf): if conf.options.target_windows: boost_lib_suffix = '-mt' else: boost_lib_suffix = '' conf.check_cxx(fragment = """ #define BOOST_TEST_MODULE Config test\n #include \n int main() {} """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_lib_suffix, uselib_store = 'BOOST_TEST') conf.env.prepend_value('LINKFLAGS', '-Lsrc') def build(bld): obj = bld(features = 'cxx cxxprogram') obj.name = 'tests' obj.uselib = 'BOOST_TEST OPENJPEG XMLSEC1' obj.use = 'libdcp' obj.source = 'tests.cc' obj.target = 'tests' obj.install_path = '' obj = bld(features = 'cxx cxxprogram') obj.name = 'subs_in_out' obj.uselib = 'BOOST_TEST OPENJPEG' obj.use = 'libdcp' obj.source = 'subs_in_out.cc' obj.target = 'subs_in_out' obj.install_path = '' obj = bld(features = 'cxx cxxprogram') obj.name = 'rewrite_subs' obj.uselib = 'BOOST_TEST OPENJPEG' obj.use = 'libdcp' obj.source = 'rewrite_subs.cc' obj.target = 'rewrite_subs' obj.install_path = ''