summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-26 20:46:08 +0200
committerCarl Hetherington <cth@carlh.net>2023-12-16 02:07:38 +0100
commit81442e6a2302aa24a482267c1441b5bee3a3eac2 (patch)
treee57151e60599f7210f21f5e512d2b5546198913a
parentf8b932e0e9a8f33cff0edff0f89e86ae974f3e8e (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 ea7aadacc..cad24b424 100644
--- a/wscript
+++ b/wscript
@@ -622,6 +622,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')