summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-02 12:49:00 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-02 12:49:00 +0000
commit555ced5ed96828bd332623665c0565cd8b3a0df6 (patch)
treedd1cc225304c3d20a69e134a897a19eca1dcf290 /wscript
parent6e9b1b0ca5e839bda7b567b609cebb92a1cb95a7 (diff)
Use OpenMP when comparing picture assets.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index 2d58e696..229efa7b 100644
--- a/wscript
+++ b/wscript
@@ -16,6 +16,7 @@ def options(opt):
opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests')
opt.add_option('--disable-gcov', action='store_true', default=False, help='don''t use gcov in tests')
opt.add_option('--disable-examples', action='store_true', default=False, help='disable building of examples')
+ opt.add_option('--enable-openmp', action='store_true', default=False, help='enable use of OpenMP')
def configure(conf):
conf.load('compiler_cxx')
@@ -38,6 +39,10 @@ def configure(conf):
if not conf.env.TARGET_OSX:
conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter'])
+ if conf.options.enable_openmp:
+ conf.env.append_value('CXXFLAGS', '-fopenmp')
+ conf.env.LIB_OPENMP = ['gomp']
+
conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True)
conf.check_cfg(package='libxml++-2.6', args='--cflags --libs', uselib_store='LIBXML++', mandatory=True)
conf.check_cfg(package='xmlsec1', args='--cflags --libs', uselib_store='XMLSEC1', mandatory=True)