Merge pull request #508 from aozima/pulls1

update scons MDK5 project script: clean old groups.
This commit is contained in:
Bernard Xiong 2015-06-26 10:50:43 +08:00
commit 6e0471eb3b
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ def MDK5Project(target, script):
groups = tree.find('Targets/Target/Groups')
if groups is None:
groups = SubElement(tree.find('Targets/Target'), 'Groups')
groups.clear() # clean old groups
for group in script:
group_xml = MDK4AddGroup(ProjectFiles, groups, group['name'], group['src'], project_path)