build & config: Add IDF_COMPONENT_MANAGER build property

pull/9068/head
Sergei Silnov 2022-05-25 17:56:59 +02:00
rodzic 64b6733349
commit 487603b51f
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -1179,6 +1179,7 @@ These are properties that describe the build. Values of build properties can be
- EXECUTABLE - project executable; set by call to ``idf_build_executable``
- EXECUTABLE_NAME - name of project executable without extension; set by call to ``idf_build_executable``
- EXECUTABLE_DIR - path containing the output executable
- IDF_COMPONENT_MANAGER - the component manager is enabled by default, but if this property is set to ``0`` it was disabled by the IDF_COMPONENT_MANAGER environment variable
- IDF_PATH - ESP-IDF path; set from IDF_PATH environment variable, if not, inferred from the location of ``idf.cmake``
- IDF_TARGET - target chip for the build; set from the required target argument for ``idf_build_process``
- IDF_VER - ESP-IDF version; set from either a version file or the Git revision of the IDF_PATH repository

Wyświetl plik

@ -138,7 +138,7 @@ function(__build_init idf_path)
idf_build_set_property(__PREFIX idf)
idf_build_set_property(__CHECK_PYTHON 1)
idf_build_set_property(__ENABLE_COMPONENT_MANAGER 0)
idf_build_set_property(IDF_COMPONENT_MANAGER 0)
__build_set_default_build_specifications()
@ -432,8 +432,8 @@ macro(idf_build_process target)
endif()
# Call for component manager to download dependencies for all components
idf_build_get_property(enable_component_manager __ENABLE_COMPONENT_MANAGER)
if(enable_component_manager)
idf_build_get_property(idf_component_manager IDF_COMPONENT_MANAGER)
if(idf_component_manager EQUAL 1)
idf_build_get_property(build_dir BUILD_DIR)
set(managed_components_list_file ${build_dir}/managed_components_list.temp.cmake)
set(local_components_list_file ${build_dir}/local_components_list.temp.yml)

Wyświetl plik

@ -224,9 +224,8 @@ function(__component_get_requirements)
message(FATAL_ERROR "${error}")
endif()
idf_build_get_property(enable_component_manager __ENABLE_COMPONENT_MANAGER)
if(enable_component_manager)
# Call for component manager once again to inject dependencies
idf_build_get_property(idf_component_manager IDF_COMPONENT_MANAGER)
if(idf_component_manager EQUAL 1)
idf_build_get_property(python PYTHON)
execute_process(COMMAND ${python}
"-m"

Wyświetl plik

@ -41,7 +41,7 @@ endif()
# Enable the component manager for regular projects if not explicitly disabled.
if(NOT "$ENV{IDF_COMPONENT_MANAGER}" EQUAL "0")
idf_build_set_property(__ENABLE_COMPONENT_MANAGER 1)
idf_build_set_property(IDF_COMPONENT_MANAGER 1)
endif()
#