diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-03 20:11:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-04 01:05:16 +0200 |
| commit | 604a4e41b60f575fa3a0573aba5170c4d0f331eb (patch) | |
| tree | 82f67e33a6b05373aed64547fd1394eeb2a2fd3e /wscript | |
| parent | 13c738a189e574b80c2b8eca9baa485264664dde (diff) | |
Allow libcxml and libdcp builds with static boost.v1.9.16
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,7 @@ def options(opt): opt.add_option('--target-windows-32', action='store_true', default=False, help='set up to do a cross-compile to Windows 32-bit') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build libdcp statically, and link statically to openjpeg, cxml, asdcplib-dcpomatic') + opt.add_option('--static-boost', action='store_true', default=False, help='link statically to boost') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') opt.add_option('--disable-benchmarks', action='store_true', default=False, help='disable building of benchmarks') opt.add_option('--enable-gcov', action='store_true', default=False, help='use gcov in tests') @@ -111,6 +112,9 @@ def configure(conf): elif int(gcc[0]) > 4: conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) + if not conf.options.static_boost: + conf.env.append_value('CXXFLAGS', '-DBOOST_TEST_DYN_LINK') + # Disable libxml++ deprecation warnings for now conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-declarations']) |
