summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-31 21:52:57 +0200
committerDavid Robillard <d@drobilla.net>2019-07-31 21:52:57 +0200
commite0678285b5ce373de56f3d2516f03e1187217a17 (patch)
treed4630b5d64a6d25ff8d2c3e8894dc1dea0283af5
parent396c2c2a905037b7c598f5c409a8cc63a0a77bf7 (diff)
downloadsuil-e0678285b5ce373de56f3d2516f03e1187217a17.tar.gz
suil-e0678285b5ce373de56f3d2516f03e1187217a17.tar.bz2
suil-e0678285b5ce373de56f3d2516f03e1187217a17.zip
Add no-cocoa configure flag
This is a workaround for some weird systems that have Cocoa-related packages installed without the ability to actually build Cocoa code.
-rw-r--r--wscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript b/wscript
index 9ce3e1d..e316d93 100644
--- a/wscript
+++ b/wscript
@@ -32,6 +32,7 @@ def options(ctx):
opt,
{'static': 'build static library',
'no-shared': 'do not build shared library',
+ 'no-cocoa': 'do not build support for Cocoa/Quartz',
'no-gtk': 'do not build support for Gtk',
'no-qt': 'do not build support for Qt (any version)',
'no-qt4': 'do not build support for Qt4',
@@ -71,8 +72,9 @@ def configure(conf):
autowaf.check_pkg(conf, 'gtk+-x11-2.0', uselib_store='GTK2_X11',
atleast_version='2.0.0', mandatory=False)
- autowaf.check_pkg(conf, 'gtk+-quartz-2.0', uselib_store='GTK2_QUARTZ',
- atleast_version='2.0.0', mandatory=False)
+ if not conf.options.no_cocoa:
+ autowaf.check_pkg(conf, 'gtk+-quartz-2.0', uselib_store='GTK2_QUARTZ',
+ atleast_version='2.0.0', mandatory=False)
autowaf.check_pkg(conf, 'gtk+-3.0', uselib_store='GTK3',
atleast_version='3.14.0', mandatory=False)
@@ -85,7 +87,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',
atleast_version='4.4.0', mandatory=False)
- if not conf.options.no_qt5:
+ if not conf.options.no_qt5 and not conf.options.no_cocoa:
autowaf.check_pkg(conf, 'Qt5Widgets', uselib_store='QT5',
atleast_version='5.1.0', mandatory=False)
if conf.check_cxx(header_name = 'QMacCocoaViewContainer',