aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-09 23:47:16 +0000
committerDavid Robillard <d@drobilla.net>2015-10-09 23:47:16 +0000
commitc9610bf31995a51b61cf2bedb8855b00e3132518 (patch)
tree4d6ce40f2796ad656d6d528dd55c058b9c9afffc /wscript
parent179200bf87a153e1103a3bbe6133c9f5339d62d2 (diff)
downloadjalv-c9610bf31995a51b61cf2bedb8855b00e3132518.tar.gz
jalv-c9610bf31995a51b61cf2bedb8855b00e3132518.tar.bz2
jalv-c9610bf31995a51b61cf2bedb8855b00e3132518.zip
Add configure options to disable Gtk GUIs
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5761 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript31
1 files changed, 21 insertions, 10 deletions
diff --git a/wscript b/wscript
index 9050a1a..a0f9b93 100644
--- a/wscript
+++ b/wscript
@@ -21,13 +21,19 @@ def options(opt):
opt.add_option('--no-jack-session', action='store_true', default=False,
dest='no_jack_session',
help="Do not build JACK session support")
- opt.add_option('--no-qt', action='store_true', default=False,
- dest='no_qt',
+ opt.add_option('--no-gtk', action='store_true', default=False,
+ dest='no_gtk',
+ help="Do not build Gtk GUI")
+ opt.add_option('--no-gtk2', action='store_true', dest='no_gtk2',
+ help='Do not build Gtk2 GUI')
+ opt.add_option('--no-gtk3', action='store_true', dest='no_gtk3',
+ help='Do not build Gtk3 GUI')
+ opt.add_option('--no-qt', action='store_true', default=False, dest='no_qt',
help="Do not build Qt GUI")
opt.add_option('--no-qt4', action='store_true', dest='no_qt4',
- help='Do not build support for Qt4')
+ help='Do not build Qt4 GUI')
opt.add_option('--no-qt5', action='store_true', dest='no_qt5',
- help='Do not build support for Qt5')
+ help='Do not build Qt5 GUI')
def configure(conf):
conf.line_just = 52
@@ -50,12 +56,17 @@ def configure(conf):
atleast_version='0.4.0', mandatory=True)
autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.120.0', mandatory=True)
- autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2',
- atleast_version='2.18.0', mandatory=False)
- autowaf.check_pkg(conf, 'gtk+-3.0', uselib_store='GTK3',
- atleast_version='3.0.0', mandatory=False)
- autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM2',
- atleast_version='2.20.0', mandatory=False)
+
+ if 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)
+ autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM2',
+ atleast_version='2.20.0', mandatory=False)
+ if not Options.options.no_gtk3:
+ 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_qt4:
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',