Add more {raw,locale}_convert methods.
[libdcp.git] / src / wscript
index aca0f570953a6eaa8433ee01cb9887127cd97732..247f4626ecd7cf0e31204b3bb9ef4b85216f98da 100644 (file)
 #    along with this program; if not, write to the Free Software
 #    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
+#    In addition, as a special exception, the copyright holders give
+#    permission to link the code of portions of this program with the
+#    OpenSSL library under certain conditions as described in each
+#    individual source file, and distribute linked combinations
+#    including the two.
+#
+#    You must obey the GNU General Public License in all respects
+#    for all of the code used other than OpenSSL.  If you modify
+#    file(s) with this exception, you may extend this exception to your
+#    version of the file(s), but you are not obligated to do so.  If you
+#    do not wish to do so, delete this exception statement from your
+#    version.  If you delete this exception statement from all source
+#    files in the program, then also delete it here.
+#
 
 from waflib import TaskGen
 
 def build(bld):
     source = """
              asset.cc
+             asset_reader.cc
+             asset_writer.cc
+             atmos_asset.cc
              certificate_chain.cc
              certificate.cc
              colour_conversion.cc
@@ -42,19 +59,23 @@ def build(bld):
              j2k.cc
              key.cc
              local_time.cc
+             locale_convert.cc
              metadata.cc
              modified_gamma_transfer_function.cc
              mono_picture_asset.cc
+             mono_picture_asset_reader.cc
              mono_picture_asset_writer.cc
              mono_picture_frame.cc
              mxf.cc
-             asset_writer.cc
+             name_format.cc
              object.cc
              openjpeg_image.cc
              picture_asset.cc
              picture_asset_writer.cc
+             raw_convert.cc
              reel.cc
              reel_asset.cc
+             reel_atmos_asset.cc
              reel_mono_picture_asset.cc
              reel_mxf.cc
              reel_picture_asset.cc
@@ -66,9 +87,11 @@ def build(bld):
              smpte_load_font_node.cc
              smpte_subtitle_asset.cc
              sound_asset.cc
+             sound_asset_reader.cc
              sound_asset_writer.cc
              sound_frame.cc
              stereo_picture_asset.cc
+             stereo_picture_asset_reader.cc
              stereo_picture_asset_writer.cc
              stereo_picture_frame.cc
              subtitle_node.cc
@@ -83,6 +106,9 @@ def build(bld):
 
     headers = """
               asset.h
+              asset_reader.h
+              asset_writer.h
+              atmos_asset.h
               certificate_chain.h
               certificate.h
               chromaticity.h
@@ -104,12 +130,14 @@ def build(bld):
               key.h
               load_font_node.h
               local_time.h
+              locale_convert.h
               metadata.h
               mono_picture_asset.h
+              mono_picture_asset_reader.h
               mono_picture_frame.h
               modified_gamma_transfer_function.h
               mxf.h
-              asset_writer.h
+              name_format.h
               object.h
               openjpeg_image.h
               picture_asset.h
@@ -118,6 +146,7 @@ def build(bld):
               rgb_xyz.h
               reel.h
               reel_asset.h
+              reel_atmos_asset.h
               reel_mono_picture_asset.h
               reel_mxf.h
               reel_picture_asset.h
@@ -129,8 +158,11 @@ def build(bld):
               smpte_subtitle_asset.h
               sound_frame.h
               sound_asset.h
+              sound_asset_reader.h
               sound_asset_writer.h
               stereo_picture_asset.h
+              stereo_picture_asset_reader.h
+              stereo_picture_asset_writer.h
               stereo_picture_frame.h
               subtitle_node.h
               subtitle_asset.h
@@ -149,7 +181,7 @@ def build(bld):
     obj.name = 'libdcp%s' % bld.env.API_VERSION
     obj.target = 'dcp%s' % bld.env.API_VERSION
     obj.export_includes = ['.']
-    obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
+    obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
     obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
     obj.source = source
 
@@ -159,7 +191,7 @@ def build(bld):
         obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
         obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
         obj.export_includes = ['.']
-        obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
+        obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
         obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
         obj.source = source
         obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']