4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 12:53:31 +08:00

[update] eclipse.py, to compatible with tricore.

This commit is contained in:
thread-liu 2021-03-18 15:21:42 +08:00
parent 339ebf3c16
commit 4913e2b5d1

View File

@ -448,8 +448,10 @@ def RelativeProjectPath(env, path):
def HandleExcludingOption(entry, sourceEntries, excluding): def HandleExcludingOption(entry, sourceEntries, excluding):
old_excluding = [] old_excluding = []
if entry != None: if entry != None:
old_excluding = entry.get('excluding').split('|') exclud = entry.get('excluding')
sourceEntries.remove(entry) if exclud != None:
old_excluding = entry.get('excluding').split('|')
sourceEntries.remove(entry)
value = '' value = ''
for item in old_excluding: for item in old_excluding:
@ -484,8 +486,9 @@ 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')
entry = sourceEntries.find('entry') if sourceEntries != None:
HandleExcludingOption(entry, sourceEntries, excluding) entry = sourceEntries.find('entry')
HandleExcludingOption(entry, sourceEntries, excluding)
# update refreshScope # update refreshScope
if prj_name: if prj_name:
prj_name = '/' + prj_name prj_name = '/' + prj_name