summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2022-04-13 19:29:29 +0200
committerGitHub <noreply@github.com>2022-04-13 18:29:29 +0100
commitaa275762364b9d71c3bfca673e9c78df6d407aa9 (patch)
tree04c9667483d697ac480d6178f9fdb3ddbeaa0996 /compat
parentcceca542551ca8a23cee1f4ebfb3f9a792cb0296 (diff)
downloadjack2-aa275762364b9d71c3bfca673e9c78df6d407aa9.tar.gz
Fix wscripts syntax (#826)
* Add flake8 configuration .flake8: Add flake8 configuration that limits the line length to 120 chars and outputs to flake8.txt * Add flake8.txt to gitignore .gitignore: Add flake8.txt (flake8 output file) to ignore. * Syntax fixes and cleanup for top-level wscript wscript: Fix syntax of wscript according to pep8 (but do not break long lines). Remove unused imports and move all module level imports to the top of the file. Fix broken build target of IIO driver (source argument to `create_driver_obj()` supplied an uninitialized variable). Break lines at 120 chars. * Fix common/wscript syntax common/wscript: Fix syntax problems, unneeded imports and break lines at 120 chars. * Fix compat/alloca/wscript syntax compat/alloca/wscript: Fix compat/alloca/wscript syntax * Fix compat/wscript syntax compat/wscript: Fix compat/wscript syntax * Fix dbus/wscript syntax dbus/wscript: Fix syntax and break lintes at 120 chars. * Fix example-clients/wscript syntax example-clients/wscript: Fix syntax and remove commented code. * Fix tests/wscript syntax tests/wscript: Fix syntax and commented code. * Fix tools/wscript syntax tools/wscript: Fix tools/wscript syntax. * Add github workflow for linting wscripts .github/workflows/lint.yml: Add github workflow for linting wscripts using findutils and flake8. * Fix project version extraction in CI .github/workflows/build.yml: Adapt the project version extraction in CI to the syntax changes in the top-level wscript.
Diffstat (limited to 'compat')
-rw-r--r--compat/alloca/wscript3
-rw-r--r--compat/wscript5
2 files changed, 8 insertions, 0 deletions
diff --git a/compat/alloca/wscript b/compat/alloca/wscript
index 9e740f1c..56ff5208 100644
--- a/compat/alloca/wscript
+++ b/compat/alloca/wscript
@@ -19,14 +19,17 @@
from waflib import Errors
+
def options(opt):
pass
+
def configure(conf):
try:
conf.check(header_name='alloca.h')
except Errors.ConfigurationError:
conf.env.append_unique('INCLUDES', conf.path.abspath())
+
def build(bld):
pass
diff --git a/compat/wscript b/compat/wscript
index 25eb2a3f..1cd476fc 100644
--- a/compat/wscript
+++ b/compat/wscript
@@ -19,6 +19,7 @@
import os
+
def get_subdirs(ctx):
"""
Get the compatibility module subirectories.
@@ -37,6 +38,7 @@ def get_subdirs(ctx):
subdirs.append(entry)
return subdirs
+
def recurse_into_subdirs(ctx):
"""
Recurse into compatibility module subdirectories.
@@ -47,11 +49,14 @@ def recurse_into_subdirs(ctx):
for x in get_subdirs(ctx):
ctx.recurse(x)
+
def options(opt):
recurse_into_subdirs(opt)
+
def configure(conf):
recurse_into_subdirs(conf)
+
def build(bld):
recurse_into_subdirs(bld)