mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cmake: set component properties
This commit is contained in:
parent
77bd32a503
commit
87ebdaa74e
@ -510,6 +510,14 @@ endmenu\n" >> ${IDF_PATH}/Kconfig;
|
||||
mv CMakeLists.txt.bak CMakeLists.txt
|
||||
rm -rf CMakeLists.txt.bak
|
||||
|
||||
print_status "Component properties are set"
|
||||
clean_build_dir
|
||||
cp CMakeLists.txt CMakeLists.txt.bak
|
||||
printf "\nidf_component_get_property(srcs main SRCS)\nmessage(STATUS SRCS:\${srcs})" >> CMakeLists.txt
|
||||
(idf.py reconfigure | grep "SRCS:$(realpath main/main.c)") || failure "Component properties should be set"
|
||||
rm -rf CMakeLists.txt
|
||||
mv CMakeLists.txt.bak CMakeLists.txt
|
||||
rm -rf CMakeLists.txt.bak
|
||||
|
||||
print_status "All tests completed"
|
||||
if [ -n "${FAILURES}" ]; then
|
||||
|
@ -479,6 +479,8 @@ function(idf_component_register)
|
||||
# COMPONENT_TARGET is deprecated but is made available with same function
|
||||
# as COMPONENT_LIB for compatibility.
|
||||
set(COMPONENT_TARGET ${component_lib} PARENT_SCOPE)
|
||||
|
||||
__component_set_properties()
|
||||
endfunction()
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user