From 701cc9265c3958473e2dc20e62da6c82890b2cd0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Feb 2013 17:58:02 +0000 Subject: Add compile time option to disable explicit Gtk to X11 key forwarding (#887). git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5062 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 00313e2..9a64f3f 100644 --- a/wscript +++ b/wscript @@ -26,6 +26,8 @@ def options(opt): help="Build static library") opt.add_option('--no-shared', action='store_true', dest='no_shared', help='Do not build shared library') + opt.add_option('--no-forward-keys', action='store_true', dest='no_forward_keys', + help='Do not explicitly forward key events for X11 in Gtk') opt.add_option('--gtk2-lib-name', type='string', dest='gtk2_lib_name', default="libgtk-x11-2.0.so.0", help="Gtk2 library name [Default: libgtk-x11-2.0.so.0]") @@ -90,6 +92,9 @@ def configure(conf): autowaf.define(conf, 'SUIL_MODULE_PREFIX', module_prefix) autowaf.define(conf, 'SUIL_MODULE_EXT', module_ext) + if not Options.options.no_forward_keys: + autowaf.define(conf, 'SUIL_FORWARD_KEYS', 1) + autowaf.set_lib_env(conf, 'suil', SUIL_VERSION) conf.write_config_header('suil_config.h', remove=False) @@ -97,6 +102,8 @@ def configure(conf): conf.is_defined('HAVE_GTK2')) autowaf.display_msg(conf, "Gtk2 Library Name", conf.env.SUIL_GTK2_LIB_NAME) + autowaf.display_msg(conf, "Forward Gtk keys to X11 UI", + conf.is_defined('SUIL_FORWARD_KEYS')) autowaf.display_msg(conf, "Qt4 Support", conf.is_defined('HAVE_QT4')) print('') -- cgit v1.2.1