Projekt

Allgemein

Profil

Feature #837

Use other implementation for configuration header

Von Maximilian Seesslen vor etwa 2 Monaten hinzugefügt. Vor 9 Tagen aktualisiert.

Status:
Neu
Priorität:
Normal
Zugewiesen an:
Zielversion:
Beginn:
16.09.2026
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
CS Zielversion:

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.

Usecases II:
  • 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

config_header.txt (5,39 KB) config_header.txt Maximilian Seesslen, 22.10.2026 15:02

Historie

#1

Von Maximilian Seesslen vor 13 Tagen aktualisiert

  • Beschreibung aktualisiert (diff)
#2

Von Maximilian Seesslen vor 13 Tagen aktualisiert

  • Beschreibung aktualisiert (diff)
#3

Von Maximilian Seesslen vor 13 Tagen aktualisiert

  • Beschreibung aktualisiert (diff)
#4

Von Maximilian Seesslen vor 13 Tagen aktualisiert

  • Beschreibung aktualisiert (diff)
#5

Von Maximilian Seesslen vor 10 Tagen aktualisiert

  • Beschreibung aktualisiert (diff)
#6

Von Maximilian Seesslen vor 9 Tagen aktualisiert

Auch abrufbar als: Atom PDF