diff options
author | Guido Aulisi <guido.aulisi@gmail.com> | 2019-12-06 22:49:29 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-07 12:01:34 +0100 |
commit | d738e9b106e728417f4235332caed64c2b44b7e1 (patch) | |
tree | 0d489294788545ec0f9449671b8d4e267c83a178 /wscript | |
parent | 0863b8dbb83924f619c08c432e0db147d9989a67 (diff) | |
download | suil-d738e9b106e728417f4235332caed64c2b44b7e1.tar.gz suil-d738e9b106e728417f4235332caed64c2b44b7e1.tar.bz2 suil-d738e9b106e728417f4235332caed64c2b44b7e1.zip |
Fix building Qt5 with --no-cocoa flag
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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', |