Updated sv_SE translation from Adam Klotblixt.
[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_decoder.cc
10           audio_source.cc
11           config.cc
12           combiner.cc
13           cross.cc
14           dci_metadata.cc
15           dcp_content_type.cc
16           dcp_video_frame.cc
17           decoder.cc
18           decoder_factory.cc
19           delay_line.cc
20           dolby_cp750.cc
21           encoder.cc
22           examine_content_job.cc
23           exceptions.cc
24           filter_graph.cc
25           ffmpeg_compatibility.cc
26           ffmpeg_decoder.cc
27           film.cc
28           filter.cc
29           format.cc
30           gain.cc
31           image.cc
32           imagemagick_decoder.cc
33           job.cc
34           job_manager.cc
35           log.cc
36           lut.cc
37           matcher.cc
38           scp_dcp_job.cc
39           scaler.cc
40           server.cc
41           sndfile_decoder.cc
42           sound_processor.cc
43           stream.cc
44           subtitle.cc
45           timer.cc
46           transcode_job.cc
47           transcoder.cc
48           ui_signaller.cc
49           util.cc
50           video_decoder.cc
51           video_source.cc
52           writer.cc
53           """
54
55 def build(bld):
56     if bld.env.STATIC:
57         obj = bld(features = 'cxx cxxstlib')
58     else:
59         obj = bld(features = 'cxx cxxshlib')
60
61     obj.name = 'libdvdomatic'
62     obj.export_includes = ['.']
63     obj.uselib = """
64                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
65                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 
66                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP GLIB LZMA
67                  """
68     if bld.env.TARGET_WINDOWS:
69         obj.uselib += ' WINSOCK2'
70     obj.source = sources + " version.cc"
71     obj.target = 'dvdomatic'
72
73     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdvdomatic', bld)
74
75 def pot(bld):
76     i18n.pot(os.path.join('src', 'lib'), sources, 'libdvdomatic')
77
78 def pot_merge(bld):
79     i18n.pot_merge(os.path.join('src', 'lib'), 'libdvdomatic')