mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 17:12:01 +08:00
[tools][target][eclipse] Update the libs import for eclipse project. (#6065)
This commit is contained in:
@@ -320,6 +320,12 @@ def HandleToolOption(tools, env, project, reset):
|
||||
# add new libs
|
||||
if 'LIBS' in env:
|
||||
for lib in env['LIBS']:
|
||||
lib_name = os.path.basename(str(lib))
|
||||
if lib_name.endswith('.a'):
|
||||
if lib_name.startswith('lib'):
|
||||
lib = lib_name[3:].split('.')[0]
|
||||
else:
|
||||
lib = ':' + lib_name
|
||||
formatedLib = ConverToRttEclipseLibFormat(lib)
|
||||
SubElement(option, 'listOptionValue', {
|
||||
'builtIn': 'false', 'value': formatedLib})
|
||||
|
||||
Reference in New Issue
Block a user