Very basics of colour conversion configuration.
[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           colour_conversion.cc
12           config.cc
13           content.cc
14           content_factory.cc
15           cross.cc
16           dci_metadata.cc
17           dcp_content_type.cc
18           dcp_video_frame.cc
19           decoder.cc
20           dolby_cp750.cc
21           encoder.cc
22           examine_content_job.cc
23           exceptions.cc
24           filter_graph.cc
25           ffmpeg.cc
26           ffmpeg_content.cc
27           ffmpeg_decoder.cc
28           ffmpeg_examiner.cc
29           film.cc
30           filter.cc
31           image.cc
32           job.cc
33           job_manager.cc
34           log.cc
35           moving_image_content.cc
36           moving_image_decoder.cc
37           moving_image_examiner.cc
38           player.cc
39           playlist.cc
40           ratio.cc
41           resampler.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           still_image_content.cc
49           still_image_decoder.cc
50           still_image_examiner.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                  """
77
78     obj.source = sources + ' version.cc'
79
80     if bld.env.TARGET_WINDOWS:
81         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI'
82         obj.source += ' stack.cpp'
83     if bld.env.STATIC:
84         obj.uselib += ' XML++'
85
86     obj.target = 'dcpomatic'
87
88     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
89
90 def pot(bld):
91     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
92
93 def pot_merge(bld):
94     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')