aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/wscript b/wscript
index ef912a5b..39d21d8d 100644
--- a/wscript
+++ b/wscript
@@ -196,11 +196,13 @@ def build(bld):
bld.add_post_fun(fix_docs)
def lint(ctx):
+ "checks code for style issues"
import subprocess
subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* serd/*', shell=True)
subprocess.call('clang-tidy -checks="*,-misc-unused-parameters,-readability-else-after-return,-llvm-header-guard,-google-readability-todo,-clang-analyzer-alpha.*" -extra-arg="-std=c99" -extra-arg="-I." -extra-arg="-Ibuild" ./serd/*.h ./src/*.c ./src/*.h', shell=True)
def amalgamate(ctx):
+ "builds single-file amalgamated source"
import shutil
shutil.copy('serd/serd.h', 'build/serd.h')
with open('build/serd.c', 'w') as amalgamation: