提交 804e23a3 编写于 作者: B Bernard Xiong

[tools] fix the list in list issue when use LOCAL_* options

上级 fd69283f
...@@ -480,6 +480,19 @@ def BuildLibInstallAction(target, source, env): ...@@ -480,6 +480,19 @@ def BuildLibInstallAction(target, source, env):
break break
def DoBuilding(target, objects): def DoBuilding(target, objects):
# merge all objects into one list
def one_list(l):
lst = []
for item in l:
if type(item) == type([]):
lst += one_list(item)
else:
lst.append(item)
return lst
objects = one_list(objects)
# remove source files with local flags setting # remove source files with local flags setting
for group in Projects: for group in Projects:
if group.has_key('LOCAL_CCFLAGS') or group.has_key('LOCAL_CPPPATH') or group.has_key('LOCAL_CPPDEFINES'): if group.has_key('LOCAL_CCFLAGS') or group.has_key('LOCAL_CPPPATH') or group.has_key('LOCAL_CPPDEFINES'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册