2 # Copyright (C) 2012-2020 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.
18 # In addition, as a special exception, the copyright holders give
19 # permission to link the code of portions of this program with the
20 # OpenSSL library under certain conditions as described in each
21 # individual source file, and distribute linked combinations
24 # You must obey the GNU General Public License in all respects
25 # for all of the code used other than OpenSSL. If you modify
26 # file(s) with this exception, you may extend this exception to your
27 # version of the file(s), but you are not obligated to do so. If you
28 # do not wish to do so, delete this exception statement from your
29 # version. If you delete this exception statement from all source
30 # files in the program, then also delete it here.
33 from waflib import TaskGen
64 gamma_transfer_function.cc
66 identity_transfer_function.cc
67 interop_load_font_node.cc
68 interop_subtitle_asset.cc
70 j2k_picture_asset_writer.cc
77 modified_gamma_transfer_function.cc
78 mono_j2k_picture_asset.cc
79 mono_j2k_picture_asset_writer.cc
80 mono_j2k_picture_frame.cc
81 mono_mpeg2_picture_asset.cc
82 mono_mpeg2_picture_asset_writer.cc
83 mono_mpeg2_picture_frame.cc
84 mpeg2_picture_asset.cc
85 mpeg2_picture_asset_writer.cc
98 reel_closed_caption_asset.cc
100 reel_interop_closed_caption_asset.cc
101 reel_interop_subtitle_asset.cc
102 reel_markers_asset.cc
103 reel_mono_picture_asset.cc
104 reel_picture_asset.cc
105 reel_smpte_closed_caption_asset.cc
106 reel_smpte_subtitle_asset.cc
108 reel_stereo_picture_asset.cc
109 reel_subtitle_asset.cc
113 s_gamut3_transfer_function.cc
115 smpte_load_font_node.cc
116 smpte_subtitle_asset.cc
118 sound_asset_writer.cc
120 stereo_j2k_picture_asset.cc
121 stereo_j2k_picture_asset_writer.cc
122 stereo_j2k_picture_frame.cc
125 subtitle_asset_internal.cc
176 gamma_transfer_function.h
178 identity_transfer_function.h
179 interop_load_font_node.h
180 interop_subtitle_asset.h
183 j2k_picture_asset_writer.h
191 mpeg2_picture_asset_writer.h
192 modified_gamma_transfer_function.h
193 mono_j2k_picture_asset.h
194 mono_j2k_picture_asset_reader.h
195 mono_j2k_picture_asset_writer.h
196 mono_j2k_picture_frame.h
197 mono_mpeg2_picture_asset.h
198 mono_mpeg2_picture_asset_reader.h
199 mono_mpeg2_picture_asset_writer.h
200 mono_mpeg2_picture_frame.h
201 mpeg2_picture_asset.h
215 reel_closed_caption_asset.h
217 reel_interop_closed_caption_asset.h
218 reel_interop_subtitle_asset.h
220 reel_mono_picture_asset.h
222 reel_smpte_closed_caption_asset.h
223 reel_smpte_subtitle_asset.h
225 reel_stereo_picture_asset.h
226 reel_subtitle_asset.h
230 s_gamut3_transfer_function.h
233 smpte_load_font_node.h
234 smpte_subtitle_asset.h
239 stereo_j2k_picture_asset.h
240 stereo_j2k_picture_asset_reader.h
241 stereo_j2k_picture_asset_writer.h
242 stereo_j2k_picture_frame.h
262 obj = bld(features='cxx cxxstlib')
264 obj = bld(features='cxx cxxshlib')
265 obj.name = 'libdcp%s' % bld.env.API_VERSION
266 obj.target = 'dcp%s' % bld.env.API_VERSION
267 obj.export_includes = ['.']
268 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_DCPOMATIC XERCES AVCODEC AVUTIL'
272 if bld.is_defined('HAVE_GCOV'):
274 obj = bld(features='cxx cxxstlib')
276 obj = bld(features='cxx cxxshlib')
277 obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
278 obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
279 obj.export_includes = ['.']
280 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_DCPOMATIC XERCES AVCODEC AVUTIL'
281 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
283 obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
285 bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
287 bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)