update scons MDK5 project script: clean old groups.

This commit is contained in:
aozima 2015-06-25 20:49:54 +08:00
parent 9fe3cbf76f
commit 76d82d6803
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)