summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-26 20:46:08 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-16 17:57:18 +0200
commit89de59d6255a5506872199fda58e4e7e0604151b (patch)
treea6a8a88a57b3b2a3cc669a95f0e71ef63e90a7fb
parent9f29afce5ef789fa0e5f82e9ec5e0bde43da5312 (diff)
Hack to make sure the right things are rebuilt when grok headers change.
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index bbd73f64c..6f5380d29 100644
--- a/wscript
+++ b/wscript
@@ -613,6 +613,18 @@ def configure(conf):
def build(bld):
create_version_cc(VERSION, bld.env.CXXFLAGS)
+ # waf can't find these dependencies by itself because they are only included if DCPOMATIC_GROK is defined,
+ # and I can't find a way to pass that to waf's dependency scanner
+ if bld.env.ENABLE_GROK:
+ for dep in (
+ 'src/lib/j2k_encoder.cc',
+ 'src/tools/dcpomatic.cc',
+ 'src/tools/dcpomatic_server.cc',
+ 'src/tools/dcpomatic_server_cli.cc',
+ 'src/tools/dcpomatic_batch.cc'
+ ):
+ bld.add_manual_dependency(bld.path.find_node(dep), bld.path.find_node('src/lib/grok/context.h'))
+
bld.recurse('src')
bld.recurse('graphics')