Partial addition of DCP audio channel count to Film.
[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_buffers.cc
10           audio_content.cc
11           audio_decoder.cc
12           audio_mapping.cc
13           audio_source.cc
14           black_decoder.cc
15           config.cc
16           combiner.cc
17           container.cc
18           content.cc
19           cross.cc
20           dci_metadata.cc
21           dcp_content_type.cc
22           dcp_video_frame.cc
23           decoder.cc
24           dolby_cp750.cc
25           encoder.cc
26           examine_content_job.cc
27           exceptions.cc
28           filter_graph.cc
29           ffmpeg_compatibility.cc
30           ffmpeg_content.cc
31           ffmpeg_decoder.cc
32           film.cc
33           filter.cc
34           format.cc
35           image.cc
36           imagemagick_content.cc
37           imagemagick_decoder.cc
38           job.cc
39           job_manager.cc
40           log.cc
41           lut.cc
42           null_content.cc
43           player.cc
44           playlist.cc
45           scp_dcp_job.cc
46           scaler.cc
47           server.cc
48           silence_decoder.cc
49           sndfile_content.cc
50           sndfile_decoder.cc
51           sound_processor.cc
52           subtitle.cc
53           timer.cc
54           transcode_job.cc
55           transcoder.cc
56           types.cc
57           ui_signaller.cc
58           util.cc
59           video_content.cc
60           video_decoder.cc
61           video_source.cc
62           writer.cc
63           """
64
65 def build(bld):
66     if bld.env.STATIC:
67         obj = bld(features = 'cxx cxxstlib')
68     else:
69         obj = bld(features = 'cxx cxxshlib')
70
71     obj.name = 'libdcpomatic'
72     obj.export_includes = ['.']
73     obj.uselib = """
74                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
75                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 
76                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA
77                  """
78
79     obj.source = sources + ' version.cc'
80
81     if bld.env.TARGET_WINDOWS:
82         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY'
83         obj.source += ' stack.cpp'
84     if bld.env.STATIC:
85         obj.uselib += ' XML++'
86     obj.source = sources + " version.cc"
87     obj.target = 'dcpomatic'
88
89     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
90
91 def pot(bld):
92     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
93
94 def pot_merge(bld):
95     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')