diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-09-26 20:46:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-18 13:46:50 +0200 |
| commit | 02517b4be62a1056f18d1c337c8b404432560e19 (patch) | |
| tree | 6a1d5f7ed17c7d4297aa1c3c812a3493c90c6420 | |
| parent | f0a03cacb2f2214b7452e42f2dec465888422e6f (diff) | |
Hack to make sure the right things are rebuilt when grok headers change.
| -rw-r--r-- | wscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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') |
