2 # Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 from waflib import TaskGen
40 gamma_transfer_function.cc
41 interop_load_font_node.cc
42 interop_subtitle_asset.cc
47 modified_gamma_transfer_function.cc
49 mono_picture_asset_writer.cc
56 picture_asset_writer.cc
60 reel_mono_picture_asset.cc
64 reel_stereo_picture_asset.cc
65 reel_subtitle_asset.cc
68 smpte_load_font_node.cc
69 smpte_subtitle_asset.cc
73 stereo_picture_asset.cc
74 stereo_picture_asset_writer.cc
75 stereo_picture_frame.cc
103 gamma_transfer_function.h
104 interop_load_font_node.h
105 interop_subtitle_asset.h
113 modified_gamma_transfer_function.h
119 picture_asset_writer.h
125 reel_mono_picture_asset.h
129 reel_stereo_picture_asset.h
130 reel_subtitle_asset.h
132 smpte_load_font_node.h
133 smpte_subtitle_asset.h
137 stereo_picture_asset.h
138 stereo_picture_frame.h
150 obj = bld(features='cxx cxxstlib')
152 obj = bld(features='cxx cxxshlib')
153 obj.name = 'libdcp%s' % bld.env.API_VERSION
154 obj.target = 'dcp%s' % bld.env.API_VERSION
155 obj.export_includes = ['.']
156 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
157 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
161 if bld.is_defined('HAVE_GCOV'):
162 obj = bld(features='cxx cxxstlib')
163 obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
164 obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
165 obj.export_includes = ['.']
166 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
167 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
169 obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
171 bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
173 bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)