Merge master.
[dcpomatic.git] / test / wscript
1 def configure(conf):
2     boost_test_suffix=''
3     if conf.env.TARGET_WINDOWS:
4         boost_test_suffix='-mt'
5
6     conf.check_cxx(fragment = """
7                               #define BOOST_TEST_MODULE Config test\n
8                               #include <boost/test/unit_test.hpp>\n
9                               int main() {}
10                               """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
11
12 def build(bld):
13     obj = bld(features = 'cxx cxxprogram')
14     obj.name   = 'unit-tests'
15     obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML'
16     obj.use    = 'libdcpomatic'
17     obj.source = 'test.cc'
18     obj.target = 'unit-tests'
19     obj.install_path = ''