docs: Update translation for build-system.rst

This commit is contained in:
Zhang Shuxian
2025-10-13 11:36:38 +02:00
committed by Frantisek Hrbata
parent 86352f9d1f
commit 821ce86a09
2 changed files with 16 additions and 4 deletions
@@ -3,7 +3,9 @@ Build System
:link_to_translation:`zh_CN:[中文]`
Examples built with the MINIMAL_BUILD build property enabled
------------------------------------------------------------
Examples Built with MINIMAL_BUILD Property Enabled
--------------------------------------------------
Most of the examples in ESP-IDF are now being built with the ``MINIMAL_BUILD`` property enabled in their project ``CMakeLists.txt`` by using ``idf_build_set_property(MINIMAL_BUILD ON)``. This change has reduced the build time for the examples because only the ``main`` component and its transitive dependencies are included in the build. As a side effect, only the configuration for these components will be available in menuconfig, which is also noted in the ``Components config`` menu. With ``MINIMAL_BUILD`` enabled, a component needs to be added to the build as a ``main`` component dependency or as its transitive dependency to become visible in menuconfig and be compiled. For more information, please see :ref:`Including Components in the Build <including-components-in-the-build>`
Most of the examples in ESP-IDF are now being built with the ``MINIMAL_BUILD`` property enabled in their project ``CMakeLists.txt`` by using ``idf_build_set_property(MINIMAL_BUILD ON)``. This reduces the build time by including only the ``main`` component and its transitive dependencies.
As a side effect, only these components appear in menuconfig, as noted in the ``Components config`` menu. With ``MINIMAL_BUILD`` enabled, to make other components visible and compiled, add them as dependencies of the ``main`` component dependency or as its transitive dependencies. For more information, please see :ref:`Including Components in the Build <including-components-in-the-build>`.