mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(cmakev2): Add source of the component into project_description.json
This commit is contained in:
@@ -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},"
|
||||
|
||||
Reference in New Issue
Block a user