From 804e23a3aa801d298be3569edb15db8d6cae24ac Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Tue, 4 Aug 2015 09:43:27 +0800 Subject: [PATCH] [tools] fix the list in list issue when use LOCAL_* options --- tools/building.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/building.py b/tools/building.py index 47ad823837..5ad6d4e9d2 100644 --- a/tools/building.py +++ b/tools/building.py @@ -480,6 +480,19 @@ def BuildLibInstallAction(target, source, env): break 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 for group in Projects: if group.has_key('LOCAL_CCFLAGS') or group.has_key('LOCAL_CPPPATH') or group.has_key('LOCAL_CPPDEFINES'):