mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(cmakev2/utilities): add __dump_all_properties helper
Dump all properties for build, components, and libraries. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -9,15 +9,6 @@ include($ENV{IDF_PATH}/tools/cmakev2/idf.cmake)
|
|||||||
|
|
||||||
project(cmakev2 C)
|
project(cmakev2 C)
|
||||||
|
|
||||||
# Dump build and component properties
|
|
||||||
function(test_dump_properties)
|
|
||||||
__dump_build_properties()
|
|
||||||
idf_build_get_property(component_names COMPONENTS_DISCOVERED)
|
|
||||||
__dump_component_properties("${component_names}")
|
|
||||||
idf_build_get_property(library_interfaces LIBRARY_INTERFACES)
|
|
||||||
__dump_library_properties("${library_interfaces}")
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# Test component priority
|
# Test component priority
|
||||||
function(test_component_priority)
|
function(test_component_priority)
|
||||||
# Set the idf component to be replaced with a testing component of higher
|
# Set the idf component to be replaced with a testing component of higher
|
||||||
@@ -145,6 +136,6 @@ test_idf_version()
|
|||||||
test_python()
|
test_python()
|
||||||
test_toolchain()
|
test_toolchain()
|
||||||
test_idf_build_library()
|
test_idf_build_library()
|
||||||
test_dump_properties()
|
__dump_all_properties()
|
||||||
|
|
||||||
message("ALL TESTS PASSED")
|
message("ALL TESTS PASSED")
|
||||||
|
|||||||
@@ -360,3 +360,17 @@ function(__get_property)
|
|||||||
|
|
||||||
set(${ARG_OUTPUT} ${value} PARENT_SCOPE)
|
set(${ARG_OUTPUT} ${value} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
#[[
|
||||||
|
__dump_all_properties()
|
||||||
|
|
||||||
|
Dump all properties, including build properties, component properties, and
|
||||||
|
library properties.
|
||||||
|
#]]
|
||||||
|
function(__dump_all_properties)
|
||||||
|
__dump_build_properties()
|
||||||
|
idf_build_get_property(component_names COMPONENTS_DISCOVERED)
|
||||||
|
__dump_component_properties("${component_names}")
|
||||||
|
idf_build_get_property(library_interfaces LIBRARY_INTERFACES)
|
||||||
|
__dump_library_properties("${library_interfaces}")
|
||||||
|
endfunction()
|
||||||
|
|||||||
Reference in New Issue
Block a user