Feature #837
Use other implementation for configuration header
0%
Beschreibung
It is not an monolitic repository.
E.g. installing fosh library to an sysroot and compiling an application without cmake magic should still work.
The same configuration should be used which the library was compiled with.
- The library is included as subdirectory. The library detect that (Not-Top-Level) and use the generated header. Liblepto needed.
- The library is compiled at top level. Full-feature headers are used and installed. No generation.
- Install an whole project to an sysroot? Bad idea? E.g. build an CANIo without submodules.
Why using generated header at all?
Sources allways include <fosh/config.h>; either directly copied or generated.
Problem:
Man entwickelt an libfosh. Dort wird aber immer "fosh/config.h" aus der Sysroot herangezogen. Es muss in den CMake-Files so abgebildet sein,
dass wenn libfosh im projekt vohanden ist, auch immer nur die generierten header verwendet werden.
<fosh/config.h>
<fosh/config_generated.h>
<fosh/config_generated_local.h>
The problem does allways exist when working with an libray which is already installed in sysroot.
Usecases:- The library is included as subdirectory. The library detect that (Not-Top-Level) and use the generated header. Liblepto needed.
- The library is compiled at top level. Full-feature headers are used and installed. No real generation.
- Install an whole project to an sysroot? Bad idea? E.g. build an CANIo without submodules; SDK for platform.
Dateien
Historie
Von Maximilian Seesslen vor 9 Tagen aktualisiert
- Datei config_header.txt config_header.txt wurde hinzugefügt