aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-25 19:54:58 +0000
committerDavid Robillard <d@drobilla.net>2011-01-25 19:54:58 +0000
commit2a4db42ee2548b0bcddd46f28e504fcfc8afc554 (patch)
treea829b86230db067e596b79e5efc7415cbee154ce /wscript
parent33c8bc056440d9734edd0e823cc5724a0f3a46f8 (diff)
downloadserd-2a4db42ee2548b0bcddd46f28e504fcfc8afc554.tar.gz
serd-2a4db42ee2548b0bcddd46f28e504fcfc8afc554.tar.bz2
serd-2a4db42ee2548b0bcddd46f28e504fcfc8afc554.zip
Add `lint' waf target.
git-svn-id: http://svn.drobilla.net/serd/trunk@73 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index 67707584..9041545e 100644
--- a/wscript
+++ b/wscript
@@ -106,6 +106,9 @@ def build(bld):
bld.add_post_fun(autowaf.run_ldconfig)
+def lint(ctx):
+ subprocess.call('cpplint.py --filter=-whitespace,+whitespace/comments,-build/header_guard,-readability/casting,-readability/todo src/* serd/*', shell=True)
+
def test(ctx):
try:
os.makedirs('build/tests')