projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move KDM CLI tool into lib/
[dcpomatic.git]
/
src
/
lib
/
wscript
diff --git
a/src/lib/wscript
b/src/lib/wscript
index 1f870462edf106b22703e7c87e43254c6f957ff4..59920d6ca9060e482ce02e0612281a6d06ddabc5 100644
(file)
--- a/
src/lib/wscript
+++ b/
src/lib/wscript
@@
-1,125
+1,193
@@
#
#
-# Copyright (C) 2012-20
15
Carl Hetherington <cth@carlh.net>
+# Copyright (C) 2012-20
20
Carl Hetherington <cth@carlh.net>
#
#
-# This program is free software; you can redistribute it and/or modify
+# This file is part of DCP-o-matic.
+#
+# DCP-o-matic is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
-#
This program
is distributed in the hope that it will be useful,
+#
DCP-o-matic
is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
#
import os
import i18n
sources = """
#
import os
import i18n
sources = """
+ active_text.cc
analyse_audio_job.cc
analyse_audio_job.cc
+ analyse_subtitles_job.cc
+ analytics.cc
+ atmos_content.cc
+ atmos_mxf_content.cc
+ atmos_decoder.cc
+ atmos_metadata.cc
+ atmos_mxf_decoder.cc
+ audio_analyser.cc
audio_analysis.cc
audio_buffers.cc
audio_content.cc
audio_decoder.cc
audio_analysis.cc
audio_buffers.cc
audio_content.cc
audio_decoder.cc
- audio_de
coder_stream
.cc
+ audio_de
lay
.cc
audio_filter.cc
audio_filter.cc
+ audio_filter_graph.cc
audio_mapping.cc
audio_mapping.cc
+ audio_merger.cc
+ audio_point.cc
audio_processor.cc
audio_processor.cc
+ audio_ring_buffers.cc
audio_stream.cc
audio_stream.cc
+ butler.cc
+ text_content.cc
+ text_decoder.cc
+ case_insensitive_sorter.cc
+ check_content_change_job.cc
cinema.cc
cinema_sound_processor.cc
colour_conversion.cc
config.cc
content.cc
content_factory.cc
cinema.cc
cinema_sound_processor.cc
colour_conversion.cc
config.cc
content.cc
content_factory.cc
- cross.cc
- data.cc
+ combine_dcp_job.cc
+ copy_dcp_details_to_film.cc
+ create_cli.cc
+ cross_common.cc
+ crypto.cc
+ curl_uploader.cc
+ datasat_ap2x.cc
+ dcp.cc
dcp_content.cc
dcp_content_type.cc
dcp_decoder.cc
dcp_content.cc
dcp_content_type.cc
dcp_decoder.cc
+ dcp_encoder.cc
dcp_examiner.cc
dcp_subtitle.cc
dcp_subtitle_content.cc
dcp_subtitle_decoder.cc
dcp_examiner.cc
dcp_subtitle.cc
dcp_subtitle_content.cc
dcp_subtitle_decoder.cc
+ dcp_text_track.cc
dcp_video.cc
dcp_video.cc
+ dcpomatic_log.cc
dcpomatic_socket.cc
dcpomatic_time.cc
dcpomatic_socket.cc
dcpomatic_time.cc
+ decoder.cc
+ decoder_factory.cc
+ decoder_part.cc
+ digester.cc
+ dkdm_recipient.cc
+ dkdm_wrapper.cc
dolby_cp750.cc
dolby_cp750.cc
+ emailer.cc
+ empty.cc
encoder.cc
encoder.cc
+ encode_server.cc
+ encode_server_finder.cc
+ encoded_log_entry.cc
environment_info.cc
environment_info.cc
+ event_history.cc
examine_content_job.cc
examine_content_job.cc
+ examine_ffmpeg_subtitles_job.cc
exceptions.cc
file_group.cc
exceptions.cc
file_group.cc
+ file_log.cc
filter_graph.cc
ffmpeg.cc
ffmpeg_audio_stream.cc
ffmpeg_content.cc
ffmpeg_decoder.cc
filter_graph.cc
ffmpeg.cc
ffmpeg_audio_stream.cc
ffmpeg_content.cc
ffmpeg_decoder.cc
+ ffmpeg_encoder.cc
ffmpeg_examiner.cc
ffmpeg_examiner.cc
+ ffmpeg_file_encoder.cc
+ ffmpeg_image_proxy.cc
ffmpeg_stream.cc
ffmpeg_subtitle_stream.cc
ffmpeg_stream.cc
ffmpeg_subtitle_stream.cc
+ ffmpeg_wrapper.cc
film.cc
filter.cc
font.cc
film.cc
filter.cc
font.cc
+ font_data.cc
+ frame_interval_checker.cc
frame_rate_change.cc
frame_rate_change.cc
+ hints.cc
internet.cc
image.cc
image_content.cc
image_decoder.cc
image_examiner.cc
internet.cc
image.cc
image_content.cc
image_decoder.cc
image_examiner.cc
+ image_filename_sorter.cc
image_proxy.cc
image_proxy.cc
- isdcf_metadata.cc
j2k_image_proxy.cc
job.cc
job_manager.cc
j2k_image_proxy.cc
job.cc
job_manager.cc
-
kdm
.cc
+
j2k_encoder
.cc
json_server.cc
json_server.cc
+ kdm_cli.cc
+ kdm_recipient.cc
+ kdm_with_metadata.cc
log.cc
log.cc
- magick_image_proxy.cc
- md5_digester.cc
+ log_entry.cc
mid_side_decoder.cc
mid_side_decoder.cc
+ overlaps.cc
+ pixel_quanta.cc
player.cc
player.cc
+ player_text.cc
player_video.cc
playlist.cc
position_image.cc
player_video.cc
playlist.cc
position_image.cc
- quickmail.cc
ratio.cc
raw_image_proxy.cc
ratio.cc
raw_image_proxy.cc
- render_subtitles.cc
+ reel_writer.cc
+ render_text.cc
resampler.cc
resampler.cc
-
safe_stringstream
.cc
-
scp_dcp_job
.cc
+
rgba
.cc
+
rng
.cc
scoped_temporary.cc
scoped_temporary.cc
+ scp_uploader.cc
+ screen.cc
send_kdm_email_job.cc
send_kdm_email_job.cc
+ send_notification_email_job.cc
send_problem_report_job.cc
server.cc
send_problem_report_job.cc
server.cc
- s
erver_find
er.cc
- s
ingle_stream_audio_content
.cc
- s
ndfile_base
.cc
- s
ndfile_content
.cc
- s
ndfile_decoder
.cc
- s
ndfile_examiner
.cc
- s
ubrip
.cc
- s
ubrip_content
.cc
- sub
rip_decoder
.cc
- subtitle_
content
.cc
-
subtitle_decoder
.cc
+ s
huffl
er.cc
+ s
tate
.cc
+ s
pl
.cc
+ s
pl_entry
.cc
+ s
tring_log_entry
.cc
+ s
tring_text_file
.cc
+ s
tring_text_file_content
.cc
+ s
tring_text_file_decoder
.cc
+ sub
title_analysis
.cc
+ subtitle_
encoder
.cc
+
text_ring_buffers
.cc
timer.cc
transcode_job.cc
timer.cc
transcode_job.cc
- tr
anscoder
.cc
+ tr
usted_device
.cc
types.cc
signal_manager.cc
types.cc
signal_manager.cc
- update.cc
+ stdout_log.cc
+ update_checker.cc
+ upload_job.cc
+ uploader.cc
upmixer_a.cc
upmixer_a.cc
+ upmixer_b.cc
+ usl.cc
util.cc
util.cc
+ verify_dcp_job.cc
video_content.cc
video_content.cc
- video_content_scale.cc
video_decoder.cc
video_decoder.cc
+ video_filter_graph.cc
+ video_mxf_content.cc
+ video_mxf_decoder.cc
+ video_mxf_examiner.cc
+ video_ring_buffers.cc
writer.cc
writer.cc
+ zipper.cc
"""
def build(bld):
"""
def build(bld):
@@
-131,19
+199,30
@@
def build(bld):
obj.name = 'libdcpomatic2'
obj.export_includes = ['..']
obj.uselib = """
obj.name = 'libdcpomatic2'
obj.export_includes = ['..']
obj.uselib = """
- AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE
SWRESAMPLE
- BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2
- S
NDFILE OPENJPEG POSTPROC TIFF MAGICK
SSH DCP CXML GLIB LZMA XML++
- CURL ZIP
PANGOMM CAIROMM XMLSEC SUB
+ AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE
+ BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2
BOOST_REGEX
+ S
AMPLERATE POSTPROC TIFF
SSH DCP CXML GLIB LZMA XML++
+ CURL ZIP
BZ2 FONTCONFIG PANGOMM CAIROMM XMLSEC SUB ICU NETTLE PNG LEQM_NRT
"""
if bld.env.TARGET_OSX:
"""
if bld.env.TARGET_OSX:
- obj.framework = ['IOKit', 'Foundation']
+ obj.framework = ['IOKit', 'Foundation'
, 'DiskArbitration', 'ApplicationServices'
]
obj.source = sources + ' version.cc'
obj.source = sources + ' version.cc'
+ if bld.env.ENABLE_DISK:
+ obj.source += ' copy_to_drive_job.cc ext.cc nanomsg.cc'
+ obj.uselib += ' LWEXT4 NANOMSG'
+ if bld.env.TARGET_LINUX:
+ obj.uselib += ' POLKIT'
+
if bld.env.TARGET_WINDOWS:
if bld.env.TARGET_WINDOWS:
- obj.uselib += ' WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE'
+ obj.uselib += ' WINSOCK2 DBGHELP SHLWAPI MSWSOCK BOOST_LOCALE SETUPAPI'
+ obj.source += ' cross_windows.cc'
+ if bld.env.TARGET_OSX:
+ obj.source += ' cross_osx.cc'
+ if bld.env.TARGET_LINUX:
+ obj.source += ' cross_linux.cc'
if bld.env.STATIC_DCPOMATIC:
obj.uselib += ' XMLPP'
if bld.env.STATIC_DCPOMATIC:
obj.uselib += ' XMLPP'
@@
-152,7
+231,7
@@
def build(bld):
i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic2', bld)
def pot(bld):
i18n.po_to_mo(os.path.join('src', 'lib'), 'libdcpomatic2', bld)
def pot(bld):
- i18n.pot(os.path.join('src', 'lib'), sources, 'libdcpomatic')
+ i18n.pot(os.path.join('src', 'lib'), sources
+ " util.h"
, 'libdcpomatic')
def pot_merge(bld):
i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')
def pot_merge(bld):
i18n.pot_merge(os.path.join('src', 'lib'), 'libdcpomatic')