aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-09-25 09:39:37 +0200
committerDavid Robillard <d@drobilla.net>2017-09-25 09:39:37 +0200
commit5dddc73ee35c35ea7b5c9429e8d2dbd954a33955 (patch)
tree09a0cb6593765fe18ae3f0938595cd220f0f31a3
parent9dd64d03e482b84a3e35787d69028275f50533cd (diff)
downloadserd-5dddc73ee35c35ea7b5c9429e8d2dbd954a33955.tar.gz
serd-5dddc73ee35c35ea7b5c9429e8d2dbd954a33955.tar.bz2
serd-5dddc73ee35c35ea7b5c9429e8d2dbd954a33955.zip
Add missing waf command documentation
-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: