1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
#
# Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
import os
import i18n
sources = """
analyse_audio_job.cc
audio_analysis.cc
audio_buffers.cc
audio_content.cc
audio_decoder.cc
audio_decoder_stream.cc
audio_filter.cc
audio_mapping.cc
audio_processor.cc
audio_stream.cc
cinema.cc
cinema_sound_processor.cc
colour_conversion.cc
config.cc
content.cc
content_factory.cc
cross.cc
curl_uploader.cc
data.cc
dcp_content.cc
dcp_content_type.cc
dcp_decoder.cc
dcp_examiner.cc
dcp_subtitle.cc
dcp_subtitle_content.cc
dcp_subtitle_decoder.cc
dcp_video.cc
dcpomatic_socket.cc
dcpomatic_time.cc
dolby_cp750.cc
encoder.cc
environment_info.cc
examine_content_job.cc
exceptions.cc
file_group.cc
filter_graph.cc
ffmpeg.cc
ffmpeg_audio_stream.cc
ffmpeg_content.cc
ffmpeg_decoder.cc
ffmpeg_examiner.cc
ffmpeg_stream.cc
ffmpeg_subtitle_stream.cc
film.cc
filter.cc
font.cc
frame_rate_change.cc
internet.cc
image.cc
image_content.cc
image_decoder.cc
image_examiner.cc
image_proxy.cc
isdcf_metadata.cc
j2k_image_proxy.cc
job.cc
job_manager.cc
kdm.cc
json_server.cc
log.cc
magick_image_proxy.cc
md5_digester.cc
mid_side_decoder.cc
player.cc
player_video.cc
playlist.cc
position_image.cc
quickmail.cc
ratio.cc
raw_image_proxy.cc
render_subtitles.cc
resampler.cc
safe_stringstream.cc
scoped_temporary.cc
scp_uploader.cc
send_kdm_email_job.cc
send_problem_report_job.cc
server.cc
server_finder.cc
single_stream_audio_content.cc
sndfile_base.cc
sndfile_content.cc
sndfile_decoder.cc
sndfile_examiner.cc
subrip.cc
subrip_content.cc
subrip_decoder.cc
subtitle_content.cc
subtitle_decoder.cc
timer.cc
transcode_job.cc
transcoder.cc
types.cc
signal_manager.cc
update.cc
upload_job.cc
uploader.cc
upmixer_a.cc
util.cc
video_content.cc
video_content_scale.cc
video_decoder.cc
writer.cc
"""
def build(bld):
if bld.env.STATIC_DCPOMATIC:
obj = bld(features = 'cxx cxxstlib')
else:
obj = bld(features = 'cxx cxxshlib')
obj.name = 'libdcpomatic2'
obj.export_includes = ['..']
obj.uselib = """
AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE
BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 BOOST_REGEX
SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
CURL ZIP PANGOMM CAIROMM XMLSEC SUB
"""
if bld.env.TARGET_OSX:
obj.framework = ['IOKit', 'Foundation']
obj.source = sources + ' version.cc'
if bld.env.TARGET_WINDOWS:
obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
if bld.env.STATIC_DCPOMATIC:
obj.uselib += ' XMLPP'
obj.target = 'dcpomatic2'
i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic2', bld)
def pot(bld):
i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
def pot_merge(bld):
i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')
|