Remove gain/delay_line/matcher/trimmer.
[dcpomatic.git] / src / lib / wscript
1 import os
2 import i18n
3
4 sources = """
5           ab_transcode_job.cc
6           ab_transcoder.cc
7           analyse_audio_job.cc
8           audio_analysis.cc
9           audio_content.cc
10           audio_decoder.cc
11           audio_mapping.cc
12           audio_source.cc
13           config.cc
14           combiner.cc
15           content.cc
16           cross.cc
17           dci_metadata.cc
18           dcp_content_type.cc
19           dcp_video_frame.cc
20           decoder.cc
21           dolby_cp750.cc
22           encoder.cc
23           examine_content_job.cc
24           exceptions.cc
25           filter_graph.cc
26           ffmpeg_compatibility.cc
27           ffmpeg_content.cc
28           ffmpeg_decoder.cc
29           film.cc
30           filter.cc
31           format.cc
32           image.cc
33           imagemagick_content.cc
34           imagemagick_decoder.cc
35           job.cc
36           job_manager.cc
37           log.cc
38           lut.cc
39           player.cc
40           playlist.cc
41           scp_dcp_job.cc
42           scaler.cc
43           server.cc
44           sndfile_content.cc
45           sndfile_decoder.cc
46           sound_processor.cc
47           subtitle.cc
48           timer.cc
49           transcode_job.cc
50           transcoder.cc
51           types.cc
52           ui_signaller.cc
53           util.cc
54           video_content.cc
55           video_decoder.cc
56           video_source.cc
57           writer.cc
58           """
59
60 def build(bld):
61     if bld.env.STATIC:
62         obj = bld(features = 'cxx cxxstlib')
63     else:
64         obj = bld(features = 'cxx cxxshlib')
65
66     obj.name = 'libdcpomatic'
67     obj.export_includes = ['.']
68     obj.uselib = """
69                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
70                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 
71                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA
72                  """
73     if bld.env.TARGET_WINDOWS:
74         obj.uselib += ' WINSOCK2'
75     if bld.env.STATIC:
76         obj.uselib += ' XML++'
77     obj.source = sources + " version.cc"
78     obj.target = 'dcpomatic'
79
80     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
81
82 def pot(bld):
83     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
84
85 def pot_merge(bld):
86     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')