diff options
author | David Robillard <d@drobilla.net> | 2014-01-27 17:27:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-27 17:27:54 +0000 |
commit | 016d5bdb570e4f3e836e6c1d75c30eb993ebbfb2 (patch) | |
tree | 6f0e33df7f8f82055508201f0283430996b2b77c /wscript | |
parent | 802780eca08ae0363ecdb027f0f7420c9488595e (diff) |
Add configure options for PUGL_VERBOSE and PUGL_GRAB_FOCUS.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |