Bump version
[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           file_group.cc
26           filter_graph.cc
27           ffmpeg.cc
28           ffmpeg_content.cc
29           ffmpeg_decoder.cc
30           ffmpeg_examiner.cc
31           film.cc
32           filter.cc
33           internet.cc
34           image.cc
35           image_content.cc
36           image_decoder.cc
37           image_examiner.cc
38           image_proxy.cc
39           job.cc
40           job_manager.cc
41           kdm.cc
42           json_server.cc
43           log.cc
44           piece.cc
45           player.cc
46           player_video_frame.cc
47           playlist.cc
48           ratio.cc
49           resampler.cc
50           scp_dcp_job.cc
51           scaler.cc
52           send_kdm_email_job.cc
53           server.cc
54           server_finder.cc
55           sndfile_content.cc
56           sndfile_decoder.cc
57           sound_processor.cc
58           subtitle.cc
59           subtitle_content.cc
60           subtitle_decoder.cc
61           timer.cc
62           transcode_job.cc
63           transcoder.cc
64           types.cc
65           ui_signaller.cc
66           update.cc
67           util.cc
68           video_content.cc
69           video_decoder.cc
70           writer.cc
71           """
72
73 def build(bld):
74     if bld.env.BUILD_STATIC:
75         obj = bld(features = 'cxx cxxstlib')
76     else:
77         obj = bld(features = 'cxx cxxshlib')
78
79     obj.name = 'libdcpomatic'
80     obj.export_includes = ['..']
81     obj.uselib = """
82                  AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE SWRESAMPLE 
83                  BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2
84                  SNDFILE OPENJPEG POSTPROC TIFF MAGICK SSH DCP CXML GLIB LZMA XML++
85                  CURL ZIP QUICKMAIL
86                  """
87
88     if bld.env.TARGET_OSX:
89         obj.framework = ['IOKit', 'Foundation']
90
91     obj.source = sources + ' version.cc'
92
93     if bld.env.TARGET_WINDOWS:
94         obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
95         obj.source += ' stack.cpp'
96     if bld.env.BUILD_STATIC:
97         obj.uselib += ' XML++'
98
99     obj.target = 'dcpomatic'
100
101     i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic', bld)
102
103 def pot(bld):
104     i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
105
106 def pot_merge(bld):
107     i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')