summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-16 15:58:56 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-16 15:58:56 +0000
commite04eced93da1907e803c065a953ffe0d6540e1cb (patch)
treecab897dea7c1a50c141ff948ff21e401038d0c07 /wscript
parent485794f8322b090a22da841961025b19642e42a2 (diff)
Use asdclib-cth rather than in-tree copy.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript b/wscript
index 7e35890..d44faf6 100644
--- a/wscript
+++ b/wscript
@@ -35,8 +35,12 @@ def configure(conf):
conf.env.LIB_CXML = ['glibmm-2.4', 'glib-2.0', 'pcre', 'sigc-2.0', 'rt', 'xml++-2.6', 'xml2', 'pthread', 'lzma', 'dl', 'z']
conf.env.STLIB_CXML = ['cxml']
conf.check_cfg(package='libcxml', atleast_version='0.14.0', args='--cflags', uselib_store='CXML', mandatory=True)
+ conf.env.HAVE_ASDCPLIB_CTH = 1
+ conf.env.STATIC_ASDCPLIB_CTH = ['asdcplib-cth', 'kumu-cth']
+ conf.check_cfg(package='libasdcp-cth', atleast_version='2.5.11-cth1', args='--cflags', uselib_store='ASDCPLIB_CTH', mandatory=True)
else:
conf.check_cfg(package='libcxml', atleast_version='0.14.0', args='--cflags --libs', uselib_store='CXML', mandatory=True)
+ conf.check_cfg(package='libasdcp-cth', atleast_version='2.5.11-cth1', args='--cflags --libs', uselib_store='ASDCPLIB_CTH', mandatory=True)
boost_lib_suffix = ''
if conf.env.TARGET_WINDOWS:
@@ -83,7 +87,6 @@ def configure(conf):
if not conf.env.DISABLE_TESTS:
conf.recurse('test')
- conf.recurse('asdcplib')
def build(bld):
create_version_cc(bld, VERSION)
@@ -96,14 +99,13 @@ def build(bld):
bld(source='libsub%s.pc.in' % bld.env.API_VERSION,
version=VERSION,
includedir='%s/include/libsub%s' % (bld.env.PREFIX, bld.env.API_VERSION),
- libs="-L${libdir} -lsub%s -lasdcp-libsub%s -lkumu-libsub%s -lboost_system%s" % (bld.env.API_VERSION, bld.env.API_VERSION, bld.env.API_VERSION, boost_lib_suffix),
+ libs="-L${libdir} -lsub%s -lboost_system%s" % (bld.env.API_VERSION, boost_lib_suffix),
install_path='${LIBDIR}/pkgconfig')
bld.recurse('src')
if not bld.env.DISABLE_TESTS:
bld.recurse('test')
bld.recurse('tools')
- bld.recurse('asdcplib')
bld.add_post_fun(post)