Merge branch 'feat/examples_minimal_build' into 'master'

switch examples to build just with required components

Closes IDF-11308, IDF-7940, and IDF-11289

See merge request espressif/esp-idf!33825
This commit is contained in:
Roland Dobai
2024-11-25 16:27:29 +08:00
607 changed files with 1110 additions and 133 deletions

View File

@@ -668,6 +668,13 @@ mainmenu "Espressif IoT Development Framework Configuration"
endmenu # Compiler Options
menu "Component config"
comment "!!! MINIMAL_BUILD is enabled !!!"
depends on "${IDF_MINIMAL_BUILD}"
comment "Only common components and those transitively required by the main component are listed"
depends on "${IDF_MINIMAL_BUILD}"
comment "If a component configuration is missing, please add it to the main component's requirements"
depends on "${IDF_MINIMAL_BUILD}"
source "$COMPONENT_KCONFIGS_SOURCE_FILE"
endmenu

View File

@@ -243,7 +243,7 @@ These variables all have default values that can be overridden for custom behavi
- ``EXTRA_COMPONENT_DIRS``: Optional list of additional directories to search for components. Paths can be relative to the project directory, or absolute.
- ``COMPONENTS``: A list of component names to build into the project. Defaults to all components found in the ``COMPONENT_DIRS`` directories. Use this variable to "trim down" the project for faster build times. Note that any component which "requires" another component via the REQUIRES or PRIV_REQUIRES arguments on component registration will automatically have it added to this list, so the ``COMPONENTS`` list can be very short.
- ``COMPONENTS``: A list of component names to build into the project. Defaults to all components found in the ``COMPONENT_DIRS`` directories. Use this variable to "trim down" the project for faster build times. Note that any component which "requires" another component via the REQUIRES or PRIV_REQUIRES arguments on component registration will automatically have it added to this list, so the ``COMPONENTS`` list can be very short. The ``MINIMAL_BUILD`` :ref:`build property <cmake-build-properties>` can be used as an alternative to specifying only the ``main`` component in ``COMPONENTS``.
- ``BOOTLOADER_IGNORE_EXTRA_COMPONENT``: Optional list of components, placed in ``bootloader_components/``, that should be ignored by the bootloader compilation. Use this variable if a bootloader component needs to be included conditionally inside the project.
@@ -618,6 +618,11 @@ Including Components in the Build
- The "common" components that every component depends on.
- Setting ``COMPONENTS`` to the minimal list of required components can significantly reduce compile times.
- The ``MINIMAL_BUILD`` :ref:`build property <cmake-build-properties>` can be set to ``ON``, which acts as a shortcut to configure the ``COMPONENTS`` variable to include only the ``main`` component. If the ``COMPONENTS`` variable is defined while the ``MINIMAL_BUILD`` property is enabled, ``COMPONENTS`` will take precedence.
.. note::
When using the ``COMPONENTS`` variable or the ``MINIMAL_BUILD`` build property to specify components, certain features and configurations, such as those provided by esp_psram or espcoredump components, may not be included by default. To include these features, you must add the relevant components to the ``COMPONENTS`` variable or list them in the ``REQUIRES`` or ``PRIV_REQUIRES`` argument during component registration.
.. _component-circular-dependencies:
@@ -1370,6 +1375,7 @@ These are properties that describe the build. Values of build properties can be
- INCLUDE_DIRECTORIES - include directories for all component source files
- KCONFIGS - list of Kconfig files found in components in build; set by ``idf_build_process``
- KCONFIG_PROJBUILDS - list of Kconfig.projbuild files found in components in build; set by ``idf_build_process``
- MINIMAL_BUILD - perform a minimal build by including only the "common" components required by all other components, along with the components that are direct or transitive dependencies only of the ``main`` component. By default, this property is disabled (set to ``OFF``), but it can be enabled by setting it to ``ON``.
- PROJECT_NAME - name of the project; set from ``idf_build_process`` PROJECT_NAME argument
- PROJECT_DIR - directory of the project; set from ``idf_build_process`` PROJECT_DIR argument
- PROJECT_VER - version of the project; set from ``idf_build_process`` PROJECT_VER argument

View File

@@ -16,6 +16,9 @@ Core dump data is saved to a core dump file according to a particular format, se
Configurations
--------------
.. note::
The ``Core dump`` configuration options are available only if the ``espcoredump`` component is included in the build.
Destination
^^^^^^^^^^^

View File

@@ -46,6 +46,9 @@ For specific details about connecting the SoC or module pins to an external PSRA
Configuring External RAM
========================
.. note::
The ``SPI RAM`` configuration options are available only if the ``esp_psram`` component is included in the build.
ESP-IDF fully supports the use of external RAM in applications. Once the external RAM is initialized at startup, ESP-IDF can be configured to integrate the external RAM in several ways:
.. list::

View File

@@ -243,7 +243,7 @@ ESP-IDF 适用于 Python 3.9 以上版本。
- ``EXTRA_COMPONENT_DIRS``:用于搜索组件的其它可选目录列表。路径可以是相对于项目目录的相对路径,也可以是绝对路径。
- ``COMPONENTS``:要构建项目中的组件名称列表,默认为 ``COMPONENT_DIRS`` 目录下检索到的所有组件。使用此变量可以“精简”项目缩短构建时间。请注意,如果一个组件通过 ``COMPONENT_REQUIRES`` 指定了它依赖的另一个组件,则会自动将其添加到 ``COMPONENTS`` 中,所以 ``COMPONENTS`` 列表可能会非常短。
- ``COMPONENTS``用于指定要构建项目中的组件名称列表,默认为 ``COMPONENT_DIRS`` 目录下检索到的所有组件。使用此变量可以“精简”项目,从而缩短构建时间。请注意,如果一个组件通过 ``COMPONENT_REQUIRES`` 指定了它依赖的另一个组件,则会自动将其添加到 ``COMPONENTS`` 中,所以 ``COMPONENTS`` 列表可能会非常短。另外,还可以通过设置 ``MINIMAL_BUILD`` :ref:`构建属性 <cmake-build-properties>` 来指定 ``COMPONENTS`` 中的 ``main`` 组件。
- ``BOOTLOADER_IGNORE_EXTRA_COMPONENT``:可选组件列表,位于 ``bootloader_components/`` 目录中,引导加载程序编译时会忽略该列表中的组件。使用这一变量可以将一个组件有条件地包含在项目中。
@@ -618,6 +618,11 @@ Spark Plug 组件
* 每个组件都依赖的通用组件。
-``COMPONENTS`` 设置为所需组件的最小列表,可以显著减少项目的构建时间。
- 可以将 ``MINIMAL_BUILD`` :ref:`构建属性 <cmake-build-properties>` 设为 ``ON``,从而快捷配置 ``COMPONENTS`` 变量,使其仅包含 ``main`` 组件。如果在启用 ``MINIMAL_BUILD`` 属性的同时定义了 ``COMPONENTS`` 变量,则 ``COMPONENTS`` 会优先生效。
.. note::
使用 ``COMPONENTS`` 变量或 ``MINIMAL_BUILD`` 构建属性指定组件时,一些功能和配置(如 esp_psram 或 espcoredump 组件提供的功能和配置)可能不会被默认包含。如需使用这些功能,须将相关组件添加到 ``COMPONENTS`` 变量中,或在组件注册时将其列入 ``REQUIRES````PRIV_REQUIRES`` 参数。
.. _component-circular-dependencies:
@@ -1370,6 +1375,7 @@ ESP-IDF 构建属性
- INCLUDE_DIRECTORIES - 包含所有组件源文件的目录。
- KCONFIGS - 构建过程中组件里的 Kconfig 文件的列表;由 ``idf_build_process`` 设置。
- KCONFIG_PROJBUILDS - 构建过程中组件中的 Kconfig.projbuild 文件的列表;由 ``idf_build_process`` 设置。
- MINIMAL_BUILD - 仅包含所有其他组件所需的“通用”组件,以及仅与 ``main`` 组件有直接或传递依赖关系的组件,从而进行最小化构建。默认情况下该属性处于禁用状态(设置为 ``OFF``),如需启用,可将其设置为 ``ON``
- PROJECT_NAME - 项目名称;由 ``idf_build_process`` 的 PROJECT_NAME 参数设置。
- PROJECT_DIR - 项目的目录;由 ``idf_build_process`` 的 PROJECT_DIR 参数设置。
- PROJECT_VER - 项目的版本;由 ``idf_build_process`` 的 PROJECT_VER 参数设置。

View File

@@ -16,6 +16,9 @@
配置
--------------
.. note::
只有在构建中包含 ``espcoredump`` 组件时,``Core dump`` 配置选项才可用。
目标
^^^^^^^^^^^

View File

@@ -46,6 +46,9 @@
配置片外 RAM
========================
.. note::
只有在构建中包含 ``esp_psram`` 组件时,``SPI RAM`` 配置选项才可用。
ESP-IDF 完全支持将片外 RAM 集成到你的应用程序中。在启动并完成片外 RAM 初始化后,可以将 ESP-IDF 配置为用多种方式处理片外 RAM
.. list::

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(nimble_beacon)

View File

@@ -1,4 +1,5 @@
file(GLOB_RECURSE srcs "main.c" "src/*.c")
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS "./include")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(nimble_connection)

View File

@@ -1,4 +1,5 @@
file(GLOB_RECURSE srcs "main.c" "src/*.c")
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio
INCLUDE_DIRS "./include")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(nimble_gatt_server)

View File

@@ -1,4 +1,5 @@
file(GLOB_RECURSE srcs "main.c" "src/*.c")
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio
INCLUDE_DIRS "./include")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(nimble_security)

View File

@@ -1,4 +1,5 @@
file(GLOB_RECURSE srcs "main.c" "src/*.c")
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio
INCLUDE_DIRS "./include")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_ancs)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "ble_ancs_demo.c" "ble_ancs.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_compatibility_test)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "ble_compatibility_test.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_eddystone_demo)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "esp_eddystone_api.c"
"esp_eddystone_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS "")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(hidd_demos)

View File

@@ -2,6 +2,7 @@ idf_component_register(SRCS "ble_hidd_demo_main.c"
"esp_hidd_prf_api.c"
"hid_dev.c"
"hid_device_le_prf.c"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio
INCLUDE_DIRS ".")
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_ibeacon_demo)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "esp_ibeacon_api.c"
"ibeacon_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(spp_client_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "spp_client_demo.c"
PRIV_REQUIRES bt esp_driver_uart nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_spp_server_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "ble_spp_server_demo.c"
PRIV_REQUIRES bt nvs_flash esp_driver_uart
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(throughput_client_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "example_ble_client_throughput.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(throughput_server_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "example_ble_server_throughput.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gatt_client_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "gattc_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(sec_gattc_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "example_ble_sec_gattc_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(sec_gatts_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "example_ble_sec_gatts_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gatt_server_demos)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "gatts_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gatt_server_service_table_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "gatts_table_creat_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gatt_multi_connect)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "gattc_multi_connect.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble50_sec_gattc_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "ble50_sec_gattc_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble50_sec_gatts_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "ble50_sec_gatts_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(multi_adv_demos)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "multi_adv_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(periodic_adv_demos)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "periodic_adv_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(periodic_sync_demos)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "periodic_sync_demo.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(host_hci_uart)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "main.c"
"uart_driver.c"
PRIV_REQUIRES bt nvs_flash esp_driver_uart
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(a2dp_sink)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(a2dp_source)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "bt_app_core.c"
"main.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_discovery)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "main.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -4,4 +4,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_hid_mouse_device)

View File

@@ -4,4 +4,5 @@
#register_component()
idf_component_register(SRCS "main.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_l2cap_client)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "main.c"
"bt_app_core.c"
PRIV_REQUIRES bt nvs_flash esp_ringbuf vfs
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_l2cap_server)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "main.c"
"bt_app_core.c"
PRIV_REQUIRES bt nvs_flash esp_ringbuf vfs
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_spp_acceptor_demo)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "main.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_spp_initiator_demo)

View File

@@ -2,4 +2,5 @@ idf_component_register(SRCS "main.c"
SRCS "app_spp_msg_prs.c"
SRCS "app_spp_msg_set.c"
SRCS "console_uart.c"
PRIV_REQUIRES bt nvs_flash esp_driver_uart
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_spp_vfs_acceptor_demo)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "main.c"
"spp_task.c"
PRIV_REQUIRES bt nvs_flash vfs
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_spp_vfs_initiator_demo)

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "main.c"
"spp_task.c"
PRIV_REQUIRES bt nvs_flash vfs
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(hfp_ag)

View File

@@ -3,4 +3,5 @@ idf_component_register(SRCS "app_hf_msg_set.c"
"bt_app_hf.c"
"gpio_pcm_config.c"
"main.c"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio console esp_ringbuf
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(hfp_hf)

View File

@@ -3,4 +3,5 @@ idf_component_register(SRCS "app_hf_msg_set.c"
"bt_app_hf.c"
"gpio_pcm_config.c"
"main.c"
PRIV_REQUIRES bt nvs_flash esp_driver_gpio console esp_ringbuf
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(bt_ble_coex)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(gattc_gatts_coex)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "gattc_gatts_coex.c"
PRIV_REQUIRES bt nvs_flash
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(blufi_demo)

View File

@@ -1,4 +1,5 @@
idf_component_register(SRCS "blufi_example_main.c"
"blufi_security.c"
"blufi_init.c"
PRIV_REQUIRES bt nvs_flash mbedtls
INCLUDE_DIRS ".")

View File

@@ -3,5 +3,7 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(aligenie_demo)

View File

@@ -1,7 +1,4 @@
set(COMPONENT_SRCS "board.c"
"aligenie_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ". include")
register_component()
idf_component_register(SRCS "board.c"
"aligenie_demo.c"
PRIV_REQUIRES vendor_model esp_driver_gpio mbedtls
INCLUDE_DIRS "." "include")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_client)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_server)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(fast_prov_client)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(fast_prov_server)

View File

@@ -2,4 +2,5 @@ set(srcs "main.c"
"board.c")
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES esp_psram nvs_flash esp_driver_gpio
INCLUDE_DIRS ".")

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_client)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_server)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(provisioner)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(ble_mesh_provisioner)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_server)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(onoff_server)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(sensor_client)

View File

@@ -3,4 +3,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(sensor_server)

Some files were not shown because too many files have changed in this diff Show More