mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-25 00:09:54 +00:00
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>
This commit is contained in:
parent
c323180733
commit
2da28dbd11
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user