From d738e9b106e728417f4235332caed64c2b44b7e1 Mon Sep 17 00:00:00 2001 From: Guido Aulisi Date: Fri, 6 Dec 2019 22:49:29 +0100 Subject: Fix building Qt5 with --no-cocoa flag --- wscript | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index c69f633..23f5221 100644 --- a/wscript +++ b/wscript @@ -103,14 +103,16 @@ def configure(conf): uselib_store='QT4', mandatory=False) - if not conf.options.no_qt5 and not conf.options.no_cocoa: + if not conf.options.no_qt5: conf.check_pkg('Qt5Widgets >= 5.1.0', uselib_store='QT5', mandatory=False) - if conf.check_cxx(header_name = 'QMacCocoaViewContainer', - uselib = 'QT5_COCOA', - mandatory = False): - enable_module('SUIL_WITH_COCOA_IN_QT5') + + if not conf.options.no_cocoa: + if conf.check_cxx(header_name = 'QMacCocoaViewContainer', + uselib = 'QT5_COCOA', + mandatory = False): + enable_module('SUIL_WITH_COCOA_IN_QT5') conf.check_cc(define_name = 'HAVE_LIBDL', lib = 'dl', -- cgit v1.2.1