Very basic audio processing framework.
[dcpomatic.git] / src / lib / wscript
1 import os
2 import i18n
3
4 sources = """
5           analyse_audio_job.cc
6           audio_analysis.cc
7           audio_buffers.cc
8           audio_content.cc
9           audio_decoder.cc
10           audio_mapping.cc
11           audio_processor.cc
12           cinema.cc
13           colour_conversion.cc
14           config.cc
15           content.cc
16           content_factory.cc
17           content_subtitle.cc
18           cross.cc
19           dcp_content.cc
20           dcp_content_type.cc
21           dcp_decoder.cc
22           dcp_examiner.cc
23           dcp_subtitle_content.cc
24           dcp_subtitle_decoder.cc
25           dcp_video.cc
26           dcpomatic_time.cc
27           dolby_cp750.cc
28           encoder.cc
29           encoded_data.cc
30           examine_content_job.cc
31           exceptions.cc
32           file_group.cc
33           filter_graph.cc
34           ffmpeg.cc
35           ffmpeg_audio_stream.cc
36           ffmpeg_content.cc
37           ffmpeg_decoder.cc
38           ffmpeg_examiner.cc
39           ffmpeg_stream.cc
40           ffmpeg_subtitle_stream.cc
41           film.cc
42           filter.cc
43           frame_rate_change.cc
44           internet.cc
45           image.cc
46           image_content.cc
47           image_decoder.cc
48           image_examiner.cc
49           image_proxy.cc
50           isdcf_metadata.cc
51           j2k_image_proxy.cc
52           job.cc
53           job_manager.cc
54           kdm.cc
55           json_server.cc
56           log.cc
57           magick_image_proxy.cc
58           md5_digester.cc
59           mid_side_decoder.cc
60           player.cc
61           player_video.cc
62           playlist.cc
63           ratio.cc
64           raw_image_proxy.cc
65           render_subtitles.cc
66           resampler.cc
67           scp_dcp_job.cc
68           scaler.cc
69           send_kdm_email_job.cc
70           server.cc
71           server_finder.cc
72           single_stream_audio_content.cc
73           sndfile_content.cc
74           sndfile_decoder.cc
75           sound_processor.cc
76           subrip.cc
77           subrip_content.cc
78           subrip_decoder.cc
79           subtitle_content.cc
80           subtitle_decoder.cc
81           timer.cc
82           transcode_job.cc
83           transcoder.cc
84           types.cc
85           ui_signaller.cc
86           update.cc
87           util.cc
88           video_content.cc
89           video_decoder.cc
90           writer.cc
91           """
92
93 def build(bld):
94     if bld.env.BUILD_STATIC:
95         obj = bld(features = 'cxx cxxstlib')
96     else:
97         obj = bld(features = 'cxx cxxshlib')
98
99     obj.name = 'libdcpomatic'
100     obj.export_includes = ['..']
101     obj.uselib = """
102                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
103                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2
104                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
105                  CURL ZIP QUICKMAIL PANGOMM CAIROMM
106                  """
107
108     if bld.env.TARGET_OSX:
109         obj.framework = ['IOKit', 'Foundation']
110
111     obj.source = sources + ' version.cc'
112
113     if bld.env.TARGET_WINDOWS:
114         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
115         obj.source += ' stack.cpp'
116     if bld.env.BUILD_STATIC:
117         obj.uselib += ' XML++'
118
119     obj.target = 'dcpomatic'
120
121     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
122
123 def pot(bld):
124     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
125
126 def pot_merge(bld):
127     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')