Hi,
I have the following problem with library dependency management: One if my libraries has the following:
- It calls project-specific functions (i.e., implementation depends on actual hardware at hand)
- It uses project-specific defines (e.g., number of outputs present on hardware at hand)
I can solve 1) by declaring the respective functions extern <...> __attribute__((weak))
, however 2) I could not solve.
I tried making the header file where the project-specific defines reside visible to the library by adding the respective path as an additional include-path to the build/flags-section of the library.json file.
However, either ${PROJECT_DIR}
wasn’t resolved at all or preceeded with the build-directory of the library when building it.
I tried many different ways, this was one of it, they all failed.
{
"name": "abc",
"version": "0.0.1",
"description": "",
"build": {
"flags": [
"-I${PROJECT_DIR}"
]
}
}
Does anyone know a solution to this? Am I trying to do sth stupid/unreasonable? Many thanks in advance.