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