2 if conf.options.target_windows:
3 boost_lib_suffix = '-mt'
7 conf.check_cxx(fragment="""
8 #define BOOST_TEST_MODULE Config test\n
9 #include <boost/test/unit_test.hpp>\n
12 msg='Checking for boost unit testing library',
13 lib='boost_unit_test_framework%s' % boost_lib_suffix,
14 uselib_store='BOOST_TEST')
16 conf.env.prepend_value('LINKFLAGS', '-Lsrc')
19 obj = bld(features='cxx cxxprogram')
21 obj.uselib = 'BOOST_TEST OPENJPEG CXML XMLSEC1 SNDFILE'
23 obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION
26 obj.use = 'libdcp%s' % bld.env.API_VERSION
51 obj = bld(features='cxx cxxprogram')
52 obj.name = 'subs_in_out'
53 obj.uselib = 'BOOST_TEST OPENJPEG CXML'
54 obj.use = 'libdcp%s' % bld.env.API_VERSION
55 obj.source = 'subs_in_out.cc'
56 obj.target = 'subs_in_out'
59 obj = bld(features='cxx cxxprogram')
60 obj.name = 'rewrite_subs'
61 obj.uselib = 'BOOST_TEST OPENJPEG CXML'
62 obj.use = 'libdcp%s' % bld.env.API_VERSION
63 obj.source = 'rewrite_subs.cc'
64 obj.target = 'rewrite_subs'