summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-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',