Mesa (master): scons: ignore .hpp files in parse_source_list()
Tim Rowley
torowley at kemper.freedesktop.org
Mon Nov 21 18:51:08 UTC 2016
Module: Mesa
Branch: master
Commit: 2da28dbd11e835ddc17e7656087b6f84c6f950ba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2da28dbd11e835ddc17e7656087b6f84c6f950ba
Author: George Kyriazis <george.kyriazis at intel.com>
Date: Wed Nov 9 16:33:10 2016 -0600
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 at collabora.com>
---
scons/custom.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scons/custom.py b/scons/custom.py
index bdb4039..544b15d 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)
More information about the mesa-commit
mailing list