diff options
author | David Robillard <d@drobilla.net> | 2019-07-27 21:35:57 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 01:59:25 +0200 |
commit | 560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d (patch) | |
tree | 20ae1e2a4ee8ad3b2908c5508db6212962d8219b | |
parent | 29940c35f257fe00cbf6ddebd5b56314c728958e (diff) | |
download | pugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.tar.gz pugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.tar.bz2 pugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.zip |
Cleanup: Fix Python whitespace
-rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -19,12 +19,13 @@ VERSION = PUGL_VERSION # Package version for waf dist top = '.' # Source directory out = 'build' # Build directory + def options(ctx): ctx.load('compiler_c') opts = ctx.configuration_options() opts.add_option('--target', default=None, dest='target', - help='target platform (e.g. "win32" or "darwin")') + help='target platform (e.g. "win32" or "darwin")') ctx.add_flags( opts, @@ -34,6 +35,7 @@ def options(ctx): 'log': 'print GL information to console', 'grab-focus': 'work around keyboard issues by grabbing focus'}) + def configure(conf): conf.env.TARGET_PLATFORM = Options.options.target or sys.platform conf.load('compiler_c', cache=True) @@ -83,6 +85,7 @@ def configure(conf): "Cairo support": conf.is_defined('HAVE_CAIRO'), "Verbose console output": conf.is_defined('PUGL_VERBOSE')}) + def build(bld): # C Headers includedir = '${INCLUDEDIR}/pugl-%s/pugl' % PUGL_MAJOR_VERSION @@ -196,14 +199,16 @@ def build(bld): bld(features = 'doxygen', doxyfile = 'Doxyfile') + def test(tst): pass + def lint(ctx): "checks code for style issues" import subprocess - subprocess.call("flake8 wscript --ignore E221,W504,E302,E251,E241", + subprocess.call("flake8 wscript --ignore E221,W504,E251,E241", shell=True) cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," + |