Mesa (master): scons: allow .inl file extension

Tim Rowley torowley at kemper.freedesktop.org
Fri Jun 30 19:18:03 UTC 2017


Module: Mesa
Branch: master
Commit: 8b66d18a3b4f6d6a4f0ea9d71459dac68e5e0295
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b66d18a3b4f6d6a4f0ea9d71459dac68e5e0295

Author: Tim Rowley <timothy.o.rowley at intel.com>
Date:   Tue Jun 27 10:47:28 2017 -0500

scons: allow .inl file extension

Intended for header files which are not meant to be included directly.

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>

---

 scons/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scons/custom.py b/scons/custom.py
index 544b15de1a..955247ccf2 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(tuple(['.h','.hpp'])):
+                if f.endswith(tuple(['.h','.hpp','.inl'])):
                     continue
                 srcs.append(f)
 




More information about the mesa-commit mailing list