aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 21:35:57 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:25 +0200
commit560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d (patch)
tree20ae1e2a4ee8ad3b2908c5508db6212962d8219b
parent29940c35f257fe00cbf6ddebd5b56314c728958e (diff)
downloadpugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.tar.gz
pugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.tar.bz2
pugl-560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d.zip
Cleanup: Fix Python whitespace
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index 582d306..6d44282 100644
--- a/wscript
+++ b/wscript
@@ -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=\"*," +