From 119db8b6f9b8d0bd69d86403d84b4e60aeb86f44 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Oct 2018 22:44:44 +0100 Subject: [PATCH] Build fixes. --- cscript | 4 +++- src/lib/wscript | 2 +- wscript | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cscript b/cscript index aa274e8ec..a985fa940 100644 --- a/cscript +++ b/cscript @@ -337,7 +337,9 @@ def configure_options(target, options): if target.debug: opt += ' --enable-debug' if target.platform == 'windows': - opt += ' --target-windows' + opt += ' --target-windows --disable-tests' + elif target.platform == 'osx': + opt += ' --disable-tests' elif target.platform == 'linux': opt += ' --static-dcpomatic --static-wxwidgets --static-ffmpeg --static-dcp --static-sub --static-cxml' if target.distro == 'centos': diff --git a/src/lib/wscript b/src/lib/wscript index 75e122e28..6d67fa4fe 100644 --- a/src/lib/wscript +++ b/src/lib/wscript @@ -178,7 +178,7 @@ def build(bld): AVCODEC AVUTIL AVFORMAT AVFILTER SWSCALE BOOST_FILESYSTEM BOOST_THREAD BOOST_DATETIME BOOST_SIGNALS2 BOOST_REGEX SAMPLERATE POSTPROC TIFF SSH DCP CXML GLIB LZMA XML++ - CURL ZIP FONTCONFIG PANGOMM CAIROMM XMLSEC SUB ICU NETTLE + CURL ZIP FONTCONFIG PANGOMM CAIROMM XMLSEC SUB ICU NETTLE PNG """ if bld.env.TARGET_OSX: diff --git a/wscript b/wscript index f7bfea42f..76aefd277 100644 --- a/wscript +++ b/wscript @@ -337,6 +337,9 @@ def configure(conf): # nettle conf.check_cfg(package="nettle", args='--cflags --libs', uselib_store='NETTLE', mandatory=True) + # libpng + conf.check_cfg(package='libpng', args='--cflags --libs', uselib_store='PNG', mandatory=True) + # FFmpeg if conf.options.static_ffmpeg: names = ['avformat', 'avfilter', 'avcodec', 'avutil', 'swscale', 'postproc', 'swresample'] @@ -417,7 +420,7 @@ def configure(conf): mandatory=False) # Hack: the previous two check_cxx calls end up copying their (necessary) cxxflags - # to these variables. We don't want to use these for the actual build, so clearn them out. + # to these variables. We don't want to use these for the actual build, so clean them out. conf.env['CXXFLAGS_AVCODEC'] = [] conf.env['CXXFLAGS_AVUTIL'] = [] -- 2.30.2