Basic if sketchy support for image sequences.
[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           config.cc
12           content.cc
13           content_factory.cc
14           cross.cc
15           dci_metadata.cc
16           dcp_content_type.cc
17           dcp_video_frame.cc
18           decoder.cc
19           dolby_cp750.cc
20           encoder.cc
21           examine_content_job.cc
22           exceptions.cc
23           filter_graph.cc
24           ffmpeg.cc
25           ffmpeg_content.cc
26           ffmpeg_decoder.cc
27           ffmpeg_examiner.cc
28           film.cc
29           filter.cc
30           image.cc
31           job.cc
32           job_manager.cc
33           log.cc
34           moving_image_content.cc
35           moving_image_decoder.cc
36           moving_image_examiner.cc
37           player.cc
38           playlist.cc
39           ratio.cc
40           resampler.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           still_image_content.cc
48           still_image_decoder.cc
49           still_image_examiner.cc
50           subtitle_content.cc
51           subtitle_decoder.cc
52           timer.cc
53           transcode_job.cc
54           transcoder.cc
55           types.cc
56           ui_signaller.cc
57           util.cc
58           video_content.cc
59           video_decoder.cc
60           writer.cc
61           """
62
63 def build(bld):
64     if bld.env.STATIC:
65         obj = bld(features = 'cxx cxxstlib')
66     else:
67         obj = bld(features = 'cxx cxxshlib')
68
69     obj.name = 'libdcpomatic'
70     obj.export_includes = ['..']
71     obj.uselib = """
72                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
73                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 
74                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
75                  """
76
77     obj.source = sources + ' version.cc'
78
79     if bld.env.TARGET_WINDOWS:
80         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI'
81         obj.source += ' stack.cpp'
82     if bld.env.STATIC:
83         obj.uselib += ' XML++'
84
85     obj.target = 'dcpomatic'
86
87     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
88
89 def pot(bld):
90     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
91
92 def pot_merge(bld):
93     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')