From 016d5bdb570e4f3e836e6c1d75c30eb993ebbfb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Jan 2014 17:27:54 +0000 Subject: Add configure options for PUGL_VERBOSE and PUGL_GRAB_FOCUS. --- wscript | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 3682d14..7da324d 100644 --- a/wscript +++ b/wscript @@ -31,11 +31,15 @@ def options(opt): opt.load('compiler_cxx') autowaf.set_options(opt) opt.add_option('--test', action='store_true', default=False, dest='build_tests', - help="Build unit tests") + help='Build unit tests') opt.add_option('--static', action='store_true', default=False, dest='static', - help="Build static library") + help='Build static library') opt.add_option('--shared', action='store_true', default=False, dest='shared', - help="Build shared library") + help='Build shared library') + opt.add_option('--verbose', action='store_true', default=False, dest='verbose', + help='Print GL information to console') + opt.add_option('--grab-focus', action='store_true', default=False, dest='grab_focus', + help='Work around reparent keyboard issues by grabbing focus') def configure(conf): conf.load('compiler_c') @@ -49,6 +53,9 @@ def configure(conf): else: conf.env.append_unique('CFLAGS', '-std=c99') + if Options.options.verbose: + autowaf.define(conf, 'PUGL_VERBOSE', PUGL_VERBOSE) + # Shared library building is broken on win32 for some reason conf.env['BUILD_TESTS'] = Options.options.build_tests conf.env['BUILD_SHARED'] = (Options.platform != 'win32' or -- cgit v1.2.1