aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-21 01:01:54 +0200
committerDavid Robillard <d@drobilla.net>2018-09-21 09:30:31 +0200
commitfec1b0f367603249c1daa710f546332e8296b270 (patch)
tree1a90763150ba9b6e06abd48f3fe2975171b31e6e /wscript
parenteedf74351965f4e144a348e16cb3ad917187d71a (diff)
downloadjalv-fec1b0f367603249c1daa710f546332e8296b270.tar.gz
jalv-fec1b0f367603249c1daa710f546332e8296b270.tar.bz2
jalv-fec1b0f367603249c1daa710f546332e8296b270.zip
Make Suil dependency optional
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 9 insertions, 4 deletions
diff --git a/wscript b/wscript
index c84f891..1518339 100644
--- a/wscript
+++ b/wscript
@@ -26,6 +26,7 @@ def options(ctx):
opt,
{'portaudio': 'use PortAudio backend, not JACK',
'no-jack-session': 'do not build JACK session support',
+ 'no-gui': 'do not build any GUIs',
'no-gtk': 'do not build Gtk GUI',
'no-gtkmm': 'do not build Gtkmm GUI',
'no-gtk2': 'do not build Gtk2 GUI',
@@ -49,8 +50,6 @@ def configure(conf):
atleast_version='0.14.0', mandatory=True)
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
atleast_version='0.12.0', mandatory=True)
- autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
- atleast_version='0.8.7', mandatory=True)
autowaf.check_pkg(conf, 'sratom-0', uselib_store='SRATOM',
atleast_version='0.6.0', mandatory=True)
if Options.options.portaudio:
@@ -60,7 +59,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.120.0', mandatory=True)
- if not Options.options.no_gtk:
+ if not Options.options.no_gui and not Options.options.no_gtk:
if not Options.options.no_gtk2:
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2',
atleast_version='2.18.0', mandatory=False)
@@ -71,7 +70,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'gtk+-3.0', uselib_store='GTK3',
atleast_version='3.0.0', mandatory=False)
- if not Options.options.no_qt:
+ if not Options.options.no_gui and not Options.options.no_qt:
if not Options.options.no_qt4:
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',
atleast_version='4.0.0', mandatory=False)
@@ -86,6 +85,12 @@ def configure(conf):
if not conf.find_program('moc-qt5', var='MOC5', mandatory=False):
conf.find_program('moc', var='MOC5')
+ have_gui = (conf.env.HAVE_GTK2 or conf.env.HAVE_GTKMM2 or conf.env.HAVE_GTK3 or
+ conf.env.HAVE_QT4 or conf.env.HAVE_QT5)
+ if have_gui:
+ autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
+ atleast_version='0.8.7')
+
if conf.env.HAVE_JACK:
autowaf.check_function(
conf, 'c', 'jack_port_type_get_buffer_size',