2 # Copyright (C) 2012-2015 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.
29 audio_decoder_stream.cc
37 case_insensitive_sorter.cc
40 cinema_sound_processor.cc
52 dcp_subtitle_content.cc
53 dcp_subtitle_decoder.cc
61 encode_server_finder.cc
64 examine_content_job.cc
70 ffmpeg_audio_stream.cc
75 ffmpeg_subtitle_stream.cc
86 image_filename_sorter.cc
115 send_kdm_email_job.cc
116 send_problem_report_job.cc
123 text_subtitle_content.cc
124 text_subtitle_decoder.cc
137 video_content_scale.cc
139 video_filter_graph.cc
142 video_mxf_examiner.cc
147 if bld.env.STATIC_DCPOMATIC:
148 obj = bld(features = 'cxx cxxstlib')
150 obj = bld(features = 'cxx cxxshlib')
152 obj.name = 'libdcpomatic2'
153 obj.export_includes = ['..']
155 AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE
156 BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 BOOST_REGEX
157 SAMPLERATE POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
158 CURL ZIP FONTCONFIG PANGOMM CAIROMM XMLSEC SUB ICU
161 if bld.env.TARGET_OSX:
162 obj.framework = ['IOKit', 'Foundation']
164 obj.source = sources + ' version.cc'
166 if bld.env.TARGET_WINDOWS:
167 obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
168 if bld.env.STATIC_DCPOMATIC:
169 obj.uselib += ' XMLPP'
171 obj.target = 'dcpomatic2'
173 i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic2', bld)
176 i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
179 i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')