projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.
[dcpomatic.git]
/
test
/
wscript
diff --git
a/test/wscript
b/test/wscript
index 61c391663496477306d0cfe24674c622f8081a7b..60d846aeab386e647084164e829e62de732aab22 100644
(file)
--- a/
test/wscript
+++ b/
test/wscript
@@
-1,14
+1,18
@@
def configure(conf):
def configure(conf):
+ boost_test_suffix=''
+ if conf.env.TARGET_WINDOWS:
+ boost_test_suffix='-mt'
+
conf.check_cxx(fragment = """
#define BOOST_TEST_MODULE Config test\n
#include <boost/test/unit_test.hpp>\n
int main() {}
conf.check_cxx(fragment = """
#define BOOST_TEST_MODULE Config test\n
#include <boost/test/unit_test.hpp>\n
int main() {}
- """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework
-mt'
, uselib_store = 'BOOST_TEST')
+ """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework
%s' % boost_test_suffix
, uselib_store = 'BOOST_TEST')
def build(bld):
obj = bld(features = 'cxx cxxprogram')
obj.name = 'unit-tests'
def build(bld):
obj = bld(features = 'cxx cxxprogram')
obj.name = 'unit-tests'
- obj.uselib = 'BOOST_TEST
CXML DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC
'
+ obj.uselib = 'BOOST_TEST
DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML
'
obj.use = 'libdcpomatic'
obj.source = 'test.cc'
obj.target = 'unit-tests'
obj.use = 'libdcpomatic'
obj.source = 'test.cc'
obj.target = 'unit-tests'