diff options
author | David Robillard <d@drobilla.net> | 2020-09-27 14:29:13 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-09-27 14:29:13 +0200 |
commit | dd81dbeaaefa34e69aebd597aab24ddff19ff9f6 (patch) | |
tree | 14f431489e234b26365da7d97893632ea5d26273 /wscript | |
parent | 02cca8e9be19217d3b6b15b6fa75ade51a52d0ff (diff) | |
download | suil-dd81dbeaaefa34e69aebd597aab24ddff19ff9f6.tar.gz suil-dd81dbeaaefa34e69aebd597aab24ddff19ff9f6.tar.bz2 suil-dd81dbeaaefa34e69aebd597aab24ddff19ff9f6.zip |
Add configure option to explicitly disable X11 support
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -41,7 +41,8 @@ def options(ctx): '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', - 'no-qt5': 'do not build support for Qt5'}) + 'no-qt5': 'do not build support for Qt5', + 'no-x11': 'do not build support for X11'}) def configure(conf): conf.load('compiler_c', cache=True) @@ -95,7 +96,9 @@ def configure(conf): conf.env.NODELETE_FLAGS = ['-Wl,-z,nodelete'] conf.check_pkg('lv2 >= 1.16.0', uselib_store='LV2') - conf.check_pkg('x11', uselib_store='X11', system=True, mandatory=False) + + if not conf.options.no_x11: + conf.check_pkg('x11', uselib_store='X11', system=True, mandatory=False) def enable_module(var_name): conf.define(var_name, 1) @@ -114,10 +117,11 @@ def configure(conf): if conf.env.HAVE_GTK2: conf.define('SUIL_OLD_GTK', 1) - conf.check_pkg('gtk+-x11-2.0', - uselib_store='GTK2_X11', - system=True, - mandatory=False) + if not conf.options.no_x11: + conf.check_pkg('gtk+-x11-2.0', + uselib_store='GTK2_X11', + system=True, + mandatory=False) if not conf.options.no_cocoa: conf.check_pkg('gtk+-quartz-2.0', @@ -130,10 +134,11 @@ def configure(conf): system=True, mandatory=False) - conf.check_pkg('gtk+-x11-3.0 >= 3.14.0', - uselib_store='GTK3_X11', - system=True, - mandatory=False) + if not conf.options.no_x11: + conf.check_pkg('gtk+-x11-3.0 >= 3.14.0', + uselib_store='GTK3_X11', + system=True, + mandatory=False) if not conf.options.no_qt: if not conf.options.no_qt4: @@ -147,10 +152,12 @@ def configure(conf): uselib_store='QT5', system=True, mandatory=False) - conf.check_pkg('Qt5X11Extras >= 5.1.0', - uselib_store='QT5_X11', - system=True, - mandatory=False) + + if not conf.options.no_x11: + conf.check_pkg('Qt5X11Extras >= 5.1.0', + uselib_store='QT5_X11', + system=True, + mandatory=False) if not conf.options.no_cocoa: if conf.check_cxx(header_name = 'QMacCocoaViewContainer', |