aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-26 01:12:39 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-26 01:12:39 +0200
commit2af66e54781c2592f22c99b1d72d35a7b758a32f (patch)
tree4cab11b2ea1b8908c68ac0989fe1a4f7acd6ee67 /interpreter.py
parent5c0d1cc7c02ac82258f2cac8c8e06a8a7324e724 (diff)
downloadmeson-2af66e54781c2592f22c99b1d72d35a7b758a32f.zip
meson-2af66e54781c2592f22c99b1d72d35a7b758a32f.tar.gz
meson-2af66e54781c2592f22c99b1d72d35a7b758a32f.tar.bz2
Filter header files from built sources.
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index e71f76a..13d3c8f 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -442,8 +442,12 @@ class Interpreter():
for a in args:
if not isinstance(a, str):
raise InvalidArguments('Line %d: Argument %s is not a string.' % (node.lineno(), str(a)))
- name= args[0]
- sources = args[1:]
+ name = args[0]
+ sources = []
+ for s in args[1:]:
+ print(s)
+ if not self.environment.is_header(s):
+ sources.append(s)
if len(sources) == 0:
raise InvalidArguments('Line %d: target has no source files.' % node.lineno())
if name in self.build.targets: