mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3531 from bittailor/fix-include-paths-for-eclipse-export
Correctly format include paths for eclipse exportpull/3550/head
commit
613b92af04
|
@ -1,3 +1,5 @@
|
|||
import re
|
||||
|
||||
from os.path import join, exists, realpath, relpath, basename
|
||||
from os import makedirs
|
||||
|
||||
|
@ -12,13 +14,14 @@ class Eclipse(Makefile):
|
|||
py_ocd_settings launch file, and software link .p2f file
|
||||
"""
|
||||
super(Eclipse, self).generate()
|
||||
starting_dot = re.compile(r'(^[.]/|^[.]$)')
|
||||
ctx = {
|
||||
'name': self.project_name,
|
||||
'elf_location': join('BUILD',self.project_name)+'.elf',
|
||||
'c_symbols': self.toolchain.get_symbols(),
|
||||
'asm_symbols': self.toolchain.get_symbols(True),
|
||||
'target': self.target,
|
||||
'include_paths': self.resources.inc_dirs,
|
||||
'include_paths': [starting_dot.sub('%s/' % self.project_name, inc) for inc in self.resources.inc_dirs],
|
||||
'load_exe': str(self.LOAD_EXE).lower()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue