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