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:
Frantisek Hrbata
2025-11-04 07:48:12 +01:00
parent 7ccaaf908b
commit c657466c78
2 changed files with 15 additions and 10 deletions
+1 -10
View File
@@ -9,15 +9,6 @@ include($ENV{IDF_PATH}/tools/cmakev2/idf.cmake)
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
function(test_component_priority)
# Set the idf component to be replaced with a testing component of higher
@@ -145,6 +136,6 @@ test_idf_version()
test_python()
test_toolchain()
test_idf_build_library()
test_dump_properties()
__dump_all_properties()
message("ALL TESTS PASSED")
+14
View File
@@ -360,3 +360,17 @@ function(__get_property)
set(${ARG_OUTPUT} ${value} PARENT_SCOPE)
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()