Runs.
[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_source.cc
12           config.cc
13           combiner.cc
14           content.cc
15           cross.cc
16           dci_metadata.cc
17           dcp_content_type.cc
18           dcp_video_frame.cc
19           decoder.cc
20           decoder_factory.cc
21           delay_line.cc
22           dolby_cp750.cc
23           encoder.cc
24           examine_content_job.cc
25           exceptions.cc
26           filter_graph.cc
27           ffmpeg_compatibility.cc
28           ffmpeg_content.cc
29           ffmpeg_decoder.cc
30           film.cc
31           filter.cc
32           format.cc
33           gain.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           matcher.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           ui_signaller.cc
54           util.cc
55           version.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 = 'libdvdomatic'
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 GLIB LZMA
74                  """
75     if bld.env.TARGET_WINDOWS:
76         obj.uselib += ' WINSOCK2'
77     obj.source = sources
78     obj.target = 'dvdomatic'
79
80     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdvdomatic', bld)
81
82 def pot(bld):
83     i18n.pot(os.path.join('src', 'lib'), sources, 'libdvdomatic')
84
85 def pot_merge(bld):
86     i18n.pot_merge(os.path.join('src', 'lib'), 'libdvdomatic')