-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Description
This is a feature(s) request, originally discussed here: How can I factor mbed-os out of my (offline) project?.
Currently, AFAIK, there is no way to use a single copy of a static library from multiple projects. I think it would be quite useful to be able to do this both entirely within mbed-cli
, and also in exported projects (using offline IDEs). I think it would be especially useful to have mbed-os
as a static library or libraries, which are also buildable as an exported static library project(s).
Suppose I have executable ProjectBar
, which links to static library LibFoo
(which could be mbed-os-lib). I'm requesting these features:
- Ability to link to
LibFoo
withinProjectBar
, whileLibFoo
resides outside theProjectBar
sourcetree. (i.e. Link to the already-built library and header files.)mbed-cli compile
links inLibFoo
.- Can use relative and/or absolute paths.
- Ability to export
LibFoo
to offline IDEs as a static library project. - When exporting
ProjectBar
to an offline IDE, maintain references toLibFoo
in the project/linker files. - Ability to "step into"
LibFoo
source when debuggingProjectBar
.
Of course, the last one is lowest priority relative to the others - kind of a "nice to have".
hreichert and j3270