diff options
-rw-r--r-- | wscript | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |