summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-05-26 23:05:51 +0200
committerCarl Hetherington <cth@carlh.net>2026-05-26 23:05:51 +0200
commit25d60944707815c32befc4b58711d8d96739d7cd (patch)
treede678d260b29f862e501e30f5edffc16f43121f3 /wscript
parent83cee3ca22e158841eeebb347ebe22be9e53a5f1 (diff)
Use --developer to find bitmaps from the source tree instead of --enable-debug.HEADmain
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index f55e241ab..d1e71d7d6 100644
--- a/wscript
+++ b/wscript
@@ -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')