diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-02 12:49:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-02 12:49:00 +0000 |
| commit | 555ced5ed96828bd332623665c0565cd8b3a0df6 (patch) | |
| tree | dd1cc225304c3d20a69e134a897a19eca1dcf290 /wscript | |
| parent | 6e9b1b0ca5e839bda7b567b609cebb92a1cb95a7 (diff) | |
Use OpenMP when comparing picture assets.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |
