diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-05-26 23:05:51 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-05-26 23:05:51 +0200 |
| commit | 25d60944707815c32befc4b58711d8d96739d7cd (patch) | |
| tree | de678d260b29f862e501e30f5edffc16f43121f3 /wscript | |
| parent | 83cee3ca22e158841eeebb347ebe22be9e53a5f1 (diff) | |
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,7 @@ def options(opt): opt.add_option('--enable-asan', action='store_true', help='build with asan') opt.add_option('--c++17', action='store_true', default=False, help='build with C++17 and libxml++-4.0') opt.add_option('--variant', help="build with variant") + opt.add_option('--developer', action='store_true', default=False, help='find resources (e.g. bitmaps) when running from the source tree') def configure(conf): conf.load('compiler_cxx') @@ -176,6 +177,9 @@ def configure(conf): if conf.options.enable_grok: conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_GROK') + if conf.options.developer: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_DEVELOPER') + if conf.options.use_lld: try: conf.find_program('ld.lld') |
