mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
In cmakev1, certain arguments provided to the idf_component_register function are stored as component properties. These properties are used to generate the project_description.json file, which other tools rely on. Since the idf_component_register function is obsolete in cmakev2, we need to recreate component properties such as INCLUDE_DIRS, PRIV_INCLUDE_DIRS, REQUIRES, and PRIV_REQUIRES, which were previously provided by the idf_component_register function in cmakev1. To achieve this, let's examine the component's real target cmake properties and reconstruct them to maintain compatibility with cmakev1. The real target cmake properties may include generator expressions, which are ignored. This should be acceptable, as they were not addressed in cmakev1 either, and handling them is likely not feasible. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>