summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kyriazis <george.kyriazis@intel.com>2016-11-09 16:33:10 -0600
committerTim Rowley <timothy.o.rowley@intel.com>2016-11-21 12:44:46 -0600
commit2da28dbd11e835ddc17e7656087b6f84c6f950ba (patch)
treef84c2c2cdaf6f67cf299ef1eceb4b7a8243fb559
parentc32318073385dc461b91e407394e57fb76748da8 (diff)
scons: ignore .hpp files in parse_source_list()
Drivers that contain C++ .hpp files need to ignore them too, along with .h files, when building source file lists. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r--scons/custom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scons/custom.py b/scons/custom.py
index bdb4039b8af..544b15de1a4 100644
--- a/scons/custom.py
+++ b/scons/custom.py
@@ -281,7 +281,7 @@ def parse_source_list(env, filename, names=None):
# cause duplicate actions.
f = f[len(cur_srcdir + '/'):]
# do not include any headers
- if f.endswith('.h'):
+ if f.endswith(tuple(['.h','.hpp'])):
continue
srcs.append(f)