summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-20 10:46:50 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-20 10:46:50 +0200
commit132a820aee9d56bfd4e9f6c1b5b65fe591206156 (patch)
treeedf6cd959c04bf7b448ffe36aafe44412c02a562 /wscript
parent7d6fbc43bc7a5f1c2368d80f302946107c1e4cdb (diff)
Find libasdcp-dcpomatic and xerces-c in a less flaky way.
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 5 insertions, 8 deletions
diff --git a/wscript b/wscript
index c757edb4..cd21e579 100644
--- a/wscript
+++ b/wscript
@@ -165,18 +165,15 @@ def configure(conf):
conf.check_cfg(package='libopenjp2', args='libopenjp2 >= 2.5.0 --cflags --libs', uselib_store='OPENJPEG', mandatory=True, msg='Checking for libopenjp2 >= 2.5.0')
conf.check_cfg(package='libcxml', args='libcxml >= 0.17.0 --cflags --libs', uselib_store='CXML', mandatory=True)
+ conf.check_cfg(package='libasdcp-dcpomatic', args='libasdcp-dcpomatic >= 0.1.3 --cflags --libs', uselib_store='ASDCPLIB_DCPOMATIC', mandatory=True)
+ conf.check_cfg(package='xerces-c', args='--cflags --libs', uselib_store='XERCES', mandatory=True)
if conf.options.static:
conf.env.STLIB_OPENJPEG = ['openjp2']
- conf.check_cfg(package='libasdcp-dcpomatic', args='libasdcp-dcpomatic >= 0.1.3 --cflags', uselib_store='ASDCPLIB_DCPOMATIC', mandatory=True)
- conf.env.HAVE_ASDCPLIB_DCPOMATIC = 1
- conf.env.STLIB_ASDCPLIB_DCPOMATIC = ['asdcp-dcpomatic', 'kumu-dcpomatic']
+ for lib in ('asdcplib-dcpomatic', 'kumu-dcpomatic'):
+ conf.env.LIB_ASDCPLIB_DCPOMATIC.remove(lib)
+ conf.env.STLIB_ASDCPLIB_DCPOMATIC.append(lib)
conf.env.LIB_CXML.remove('cxml')
conf.env.STLIB_CXML.append('cxml')
- conf.check_cfg(package='xerces-c', args='--cflags', uselib_store='XERCES', mandatory=True)
- conf.env.LIB_XERCES = ['xerces-c', 'icuuc', 'curl']
- else:
- conf.check_cfg(package='libasdcp-dcpomatic', args='libasdcp-dcpomatic >= 0.1.3 --cflags --libs', uselib_store='ASDCPLIB_DCPOMATIC', mandatory=True)
- conf.check_cfg(package='xerces-c', args='--cflags --libs', uselib_store='XERCES', mandatory=True)
if conf.env.TARGET_WINDOWS_64 or conf.env.TARGET_WINDOWS_32:
# XXX: it feels like there should be a more elegant way to get these included