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