diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-09 13:42:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-09 13:42:36 +0100 |
| commit | fd7dada1f4f5668e56a7cf3a268d22702f6ba52d (patch) | |
| tree | dabaa446843c772fb0a3ec92091fe11b595f29ab /wscript | |
| parent | 01edbdf34b0ad804106e184bd98b7d20c8f23cf1 (diff) | |
Don't use xmlpp as the data storage; put things in cxml::Node members
instead. Add short-cuts for creating XML using libcxml.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,7 @@ API_VERSION = '0.0.0' 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('--target-windows', action='store_true', default=False, help='set up to do a cross-compile to Windows') opt.add_option('--static', action='store_true', default=False, help='build statically') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') @@ -12,6 +13,11 @@ def configure(conf): conf.load('compiler_cxx') conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-O2']) + if conf.options.enable_debug: + conf.env.append_value('CXXFLAGS', '-g') + else: + conf.env.append_value('CXXFLAGS', '-O2') + conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.STATIC = conf.options.static conf.env.DISABLE_TESTS = conf.options.disable_tests |
