aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=\"*," +