Merge pull request #4481 from thread-liu/liukang
[update] eclipse.py, to compatible with tricore.
This commit is contained in:
commit
a18cb0c064
|
@ -448,6 +448,8 @@ def RelativeProjectPath(env, path):
|
||||||
def HandleExcludingOption(entry, sourceEntries, excluding):
|
def HandleExcludingOption(entry, sourceEntries, excluding):
|
||||||
old_excluding = []
|
old_excluding = []
|
||||||
if entry != None:
|
if entry != None:
|
||||||
|
exclud = entry.get('excluding')
|
||||||
|
if exclud != None:
|
||||||
old_excluding = entry.get('excluding').split('|')
|
old_excluding = entry.get('excluding').split('|')
|
||||||
sourceEntries.remove(entry)
|
sourceEntries.remove(entry)
|
||||||
|
|
||||||
|
@ -484,6 +486,7 @@ def UpdateCproject(env, project, excluding, reset, prj_name):
|
||||||
HandleToolOption(tools, env, project, reset)
|
HandleToolOption(tools, env, project, reset)
|
||||||
|
|
||||||
sourceEntries = cconfiguration.find('storageModule/configuration/sourceEntries')
|
sourceEntries = cconfiguration.find('storageModule/configuration/sourceEntries')
|
||||||
|
if sourceEntries != None:
|
||||||
entry = sourceEntries.find('entry')
|
entry = sourceEntries.find('entry')
|
||||||
HandleExcludingOption(entry, sourceEntries, excluding)
|
HandleExcludingOption(entry, sourceEntries, excluding)
|
||||||
# update refreshScope
|
# update refreshScope
|
||||||
|
|
Loading…
Reference in New Issue