Merge pull request #4420 from margguo/fixbug/update2mdk_duplicate_files
[tools]修复由于 sconscript 文件 src 列表含有重复的文件,导致的导出 mdk 工程构建失败的问题
This commit is contained in:
commit
89e0e0cb14
|
@ -626,6 +626,8 @@ def DefineGroup(name, src, depend, **parameters):
|
|||
group['name'] = name
|
||||
group['path'] = group_path
|
||||
if type(src) == type([]):
|
||||
# remove duplicate elements from list
|
||||
src = list(set(src))
|
||||
group['src'] = File(src)
|
||||
else:
|
||||
group['src'] = src
|
||||
|
|
Loading…
Reference in New Issue