Add episode/promo content types.
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Mar 2019 15:55:18 +0000 (15:55 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Mar 2019 15:55:18 +0000 (15:55 +0000)
cscript
src/lib/dcp_content_type.cc
wscript

diff --git a/cscript b/cscript
index f32df19..4de388b 100644 (file)
--- a/cscript
+++ b/cscript
@@ -331,8 +331,8 @@ def dependencies(target):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    deps.append(('libdcp', 'v1.6.5'))
-    deps.append(('libsub', 'v1.4.5'))
+    deps.append(('libdcp', 'v1.6.6'))
+    deps.append(('libsub', 'v1.4.6'))
     deps.append(('rtaudio-cdist', 'aad62d7'))
 
     return deps
index b2455ba..613ed15 100644 (file)
@@ -53,6 +53,8 @@ DCPContentType::setup_dcp_content_types ()
        _dcp_content_types.push_back (new DCPContentType (_("Policy"), dcp::POLICY, N_("POL")));
        _dcp_content_types.push_back (new DCPContentType (_("Public Service Announcement"), dcp::PUBLIC_SERVICE_ANNOUNCEMENT, N_("PSA")));
        _dcp_content_types.push_back (new DCPContentType (_("Advertisement"), dcp::ADVERTISEMENT, N_("ADV")));
+       _dcp_content_types.push_back (new DCPContentType (_("Episode"), dcp::EPISODE, N_("EPS")));
+       _dcp_content_types.push_back (new DCPContentType (_("Promo"), dcp::PROMO, N_("PRO")));
 }
 
 DCPContentType const *
diff --git a/wscript b/wscript
index 6bf3996..5f586a7 100644 (file)
--- a/wscript
+++ b/wscript
@@ -305,12 +305,12 @@ def configure(conf):
 
     # libdcp
     if conf.options.static_dcp:
-        conf.check_cfg(package='libdcp-1.0', atleast_version='1.6.2', args='--cflags', uselib_store='DCP', mandatory=True)
+        conf.check_cfg(package='libdcp-1.0', atleast_version='1.6.6', args='--cflags', uselib_store='DCP', mandatory=True)
         conf.env.DEFINES_DCP = [f.replace('\\', '') for f in conf.env.DEFINES_DCP]
         conf.env.STLIB_DCP = ['dcp-1.0', 'asdcp-cth', 'kumu-cth', 'openjp2']
         conf.env.LIB_DCP = ['glibmm-2.4', 'ssl', 'crypto', 'bz2', 'xslt']
     else:
-        conf.check_cfg(package='libdcp-1.0', atleast_version='1.6.2', args='--cflags --libs', uselib_store='DCP', mandatory=True)
+        conf.check_cfg(package='libdcp-1.0', atleast_version='1.6.6', args='--cflags --libs', uselib_store='DCP', mandatory=True)
         conf.env.DEFINES_DCP = [f.replace('\\', '') for f in conf.env.DEFINES_DCP]
 
     # libsub