feat(cmakev2): Add source of the component into project_description.json

This commit is contained in:
Daniel Paul
2025-12-10 17:20:42 +08:00
parent f723c276d0
commit 6f53f9a2fc
+2
View File
@@ -641,6 +641,7 @@ function(__get_components_metadata)
idf_component_get_property(priv_reqs ${name} PRIV_REQUIRES)
idf_component_get_property(managed_reqs ${name} MANAGED_REQUIRES)
idf_component_get_property(managed_priv_reqs ${name} MANAGED_PRIV_REQUIRES)
idf_component_get_property(component_source ${name} COMPONENT_SOURCE)
if("${type}" STREQUAL "LIBRARY")
set(file "$<TARGET_LINKER_FILE:${lib}>")
@@ -673,6 +674,7 @@ function(__get_components_metadata)
" \"target\": \"${target}\","
" \"prefix\": \"${prefix}\","
" \"dir\": \"${dir}\","
" \"source\": \"${component_source}\","
" \"type\": \"${type}\","
" \"lib\": \"${lib}\","
" \"reqs\": ${reqs},"