diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-29 16:42:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-29 16:42:55 +0000 |
| commit | d0869653a0bdfa010da0b1b00f83ea89f3abbdb1 (patch) | |
| tree | 45ba336b5396875731c1acbe9be97d80e84a7958 /wscript | |
| parent | c8c3db36a4593e396681b4acd5e9d318a28b1648 (diff) | |
Various developments.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -7,7 +7,7 @@ VERSION = '0.01.0devel' def options(opt): opt.load('compiler_cxx') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') - opt.add_option('--static', action='store_true', default=False, help='build libsub statically') + opt.add_option('--static', action='store_true', default=False, help='build libsub statically and link statically to cxml') def configure(conf): conf.load('compiler_cxx') @@ -22,6 +22,12 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-O3') + if conf.options.static: + conf.env.HAVE_CXML = 1 + conf.env.STLIB_CXML = ['cxml'] + else: + conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags --libs', uselib_store='CXML', mandatory=True) + conf.check_cxx(fragment=""" #include <boost/version.hpp>\n #if BOOST_VERSION < 104500\n |
