diff options
| author | Bernard Xiong <[email protected]> | 2015-08-09 00:03:40 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-08-09 00:03:40 +0800 |
| commit | 1a5c579e71c26bd14e5bf7309c06e13f40ad8210 (patch) | |
| tree | eb98a085c8d3a215b2efe91e9598460bbbc38179 /tools | |
| parent | f5217d6a9c8c317bfc650b8402b4a866f445fc58 (diff) | |
| parent | 2bea2fdea8d99f0f86e9f6904c8025fcbdfb8905 (diff) | |
[Tools] merge local modification
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py index d47c894142..6b505256a4 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'): |
