mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +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(priv_reqs ${name} PRIV_REQUIRES)
|
||||||
idf_component_get_property(managed_reqs ${name} MANAGED_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(managed_priv_reqs ${name} MANAGED_PRIV_REQUIRES)
|
||||||
|
idf_component_get_property(component_source ${name} COMPONENT_SOURCE)
|
||||||
if("${type}" STREQUAL "LIBRARY")
|
if("${type}" STREQUAL "LIBRARY")
|
||||||
set(file "$<TARGET_LINKER_FILE:${lib}>")
|
set(file "$<TARGET_LINKER_FILE:${lib}>")
|
||||||
|
|
||||||
@@ -673,6 +674,7 @@ function(__get_components_metadata)
|
|||||||
" \"target\": \"${target}\","
|
" \"target\": \"${target}\","
|
||||||
" \"prefix\": \"${prefix}\","
|
" \"prefix\": \"${prefix}\","
|
||||||
" \"dir\": \"${dir}\","
|
" \"dir\": \"${dir}\","
|
||||||
|
" \"source\": \"${component_source}\","
|
||||||
" \"type\": \"${type}\","
|
" \"type\": \"${type}\","
|
||||||
" \"lib\": \"${lib}\","
|
" \"lib\": \"${lib}\","
|
||||||
" \"reqs\": ${reqs},"
|
" \"reqs\": ${reqs},"
|
||||||
|
|||||||
Reference in New Issue
Block a user