diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-16 00:23:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-16 00:23:24 +0000 |
| commit | 19b5ac5e09e204a9c22daff460f3cbb2137d265b (patch) | |
| tree | dade81e56e3ad9934686c650eef23f92d3111211 /wscript | |
| parent | a49e1c2df1568391651344ae368c53f76d504571 (diff) | |
Use libdcp for DCP subtitle parsing so that we get support for MXF-wrapped SMPTE subtitles.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -7,7 +7,7 @@ VERSION = '0.01.0devel' def options(opt): opt.load('compiler_cxx') 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 libsub statically and link statically to cxml') + opt.add_option('--static', action='store_true', default=False, help='build libsub statically and link statically to cxml and dcp') opt.add_option('--target-windows', action='store_true', default=False, help='set up to do a cross-compile to make a Windows package') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') @@ -31,8 +31,14 @@ 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.08', args='--cflags', uselib_store='CXML', mandatory=True) + conf.env.DEFINES_DCP = [f.replace('\\', '') for f in conf.env.DEFINES_DCP] + conf.env.STLIB_DCP = ['dcp', 'asdcp-libdcp', 'kumu-libdcp'] + conf.env.LIB_DCP = ['glibmm-2.4', 'ssl', 'crypto', 'bz2', 'xslt'] + conf.check_cfg(package='libdcp', atleast_version='0.98', args='--cflags', uselib_store='DCP', mandatory=True) else: conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags --libs', uselib_store='CXML', mandatory=True) + conf.check_cfg(package='libdcp', atleast_version='0.97.0', args='--cflags --libs', uselib_store='DCP', mandatory=True) + conf.env.DEFINES_DCP = [f.replace('\\', '') for f in conf.env.DEFINES_DCP] boost_lib_suffix = '' if conf.env.TARGET_WINDOWS: |
