How to specify a global include directory for all components?
Posted: Thu May 04, 2023 1:54 pm
My intention is to keep all product-specific configuration header files in a single directory, for example, in the 'main/include' directory. I have several reusable (not product-specific) components that need to access these header files. I did not find any hint in the documentation about how to specify a global include directory for the project. Apparently, 'main/include' is not included in the component. Adding 'main' to the REQUIRES section seems to be not the correct way. Creating a Kconfig.projbuild may do the trick, but it is a lot of work for all parameters, and actually these config parameters are fixed for a product, not editable.
I had the same problem with some ESP-IDF libraries, like NimBLE and TinyUSB. I wanted to specify my own settings, but could not figure out how to do it without editing the component files.
I'd appreciate any help.
Thanks,
Zoltan
I had the same problem with some ESP-IDF libraries, like NimBLE and TinyUSB. I wanted to specify my own settings, but could not figure out how to do it without editing the component files.
I'd appreciate any help.
Thanks,
Zoltan