XML metadata and some 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_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           delay_line.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           gain.cc
33           image.cc
34           imagemagick_content.cc
35           imagemagick_decoder.cc
36           job.cc
37           job_manager.cc
38           log.cc
39           lut.cc
40           matcher.cc
41           playlist.cc
42           scp_dcp_job.cc
43           scaler.cc
44           server.cc
45           sndfile_content.cc
46           sndfile_decoder.cc
47           sound_processor.cc
48           subtitle.cc
49           timer.cc
50           transcode_job.cc
51           transcoder.cc
52           ui_signaller.cc
53           util.cc
54           version.cc
55           video_content.cc
56           video_decoder.cc
57           video_source.cc
58           writer.cc
59           """
60
61 def build(bld):
62     if bld.env.STATIC:
63         obj = bld(features = 'cxx cxxstlib')
64     else:
65         obj = bld(features = 'cxx cxxshlib')
66
67     obj.name = 'libdvdomatic'
68     obj.export_includes = ['.']
69     obj.uselib = """
70                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
71                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 
72                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA
73                  """
74     if bld.env.TARGET_WINDOWS:
75         obj.uselib += ' WINSOCK2'
76     obj.source = sources
77     obj.target = 'dvdomatic'
78
79     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdvdomatic', bld)
80
81 def pot(bld):
82     i18n.pot(os.path.join('src', 'lib'), sources, 'libdvdomatic')
83
84 def pot_merge(bld):
85     i18n.pot_merge(os.path.join('src', 'lib'), 'libdvdomatic')