diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-07 01:29:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-07 01:29:50 +0200 |
| commit | ddccef68ae80bac6b4aa8583dd8e0a7c943b535c (patch) | |
| tree | 754a2a40ed764d2e49bb394e971018f4b9c4f31d /wscript | |
| parent | 5e6588090b65217e180a35bac494ede030406858 (diff) | |
Add DCPOMATIC_DISK define and don't build stuff needing boost dll library if we don't need it.v2.15.49
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -74,7 +74,7 @@ def options(opt): opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11') opt.add_option('--variant', help='build variant (swaroop-studio, swaroop-theater)', choices=['swaroop-studio', 'swaroop-theater']) opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker') - opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process and lwext4 libraries') + opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process, lwext4 and nanomsg libraries') def configure(conf): conf.load('compiler_cxx') @@ -135,6 +135,9 @@ def configure(conf): if conf.options.variant.startswith('swaroop-'): conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_SWAROOP') + if conf.options.enable_disk: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_DISK') + if conf.options.use_lld: try: conf.find_program('ld.lld') |
