Commit Graph

14 Commits (feature-cmake-object-libraries)

Author SHA1 Message Date
Martin Kojtal 04b4ab5bea CMake events: static library
No weak symbols, this can be static library.

This also resolves a problem with object libraries https://gitlab.kitware.com/cmake/cmake/-/issues/18090.
2021-03-15 10:10:44 +00:00
Martin Kojtal b0b242eba0 CMake: remove util function, link object libs regularly 2021-03-15 10:05:55 +00:00
Martin Kojtal f3ad31da05 events: use OBJECT library
User facing targets should be just object libraries
2021-03-15 10:05:53 +00:00
Martin Kojtal ea2715d05e events: remove target, core should get these in 2021-03-15 10:05:50 +00:00
Martin Kojtal ab0be209f0 CMake: provide util function to connect object with interface lib 2021-03-15 10:05:47 +00:00
Martin Kojtal 3d36e28307 CMake: mbed target converted is cached variable 2021-03-15 10:05:46 +00:00
Martin Kojtal f0d67431ff CMake: fix deps on other libraries 2021-03-15 10:05:45 +00:00
Martin Kojtal 0f2b6d676a Events: create interface + obj library 2021-03-15 10:05:44 +00:00
Hugues Kamba 794e32df74 CMake: Use relative paths to list source files and directories
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Martin Kojtal 8529e88e61 cmake: fix present inclusion
We use only _PRESENT macros for components if they are enabled. Use the same in
the mbed.h file or anywhere else.
2020-11-06 17:25:21 +00:00
Hugues Kamba fa98689639 CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.

Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba 8b21238e08 CMake: Fix failure due to events and netsocket dirs changes 2020-11-06 17:25:17 +00:00
Hugues Kamba a63fa605e4 CMake: Add support for events dir 2020-11-06 17:25:15 +00:00