diff options
author | David Robillard <d@drobilla.net> | 2019-07-27 21:48:21 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 01:59:27 +0200 |
commit | 626a49c269351ab47ba8ab1847eae0d13fd62934 (patch) | |
tree | 1f1c11186f4f4bc390a3494487dbf57707283ca8 /wscript | |
parent | 560bcf2ad4d73b79d6e9e4c1c7965d7617a3a41d (diff) |
Cleanup: Clean up includes and call IWYU in lint target
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3,7 +3,7 @@ import os import sys -from waflib import Options, TaskGen +from waflib import Logs, Options, TaskGen from waflib.extras import autowaf # Library and package version (UNIX style major, minor, micro) @@ -127,7 +127,7 @@ def build(bld): common = { 'framework': framework, - 'includes': ['.', './src'], + 'includes': ['.'], 'uselib': ['CAIRO'], } @@ -229,6 +229,11 @@ def lint(ctx): subprocess.call(cmd, cwd='build', shell=True) + try: + subprocess.call(['iwyu_tool.py', '-o', 'clang', '-p', 'build']) + except Exception: + Logs.warn('Failed to call iwyu_tool.py') + # Alias .m files to be compiled like .c files, gcc will do the right thing. @TaskGen.extension('.m') def m_hook(self, node): |