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
59 gamma_transfer_function.cc
60 identity_transfer_function.cc
61 interop_load_font_node.cc
62 interop_subtitle_asset.cc
69 modified_gamma_transfer_function.cc
71 mono_picture_asset_writer.cc
78 picture_asset_writer.cc
84 reel_closed_caption_asset.cc
85 reel_encryptable_asset.cc
87 reel_interop_closed_caption_asset.cc
88 reel_interop_subtitle_asset.cc
89 reel_mono_picture_asset.cc
92 reel_smpte_closed_caption_asset.cc
93 reel_smpte_subtitle_asset.cc
95 reel_stereo_picture_asset.cc
96 reel_subtitle_asset.cc
99 s_gamut3_transfer_function.cc
100 smpte_load_font_node.cc
101 smpte_subtitle_asset.cc
103 sound_asset_writer.cc
105 stereo_picture_asset.cc
106 stereo_picture_asset_writer.cc
107 stereo_picture_frame.cc
110 subtitle_asset_internal.cc
149 gamma_transfer_function.h
150 identity_transfer_function.h
151 interop_load_font_node.h
152 interop_subtitle_asset.h
161 mono_picture_asset_reader.h
163 modified_gamma_transfer_function.h
169 picture_asset_writer.h
176 reel_encryptable_asset.h
178 reel_interop_closed_caption_asset.h
179 reel_interop_subtitle_asset.h
181 reel_mono_picture_asset.h
184 reel_smpte_closed_caption_asset.h
185 reel_smpte_subtitle_asset.h
186 reel_stereo_picture_asset.h
187 reel_subtitle_asset.h
189 s_gamut3_transfer_function.h
190 smpte_load_font_node.h
191 smpte_subtitle_asset.h
196 stereo_picture_asset.h
197 stereo_picture_asset_reader.h
198 stereo_picture_asset_writer.h
199 stereo_picture_frame.h
214 obj = bld(features='cxx cxxstlib')
216 obj = bld(features='cxx cxxshlib')
217 obj.name = 'libdcp%s' % bld.env.API_VERSION
218 obj.target = 'dcp%s' % bld.env.API_VERSION
219 obj.export_includes = ['.']
220 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH XERCES'
224 if bld.is_defined('HAVE_GCOV'):
226 obj = bld(features='cxx cxxstlib')
228 obj = bld(features='cxx cxxshlib')
229 obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
230 obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
231 obj.export_includes = ['.']
232 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH XERCES'
233 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
235 obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
237 bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
239 bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)