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
39 gamma_transfer_function.cc
40 interop_load_font_node.cc
41 interop_subtitle_asset.cc
46 modified_gamma_transfer_function.cc
48 mono_picture_asset_writer.cc
55 picture_asset_writer.cc
58 reel_mono_picture_asset.cc
62 reel_stereo_picture_asset.cc
63 reel_subtitle_asset.cc
66 smpte_load_font_node.cc
67 smpte_subtitle_asset.cc
71 stereo_picture_asset.cc
72 stereo_picture_asset_writer.cc
73 stereo_picture_frame.cc
100 gamma_transfer_function.h
101 interop_load_font_node.h
102 interop_subtitle_asset.h
110 modified_gamma_transfer_function.h
116 picture_asset_writer.h
121 reel_mono_picture_asset.h
125 reel_stereo_picture_asset.h
126 reel_subtitle_asset.h
128 smpte_load_font_node.h
129 smpte_subtitle_asset.h
133 stereo_picture_asset.h
134 stereo_picture_frame.h
146 obj = bld(features='cxx cxxstlib')
148 obj = bld(features='cxx cxxshlib')
149 obj.name = 'libdcp%s' % bld.env.API_VERSION
150 obj.target = 'dcp%s' % bld.env.API_VERSION
151 obj.export_includes = ['.']
152 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
153 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
157 if bld.is_defined('HAVE_GCOV'):
158 obj = bld(features='cxx cxxstlib')
159 obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
160 obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
161 obj.export_includes = ['.']
162 obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
163 obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
165 obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
167 bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
169 bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)