diff options
| author | 朱天龙 (Armink) <[email protected]> | 2022-06-20 13:45:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-20 13:45:54 +0800 |
| commit | 774efb0c5bceac7ef53b04fca67a2fb8f3b5057e (patch) | |
| tree | 930e5d0c20b2edadd30795a4b962d3732a65e062 /tools/eclipse.py | |
| parent | 8bee7a0c232f5df03e620b41cfc03347c1acfbf1 (diff) | |
[tools][target][eclipse] Update the libs import for eclipse project. (#6065)
Diffstat (limited to 'tools/eclipse.py')
| -rw-r--r-- | tools/eclipse.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 31c1bb914b..ae363aba7f 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -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}) |
