Move FFmpegStream classes into their own source files.
[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           cinema.cc
12           colour_conversion.cc
13           config.cc
14           content.cc
15           content_factory.cc
16           content_subtitle.cc
17           cross.cc
18           dci_metadata.cc
19           dcp_content_type.cc
20           dcp_video_frame.cc
21           dcpomatic_time.cc
22           dolby_cp750.cc
23           encoder.cc
24           examine_content_job.cc
25           exceptions.cc
26           file_group.cc
27           filter_graph.cc
28           ffmpeg.cc
29           ffmpeg_audio_stream.cc
30           ffmpeg_content.cc
31           ffmpeg_decoder.cc
32           ffmpeg_examiner.cc
33           ffmpeg_stream.cc
34           ffmpeg_subtitle_stream.cc
35           film.cc
36           filter.cc
37           frame_rate_change.cc
38           internet.cc
39           image.cc
40           image_content.cc
41           image_decoder.cc
42           image_examiner.cc
43           image_proxy.cc
44           job.cc
45           job_manager.cc
46           kdm.cc
47           json_server.cc
48           log.cc
49           player.cc
50           player_video_frame.cc
51           playlist.cc
52           ratio.cc
53           render_subtitles.cc
54           resampler.cc
55           scp_dcp_job.cc
56           scaler.cc
57           send_kdm_email_job.cc
58           server.cc
59           server_finder.cc
60           sndfile_content.cc
61           sndfile_decoder.cc
62           sound_processor.cc
63           subrip.cc
64           subrip_content.cc
65           subrip_decoder.cc
66           subtitle_content.cc
67           subtitle_decoder.cc
68           timer.cc
69           transcode_job.cc
70           transcoder.cc
71           types.cc
72           ui_signaller.cc
73           update.cc
74           util.cc
75           video_content.cc
76           video_decoder.cc
77           writer.cc
78           """
79
80 def build(bld):
81     if bld.env.BUILD_STATIC:
82         obj = bld(features = 'cxx cxxstlib')
83     else:
84         obj = bld(features = 'cxx cxxshlib')
85
86     obj.name = 'libdcpomatic'
87     obj.export_includes = ['..']
88     obj.uselib = """
89                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
90                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2
91                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
92                  CURL ZIP QUICKMAIL PANGOMM CAIROMM
93                  """
94
95     if bld.env.TARGET_OSX:
96         obj.framework = ['IOKit', 'Foundation']
97
98     obj.source = sources + ' version.cc'
99
100     if bld.env.TARGET_WINDOWS:
101         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
102         obj.source += ' stack.cpp'
103     if bld.env.BUILD_STATIC:
104         obj.uselib += ' XML++'
105
106     obj.target = 'dcpomatic'
107
108     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
109
110 def pot(bld):
111     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
112
113 def pot_merge(bld):
114     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')