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
42 gamma_transfer_function.cc
43 interop_load_font_node.cc
44 interop_subtitle_asset.cc
49 modified_gamma_transfer_function.cc
51 mono_picture_asset_reader.cc
52 mono_picture_asset_writer.cc
58 picture_asset_writer.cc
62 reel_mono_picture_asset.cc
66 reel_stereo_picture_asset.cc
67 reel_subtitle_asset.cc
70 smpte_load_font_node.cc
71 smpte_subtitle_asset.cc
76 stereo_picture_asset.cc
77 stereo_picture_asset_reader.cc
78 stereo_picture_asset_writer.cc
79 stereo_picture_frame.cc
109 gamma_transfer_function.h
110 interop_load_font_node.h
111 interop_subtitle_asset.h
118 mono_picture_asset_reader.h
120 modified_gamma_transfer_function.h
125 picture_asset_writer.h
131 reel_mono_picture_asset.h
135 reel_stereo_picture_asset.h
136 reel_subtitle_asset.h
138 smpte_load_font_node.h
139 smpte_subtitle_asset.h
144 stereo_picture_asset.h
145 stereo_picture_asset_reader.h
146 stereo_picture_asset_writer.h
147 stereo_picture_frame.h
159 obj = bld(features='cxx cxxstlib')
161 obj = bld(features='cxx cxxshlib')
162 obj.name = 'libdcp%s' % bld.env.API_VERSION
163 obj.target = 'dcp%s' % bld.env.API_VERSION
164 obj.export_includes = ['.']
165 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
166 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
170 if bld.is_defined('HAVE_GCOV'):
171 obj = bld(features='cxx cxxstlib')
172 obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
173 obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
174 obj.export_includes = ['.']
175 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
176 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
178 obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
180 bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
182 bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)