Skip to content

Commit 821ce86

Browse files
0cicifhrbata
authored andcommitted
docs: Update translation for build-system.rst
1 parent 86352f9 commit 821ce86

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

docs/en/migration-guides/release-5.x/5.5/build-system.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Build System
33

44
:link_to_translation:`zh_CN:[中文]`
55

6-
Examples built with the MINIMAL_BUILD build property enabled
7-
------------------------------------------------------------
6+
Examples Built with MINIMAL_BUILD Property Enabled
7+
--------------------------------------------------
88

9-
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>`
9+
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.
10+
11+
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>`.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
.. include:: ../../../../en/migration-guides/release-5.x/5.5/build-system.rst
1+
构建系统
2+
========
3+
4+
:link_to_translation:`en:[English]`
5+
6+
启用 MINIMAL_BUILD 属性的示例
7+
------------------------------------
8+
9+
目前 ESP-IDF 中的大多数示例均已在其项目的 ``CMakeLists.txt`` 中通过 ``idf_build_set_property(MINIMAL_BUILD ON)`` 启用 ``MINIMAL_BUILD`` 属性。通过仅将 ``main`` 组件及其传递依赖项包含在构建中,缩短了示例的构建时间。
10+
11+
带来的影响是:如 ``Components config`` 菜单中所述,只有这些组件会出现在 menuconfig 中。启用 ``MINIMAL_BUILD`` 后,若要使其他组件在 menuconfig 中可见并参与编译,需将其添加为 ``main`` 组件的依赖项或传递依赖项。更多信息请参阅 :ref:`在构建中导入组件 <including-components-in-the-build>`。

0 commit comments

Comments
 (0)