De-hackify subtitle handling a bit.
[libdcp.git] / test / wscript
1 def configure(conf):
2     if conf.options.target_windows:
3         boost_lib_suffix = '-mt'
4     else:
5         boost_lib_suffix = ''
6
7     conf.check_cxx(fragment = """
8                               #define BOOST_TEST_MODULE Config test\n
9                               #include <boost/test/unit_test.hpp>\n
10                               int main() {}
11                               """,
12                               msg = 'Checking for boost unit testing library',
13                               lib = 'boost_unit_test_framework%s' % boost_lib_suffix,
14                               uselib_store = 'BOOST_TEST')
15
16 def build(bld):
17     obj = bld(features = 'cxx cxxprogram')
18     obj.name   = 'tests'
19     obj.uselib = 'BOOST_TEST'
20     obj.use    = 'libdcp'
21     obj.source = 'tests.cc'
22     obj.target = 'tests'
23     obj.install_path = ''