diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/CMakeLists.txt b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/CMakeLists.txt index 5841113299..e60bfdacb5 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/CMakeLists.txt +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/CMakeLists.txt @@ -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") diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/CMakeLists.txt b/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/CMakeLists.txt index 5841113299..7b976bfc0b 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/CMakeLists.txt +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/CMakeLists.txt @@ -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") diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/CMakeLists.txt b/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/CMakeLists.txt index 5841113299..7b976bfc0b 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/CMakeLists.txt +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/CMakeLists.txt @@ -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") diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/CMakeLists.txt b/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/CMakeLists.txt index 5841113299..7b976bfc0b 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/CMakeLists.txt +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/CMakeLists.txt @@ -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") diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt index 18d14d5b56..5e39412c26 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble_ancs_demo.c" "ble_ancs.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt index 1989ce57b3..cab6954623 100644 --- a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble_compatibility_test.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt index 8290fc6305..e340ff58ea 100644 --- a/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "esp_eddystone_api.c" "esp_eddystone_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS "") diff --git a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/CMakeLists.txt index 1c12b152ca..656831d36e 100644 --- a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/CMakeLists.txt index ce4d00817e..976d040096 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "esp_ibeacon_api.c" "ibeacon_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt index 5fa00fb626..6ef33d3b2e 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "spp_client_demo.c" + PRIV_REQUIRES bt esp_driver_uart nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_spp_server/main/CMakeLists.txt index a4b8961bf1..f9a9453618 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_spp_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble_spp_server_demo.c" + PRIV_REQUIRES bt nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt index 4695587a07..e81449e533 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_client_throughput.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt index 419488adc3..594a36dc21 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_server_throughput.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gatt_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_client/main/CMakeLists.txt index e3ddd8400d..18c07376e5 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gattc_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt index 9101064d3d..7e42914e20 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_sec_gattc_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt index f890f38d40..156bf589bb 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_sec_gatts_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt index 379d4659ab..bceaff6a3b 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gatts_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/CMakeLists.txt index c0a6838afc..c1ec9d4092 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gatts_table_creat_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/CMakeLists.txt index 5dc7d966cd..bd1c0d4c29 100644 --- a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gattc_multi_connect.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt index ac38069c88..db0bd3087a 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble50_sec_gattc_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt index 940c38d0b3..55b5073095 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble50_sec_gatts_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble_50/multi-adv/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/multi-adv/main/CMakeLists.txt index 23bc528757..8db33caa91 100644 --- a/examples/bluetooth/bluedroid/ble_50/multi-adv/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/multi-adv/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "multi_adv_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble_50/periodic_adv/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/periodic_adv/main/CMakeLists.txt index cece0ca017..2098929c83 100644 --- a/examples/bluetooth/bluedroid/ble_50/periodic_adv/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/periodic_adv/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "periodic_adv_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/ble_50/periodic_sync/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/periodic_sync/main/CMakeLists.txt index e5dabac7d6..6f7f6926e1 100644 --- a/examples/bluetooth/bluedroid/ble_50/periodic_sync/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/periodic_sync/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "periodic_sync_demo.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/bluedroid_host_only/bluedroid_host_only_uart/main/CMakeLists.txt b/examples/bluetooth/bluedroid/bluedroid_host_only/bluedroid_host_only_uart/main/CMakeLists.txt index 7661c7c45e..23a03768b8 100644 --- a/examples/bluetooth/bluedroid/bluedroid_host_only/bluedroid_host_only_uart/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/bluedroid_host_only/bluedroid_host_only_uart/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "uart_driver.c" + PRIV_REQUIRES bt nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt index 9ec92bc110..a8e89b3d82 100644 --- a/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "bt_app_core.c" "main.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt index cf2c455cb5..f677a03338 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt index 5d47675980..2d220b14b1 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt @@ -4,4 +4,5 @@ #register_component() idf_component_register(SRCS "main.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt index e2d9e2f26b..f7c8dfd4a2 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "bt_app_core.c" + PRIV_REQUIRES bt nvs_flash esp_ringbuf vfs INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt index e2d9e2f26b..f7c8dfd4a2 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "bt_app_core.c" + PRIV_REQUIRES bt nvs_flash esp_ringbuf vfs INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt index cf2c455cb5..f677a03338 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt index a9c07d5c0c..deb45fb0df 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt @@ -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 ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt index 89b4347dcd..cfbb75e592 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "spp_task.c" + PRIV_REQUIRES bt nvs_flash vfs INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt index 89b4347dcd..cfbb75e592 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "spp_task.c" + PRIV_REQUIRES bt nvs_flash vfs INCLUDE_DIRS ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt index ef91821c37..728e74c352 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt @@ -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 ".") diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt index ef91821c37..728e74c352 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt @@ -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 ".") diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt index 912d96da7b..08dc19ff06 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gattc_gatts_coex.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/blufi/main/CMakeLists.txt b/examples/bluetooth/blufi/main/CMakeLists.txt index a8b056e73a..f2e8202696 100644 --- a/examples/bluetooth/blufi/main/CMakeLists.txt +++ b/examples/bluetooth/blufi/main/CMakeLists.txt @@ -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 ".") diff --git a/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt index 8cf3cefba1..ab00a5b3c8 100644 --- a/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt @@ -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") diff --git a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/CMakeLists.txt index 98d0fc613c..4ea0ac0160 100644 --- a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/CMakeLists.txt @@ -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 ".") diff --git a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/CMakeLists.txt index 442dfcb3aa..648ae7a138 100644 --- a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/CMakeLists.txt @@ -3,4 +3,5 @@ set(srcs "main.c" "cmd_wifi.c") idf_component_register(SRCS "${srcs}" + PRIV_REQUIRES nvs_flash console esp_driver_gpio esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/bluetooth/hci/ble_adv_scan_combined/main/CMakeLists.txt b/examples/bluetooth/hci/ble_adv_scan_combined/main/CMakeLists.txt index b5fc77a0d2..a0ac0d698d 100644 --- a/examples/bluetooth/hci/ble_adv_scan_combined/main/CMakeLists.txt +++ b/examples/bluetooth/hci/ble_adv_scan_combined/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_bt.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/hci/controller_hci_uart_esp32/main/CMakeLists.txt b/examples/bluetooth/hci/controller_hci_uart_esp32/main/CMakeLists.txt index a9c05c1e1c..3fc8b712b2 100644 --- a/examples/bluetooth/hci/controller_hci_uart_esp32/main/CMakeLists.txt +++ b/examples/bluetooth/hci/controller_hci_uart_esp32/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "controller_hci_uart_demo.c" + PRIV_REQUIRES bt nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/CMakeLists.txt b/examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/CMakeLists.txt index 8a3ab69279..ac5aa2d71c 100644 --- a/examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/CMakeLists.txt +++ b/examples/bluetooth/hci/controller_hci_uart_esp32c3_and_esp32s3/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES bt nvs_flash esp_driver_uart esp_driver_gpio INCLUDE_DIRS "") diff --git a/examples/bluetooth/hci/controller_vhci_ble_adv/main/CMakeLists.txt b/examples/bluetooth/hci/controller_vhci_ble_adv/main/CMakeLists.txt index b5fc77a0d2..a0ac0d698d 100644 --- a/examples/bluetooth/hci/controller_vhci_ble_adv/main/CMakeLists.txt +++ b/examples/bluetooth/hci/controller_vhci_ble_adv/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_bt.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/ble_htp/htp_prph/main/CMakeLists.txt b/examples/bluetooth/nimble/ble_htp/htp_prph/main/CMakeLists.txt index e8a76d0b09..5c01dee04f 100644 --- a/examples/bluetooth/nimble/ble_htp/htp_prph/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/ble_htp/htp_prph/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "gatt_svr.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/ble_proximity_sensor/proximity_sensor_prph/main/CMakeLists.txt b/examples/bluetooth/nimble/ble_proximity_sensor/proximity_sensor_prph/main/CMakeLists.txt index cf2c455cb5..f677a03338 100644 --- a/examples/bluetooth/nimble/ble_proximity_sensor/proximity_sensor_prph/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/ble_proximity_sensor/proximity_sensor_prph/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/blecsc/main/CMakeLists.txt b/examples/bluetooth/nimble/blecsc/main/CMakeLists.txt index 9e539a9fc0..46ed7b9608 100644 --- a/examples/bluetooth/nimble/blecsc/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/blecsc/main/CMakeLists.txt @@ -2,4 +2,5 @@ set(srcs "main.c" "gatt_svr.c") idf_component_register(SRCS "${srcs}" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/blehr/main/CMakeLists.txt b/examples/bluetooth/nimble/blehr/main/CMakeLists.txt index e8a76d0b09..5c01dee04f 100644 --- a/examples/bluetooth/nimble/blehr/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/blehr/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "gatt_svr.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt b/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt index 99da938f3b..120c9f43e6 100644 --- a/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_mesh.c" + PRIV_REQUIRES bt nvs_flash mbedtls INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt b/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt index e8a76d0b09..5c01dee04f 100644 --- a/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "gatt_svr.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/hci/main/CMakeLists.txt b/examples/bluetooth/nimble/hci/main/CMakeLists.txt index 023dd5e462..e931f527f8 100644 --- a/examples/bluetooth/nimble/hci/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/hci/main/CMakeLists.txt @@ -1,4 +1,5 @@ set(srcs "main.c") idf_component_register(SRCS "${srcs}" + PRIV_REQUIRES bt nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/CMakeLists.txt b/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/CMakeLists.txt index 7488f906a1..714a3c885d 100644 --- a/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "misc.c" "peer.c" "scli.c" + PRIV_REQUIRES bt nvs_flash console esp_driver_uart cmd_system INCLUDE_DIRS ".") diff --git a/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/CMakeLists.txt b/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/CMakeLists.txt index e8a76d0b09..5c01dee04f 100644 --- a/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "gatt_svr.c" + PRIV_REQUIRES bt nvs_flash INCLUDE_DIRS ".") diff --git a/examples/ethernet/basic/main/CMakeLists.txt b/examples/ethernet/basic/main/CMakeLists.txt index ff186a4a5b..098c570025 100644 --- a/examples/ethernet/basic/main/CMakeLists.txt +++ b/examples/ethernet/basic/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ethernet_example_main.c" + PRIV_REQUIRES esp_netif esp_eth ethernet_init INCLUDE_DIRS ".") diff --git a/examples/ethernet/iperf/main/CMakeLists.txt b/examples/ethernet/iperf/main/CMakeLists.txt index a5933f6aa1..2f10effdf3 100644 --- a/examples/ethernet/iperf/main/CMakeLists.txt +++ b/examples/ethernet/iperf/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "cmd_ethernet.c" "ethernet_iperf_main.c" + PRIV_REQUIRES fatfs esp_netif esp_eth INCLUDE_DIRS ".") diff --git a/examples/get-started/hello_world/main/CMakeLists.txt b/examples/get-started/hello_world/main/CMakeLists.txt index d1acf9e518..28ab405bd6 100644 --- a/examples/get-started/hello_world/main/CMakeLists.txt +++ b/examples/get-started/hello_world/main/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRCS "hello_world_main.c" - PRIV_REQUIRES spi_flash - INCLUDE_DIRS "") + PRIV_REQUIRES spi_flash + INCLUDE_DIRS "") diff --git a/examples/mesh/internal_communication/main/CMakeLists.txt b/examples/mesh/internal_communication/main/CMakeLists.txt index 686ab05acf..0c946d55ea 100644 --- a/examples/mesh/internal_communication/main/CMakeLists.txt +++ b/examples/mesh/internal_communication/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "mesh_light.c" "mesh_main.c" + PRIV_REQUIRES esp_wifi esp_driver_gpio esp_driver_ledc nvs_flash INCLUDE_DIRS "." "include") diff --git a/examples/mesh/ip_internal_network/main/CMakeLists.txt b/examples/mesh/ip_internal_network/main/CMakeLists.txt index 06403090a4..2177ed3999 100644 --- a/examples/mesh/ip_internal_network/main/CMakeLists.txt +++ b/examples/mesh/ip_internal_network/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "mesh_main.c" "mesh_netif.c" "mqtt_app.c" + PRIV_REQUIRES esp_wifi esp-tls nvs_flash mqtt esp_driver_gpio INCLUDE_DIRS "." "include") diff --git a/examples/mesh/manual_networking/main/CMakeLists.txt b/examples/mesh/manual_networking/main/CMakeLists.txt index 686ab05acf..81fc4105b5 100644 --- a/examples/mesh/manual_networking/main/CMakeLists.txt +++ b/examples/mesh/manual_networking/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "mesh_light.c" "mesh_main.c" + PRIV_REQUIRES esp_wifi esp_driver_gpio nvs_flash esp_driver_ledc INCLUDE_DIRS "." "include") diff --git a/examples/network/bridge/main/CMakeLists.txt b/examples/network/bridge/main/CMakeLists.txt index a86e4dbacc..35ac7b4010 100644 --- a/examples/network/bridge/main/CMakeLists.txt +++ b/examples/network/bridge/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "bridge_example_main.c" "bridge_console_cmd.c" + PRIV_REQUIRES esp_eth console esp_netif esp_wifi INCLUDE_DIRS ".") diff --git a/examples/network/eth2ap/main/CMakeLists.txt b/examples/network/eth2ap/main/CMakeLists.txt index ff186a4a5b..f3dbfb227e 100644 --- a/examples/network/eth2ap/main/CMakeLists.txt +++ b/examples/network/eth2ap/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ethernet_example_main.c" + PRIV_REQUIRES esp_wifi esp_eth nvs_flash INCLUDE_DIRS ".") diff --git a/examples/network/simple_sniffer/main/CMakeLists.txt b/examples/network/simple_sniffer/main/CMakeLists.txt index 5d4205471d..ad9166bc60 100644 --- a/examples/network/simple_sniffer/main/CMakeLists.txt +++ b/examples/network/simple_sniffer/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "simple_sniffer_example_main.c" "cmd_sniffer.c" "cmd_pcap.c" + PRIV_REQUIRES console esp_wifi fatfs esp_eth app_trace nvs_flash INCLUDE_DIRS ".") diff --git a/examples/network/sta2eth/main/CMakeLists.txt b/examples/network/sta2eth/main/CMakeLists.txt index 8ed65161d4..339a891b99 100644 --- a/examples/network/sta2eth/main/CMakeLists.txt +++ b/examples/network/sta2eth/main/CMakeLists.txt @@ -13,4 +13,6 @@ endif() idf_component_register(SRCS sta2eth_main.c ${wired_iface} ${config_method} + PRIV_REQUIRES esp_wifi esp_timer esp_eth esp_http_server + nvs_flash esp_driver_gpio wifi_provisioning INCLUDE_DIRS "") diff --git a/examples/network/vlan_support/main/CMakeLists.txt b/examples/network/vlan_support/main/CMakeLists.txt index ab2281f9d9..51c3b1ba41 100644 --- a/examples/network/vlan_support/main/CMakeLists.txt +++ b/examples/network/vlan_support/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "vlan_support_main.c" "eth_vlan_utils.c" + PRIV_REQUIRES esp_netif esp_eth lwip INCLUDE_DIRS ".") diff --git a/examples/openthread/ot_br/main/CMakeLists.txt b/examples/openthread/ot_br/main/CMakeLists.txt index 83b4e7608e..2d15e4a4f9 100644 --- a/examples/openthread/ot_br/main/CMakeLists.txt +++ b/examples/openthread/ot_br/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "esp_ot_br.c" + PRIV_REQUIRES esp_psram openthread esp_coex esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/openthread/ot_rcp/main/CMakeLists.txt b/examples/openthread/ot_rcp/main/CMakeLists.txt index 83b084e909..0261895e05 100644 --- a/examples/openthread/ot_rcp/main/CMakeLists.txt +++ b/examples/openthread/ot_rcp/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "esp_ot_rcp.c" + PRIV_REQUIRES esp_event nvs_flash openthread INCLUDE_DIRS ".") diff --git a/examples/openthread/ot_sleepy_device/deep_sleep/main/CMakeLists.txt b/examples/openthread/ot_sleepy_device/deep_sleep/main/CMakeLists.txt index a7cde9d16a..e205eff4b8 100644 --- a/examples/openthread/ot_sleepy_device/deep_sleep/main/CMakeLists.txt +++ b/examples/openthread/ot_sleepy_device/deep_sleep/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "esp_ot_sleepy_device.c" + PRIV_REQUIRES esp_event esp_timer openthread nvs_flash ulp INCLUDE_DIRS ".") diff --git a/examples/openthread/ot_sleepy_device/light_sleep/main/CMakeLists.txt b/examples/openthread/ot_sleepy_device/light_sleep/main/CMakeLists.txt index a7cde9d16a..bc690befe7 100644 --- a/examples/openthread/ot_sleepy_device/light_sleep/main/CMakeLists.txt +++ b/examples/openthread/ot_sleepy_device/light_sleep/main/CMakeLists.txt @@ -1,2 +1,7 @@ idf_component_register(SRCS "esp_ot_sleepy_device.c" + PRIV_REQUIRES esp_event openthread nvs_flash INCLUDE_DIRS ".") + +if(CONFIG_ESP_SLEEP_DEBUG) + idf_component_optional_requires(PRIVATE esp_timer) +endif() diff --git a/examples/peripherals/adc/continuous_read/main/CMakeLists.txt b/examples/peripherals/adc/continuous_read/main/CMakeLists.txt index 902872a063..68c3de7f62 100644 --- a/examples/peripherals/adc/continuous_read/main/CMakeLists.txt +++ b/examples/peripherals/adc/continuous_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "continuous_read_main.c" + PRIV_REQUIRES esp_adc INCLUDE_DIRS ".") diff --git a/examples/peripherals/adc/oneshot_read/main/CMakeLists.txt b/examples/peripherals/adc/oneshot_read/main/CMakeLists.txt index 6d708b2e3e..4dbef6a838 100644 --- a/examples/peripherals/adc/oneshot_read/main/CMakeLists.txt +++ b/examples/peripherals/adc/oneshot_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "oneshot_read_main.c" + PRIV_REQUIRES esp_adc INCLUDE_DIRS ".") diff --git a/examples/peripherals/dedicated_gpio/soft_spi/main/CMakeLists.txt b/examples/peripherals/dedicated_gpio/soft_spi/main/CMakeLists.txt index c4f4551057..bc4b728616 100644 --- a/examples/peripherals/dedicated_gpio/soft_spi/main/CMakeLists.txt +++ b/examples/peripherals/dedicated_gpio/soft_spi/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "soft_spi_master_main.c" + PRIV_REQUIRES soft_spi INCLUDE_DIRS ".") diff --git a/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt b/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt index ce42fe41d6..31ef38ac3a 100644 --- a/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt +++ b/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "matrix_keyboard_example_main.c" + PRIV_REQUIRES matrix_keyboard INCLUDE_DIRS "") diff --git a/examples/peripherals/i2c/i2c_eeprom/main/CMakeLists.txt b/examples/peripherals/i2c/i2c_eeprom/main/CMakeLists.txt index da62cead63..d0405dc097 100644 --- a/examples/peripherals/i2c/i2c_eeprom/main/CMakeLists.txt +++ b/examples/peripherals/i2c/i2c_eeprom/main/CMakeLists.txt @@ -1,4 +1,5 @@ set(srcs "i2c_eeprom_main.c") idf_component_register(SRCS ${srcs} - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_i2c i2c_eeprom + INCLUDE_DIRS ".") diff --git a/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt b/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt index 60f09894c4..7d3822660c 100644 --- a/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt +++ b/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "i2ctools_example_main.c" "cmd_i2ctools.c" + PRIV_REQUIRES fatfs esp_driver_i2c INCLUDE_DIRS ".") diff --git a/examples/peripherals/jpeg/jpeg_decode/main/CMakeLists.txt b/examples/peripherals/jpeg/jpeg_decode/main/CMakeLists.txt index 90f7897d87..96f77a9d2c 100644 --- a/examples/peripherals/jpeg/jpeg_decode/main/CMakeLists.txt +++ b/examples/peripherals/jpeg/jpeg_decode/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "jpeg_decode_main.c" + PRIV_REQUIRES fatfs esp_driver_jpeg esp_psram INCLUDE_DIRS ".") diff --git a/examples/peripherals/jpeg/jpeg_encode/main/CMakeLists.txt b/examples/peripherals/jpeg/jpeg_encode/main/CMakeLists.txt index 1da51f537f..491dcb7a84 100644 --- a/examples/peripherals/jpeg/jpeg_encode/main/CMakeLists.txt +++ b/examples/peripherals/jpeg/jpeg_encode/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "jpeg_encode_main.c" + PRIV_REQUIRES fatfs esp_driver_jpeg INCLUDE_DIRS ".") diff --git a/examples/peripherals/lcd/i80_controller/main/CMakeLists.txt b/examples/peripherals/lcd/i80_controller/main/CMakeLists.txt index d779b67c9f..4ff1a82f4e 100644 --- a/examples/peripherals/lcd/i80_controller/main/CMakeLists.txt +++ b/examples/peripherals/lcd/i80_controller/main/CMakeLists.txt @@ -4,6 +4,7 @@ if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_EMBEDDED_BINARY) endif() idf_component_register(SRCS "i80_controller_example_main.c" "lvgl_demo_ui.c" ${embedded_images} + PRIV_REQUIRES esp_lcd spiffs esp_psram INCLUDE_DIRS ".") if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_FILE_SYSTEM) diff --git a/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt b/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt index 4e9a3d43e5..0b88bc41fb 100644 --- a/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt +++ b/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "rgb_lcd_example_main.c" "lvgl_demo_ui.c" + PRIV_REQUIRES esp_lcd INCLUDE_DIRS ".") diff --git a/examples/peripherals/lcd/tjpgd/main/CMakeLists.txt b/examples/peripherals/lcd/tjpgd/main/CMakeLists.txt index 8abed53131..c1a014fe78 100644 --- a/examples/peripherals/lcd/tjpgd/main/CMakeLists.txt +++ b/examples/peripherals/lcd/tjpgd/main/CMakeLists.txt @@ -5,4 +5,5 @@ set(srcs "pretty_effect.c" idf_component_register(SRCS ${srcs} INCLUDE_DIRS "." + PRIV_REQUIRES esp_lcd EMBED_FILES image.jpg) diff --git a/examples/peripherals/ledc/ledc_basic/main/CMakeLists.txt b/examples/peripherals/ledc/ledc_basic/main/CMakeLists.txt index 04207465b2..df8f8fae0c 100644 --- a/examples/peripherals/ledc/ledc_basic/main/CMakeLists.txt +++ b/examples/peripherals/ledc/ledc_basic/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ledc_basic_example_main.c" + PRIV_REQUIRES esp_driver_ledc esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/ledc/ledc_fade/main/CMakeLists.txt b/examples/peripherals/ledc/ledc_fade/main/CMakeLists.txt index 7602af34bd..6be956a461 100644 --- a/examples/peripherals/ledc/ledc_fade/main/CMakeLists.txt +++ b/examples/peripherals/ledc/ledc_fade/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ledc_fade_example_main.c" + PRIV_REQUIRES esp_driver_ledc esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/ledc/ledc_gamma_curve_fade/main/CMakeLists.txt b/examples/peripherals/ledc/ledc_gamma_curve_fade/main/CMakeLists.txt index 0948cd72b2..af89b4a176 100644 --- a/examples/peripherals/ledc/ledc_gamma_curve_fade/main/CMakeLists.txt +++ b/examples/peripherals/ledc/ledc_gamma_curve_fade/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ledc_gamma_curve_fade_example_main.c" + PRIV_REQUIRES esp_driver_ledc esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt index 1d97d04dc0..2ba409a27f 100644 --- a/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_bldc_hall_control_example_main.c" + PRIV_REQUIRES esp_driver_mcpwm esp_timer esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt index 450a211ce5..67c1afe61b 100644 --- a/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_capture_hc_sr04.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_mcpwm esp_driver_gpio + INCLUDE_DIRS ".") diff --git a/examples/peripherals/mcpwm/mcpwm_servo_control/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_servo_control/main/CMakeLists.txt index 010d6a1d47..e3c84c9f62 100644 --- a/examples/peripherals/mcpwm/mcpwm_servo_control/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_servo_control/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_servo_control_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_mcpwm + INCLUDE_DIRS ".") diff --git a/examples/peripherals/mcpwm/mcpwm_sync/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_sync/main/CMakeLists.txt index cdf25dbaf1..c5931ce3d6 100644 --- a/examples/peripherals/mcpwm/mcpwm_sync/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_sync/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_sync_example_main.c" + PRIV_REQUIRES esp_driver_mcpwm esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/pcnt/rotary_encoder/main/CMakeLists.txt b/examples/peripherals/pcnt/rotary_encoder/main/CMakeLists.txt index f49bb25673..3b1407fc50 100644 --- a/examples/peripherals/pcnt/rotary_encoder/main/CMakeLists.txt +++ b/examples/peripherals/pcnt/rotary_encoder/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "rotary_encoder_example_main.c" + PRIV_REQUIRES esp_driver_pcnt esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/dshot_esc/main/CMakeLists.txt b/examples/peripherals/rmt/dshot_esc/main/CMakeLists.txt index 0e27b9096b..ce375fcae4 100644 --- a/examples/peripherals/rmt/dshot_esc/main/CMakeLists.txt +++ b/examples/peripherals/rmt/dshot_esc/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "dshot_esc_example_main.c" "dshot_esc_encoder.c" + PRIV_REQUIRES esp_driver_rmt INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/ir_nec_transceiver/main/CMakeLists.txt b/examples/peripherals/rmt/ir_nec_transceiver/main/CMakeLists.txt index 129f0fa792..940215de0e 100644 --- a/examples/peripherals/rmt/ir_nec_transceiver/main/CMakeLists.txt +++ b/examples/peripherals/rmt/ir_nec_transceiver/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ir_nec_transceiver_main.c" "ir_nec_encoder.c" + PRIV_REQUIRES esp_driver_rmt INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/led_strip/main/CMakeLists.txt b/examples/peripherals/rmt/led_strip/main/CMakeLists.txt index 1515a1d90d..07171ccfc4 100644 --- a/examples/peripherals/rmt/led_strip/main/CMakeLists.txt +++ b/examples/peripherals/rmt/led_strip/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "led_strip_example_main.c" "led_strip_encoder.c" + PRIV_REQUIRES esp_driver_rmt INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/led_strip_simple_encoder/main/CMakeLists.txt b/examples/peripherals/rmt/led_strip_simple_encoder/main/CMakeLists.txt index 5032ef1834..b3b4254b26 100644 --- a/examples/peripherals/rmt/led_strip_simple_encoder/main/CMakeLists.txt +++ b/examples/peripherals/rmt/led_strip_simple_encoder/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "led_strip_example_main.c" + PRIV_REQUIRES esp_driver_rmt INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/musical_buzzer/main/CMakeLists.txt b/examples/peripherals/rmt/musical_buzzer/main/CMakeLists.txt index 6f8ea967c3..383a6d8d08 100644 --- a/examples/peripherals/rmt/musical_buzzer/main/CMakeLists.txt +++ b/examples/peripherals/rmt/musical_buzzer/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "musical_buzzer_example_main.c" "musical_score_encoder.c" + PRIV_REQUIRES esp_driver_rmt INCLUDE_DIRS ".") diff --git a/examples/peripherals/rmt/stepper_motor/main/CMakeLists.txt b/examples/peripherals/rmt/stepper_motor/main/CMakeLists.txt index ca5fa8da19..e112f1ccfd 100644 --- a/examples/peripherals/rmt/stepper_motor/main/CMakeLists.txt +++ b/examples/peripherals/rmt/stepper_motor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "stepper_motor_example_main.c" "stepper_motor_encoder.c" + PRIV_REQUIRES esp_driver_rmt esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/sdio/slave/main/CMakeLists.txt b/examples/peripherals/sdio/slave/main/CMakeLists.txt index 61fac40e63..8381ce64b8 100644 --- a/examples/peripherals/sdio/slave/main/CMakeLists.txt +++ b/examples/peripherals/sdio/slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_sdio esp_ringbuf + INCLUDE_DIRS ".") diff --git a/examples/peripherals/sigma_delta/sdm_dac/main/CMakeLists.txt b/examples/peripherals/sigma_delta/sdm_dac/main/CMakeLists.txt index c597f431d5..996b1aafde 100644 --- a/examples/peripherals/sigma_delta/sdm_dac/main/CMakeLists.txt +++ b/examples/peripherals/sigma_delta/sdm_dac/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sdm_dac_example_main.c" + PRIV_REQUIRES esp_driver_sdm esp_driver_gptimer INCLUDE_DIRS ".") diff --git a/examples/peripherals/sigma_delta/sdm_led/main/CMakeLists.txt b/examples/peripherals/sigma_delta/sdm_led/main/CMakeLists.txt index ecad9cff66..80671e9b6a 100644 --- a/examples/peripherals/sigma_delta/sdm_led/main/CMakeLists.txt +++ b/examples/peripherals/sigma_delta/sdm_led/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sdm_led_example_main.c" + PRIV_REQUIRES esp_driver_sdm INCLUDE_DIRS ".") diff --git a/examples/peripherals/spi_master/hd_eeprom/main/CMakeLists.txt b/examples/peripherals/spi_master/hd_eeprom/main/CMakeLists.txt index 1bfe621902..b2d38e5ffc 100644 --- a/examples/peripherals/spi_master/hd_eeprom/main/CMakeLists.txt +++ b/examples/peripherals/spi_master/hd_eeprom/main/CMakeLists.txt @@ -1,4 +1,5 @@ set(srcs "spi_eeprom_main.c") idf_component_register(SRCS ${srcs} - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_spi esp_driver_gpio eeprom + INCLUDE_DIRS ".") diff --git a/examples/peripherals/spi_master/lcd/main/CMakeLists.txt b/examples/peripherals/spi_master/lcd/main/CMakeLists.txt index 0d34bee60e..535aefb32c 100644 --- a/examples/peripherals/spi_master/lcd/main/CMakeLists.txt +++ b/examples/peripherals/spi_master/lcd/main/CMakeLists.txt @@ -5,4 +5,5 @@ set(srcs "pretty_effect.c" idf_component_register(SRCS ${srcs} INCLUDE_DIRS "." + PRIV_REQUIRES esp_driver_spi esp_driver_gpio EMBED_FILES image.jpg) diff --git a/examples/peripherals/spi_slave/receiver/main/CMakeLists.txt b/examples/peripherals/spi_slave/receiver/main/CMakeLists.txt index 61fac40e63..70c0f245a9 100644 --- a/examples/peripherals/spi_slave/receiver/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave/receiver/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES esp_driver_spi esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/spi_slave/sender/main/CMakeLists.txt b/examples/peripherals/spi_slave/sender/main/CMakeLists.txt index 61fac40e63..b101a3ca96 100644 --- a/examples/peripherals/spi_slave/sender/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave/sender/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES esp_driver_spi esp_driver_gpio esp_timer INCLUDE_DIRS ".") diff --git a/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt b/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt index 61fac40e63..03588e7148 100644 --- a/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES esp_driver_spi INCLUDE_DIRS ".") diff --git a/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt b/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt index 61fac40e63..03588e7148 100644 --- a/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES esp_driver_spi INCLUDE_DIRS ".") diff --git a/examples/peripherals/temperature_sensor/temp_sensor/main/CMakeLists.txt b/examples/peripherals/temperature_sensor/temp_sensor/main/CMakeLists.txt index 8e713a2504..fb0b0aa5aa 100644 --- a/examples/peripherals/temperature_sensor/temp_sensor/main/CMakeLists.txt +++ b/examples/peripherals/temperature_sensor/temp_sensor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "temp_sensor_main.c" + PRIV_REQUIRES esp_driver_tsens INCLUDE_DIRS ".") diff --git a/examples/peripherals/temperature_sensor/temp_sensor_monitor/main/CMakeLists.txt b/examples/peripherals/temperature_sensor/temp_sensor_monitor/main/CMakeLists.txt index d0a8e29105..5b3f3203b4 100644 --- a/examples/peripherals/temperature_sensor/temp_sensor_monitor/main/CMakeLists.txt +++ b/examples/peripherals/temperature_sensor/temp_sensor_monitor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "temp_sensor_monitor_main.c" + PRIV_REQUIRES esp_driver_tsens INCLUDE_DIRS ".") diff --git a/examples/peripherals/timer_group/gptimer/main/CMakeLists.txt b/examples/peripherals/timer_group/gptimer/main/CMakeLists.txt index 81e0fad7b2..bc25d1bd88 100644 --- a/examples/peripherals/timer_group/gptimer/main/CMakeLists.txt +++ b/examples/peripherals/timer_group/gptimer/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gptimer_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_driver_gptimer + INCLUDE_DIRS ".") diff --git a/examples/peripherals/timer_group/gptimer_capture_hc_sr04/main/CMakeLists.txt b/examples/peripherals/timer_group/gptimer_capture_hc_sr04/main/CMakeLists.txt index 1580e9084e..a1ef40bdcd 100644 --- a/examples/peripherals/timer_group/gptimer_capture_hc_sr04/main/CMakeLists.txt +++ b/examples/peripherals/timer_group/gptimer_capture_hc_sr04/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gptimer_capture_hc_sr04.c" + PRIV_REQUIRES esp_driver_gptimer esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt index 94fac9872e..f847eb386a 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_interrupt_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES driver + INCLUDE_DIRS ".") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt index 2b9a209ec4..80aca5a15e 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_read_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES driver + INCLUDE_DIRS ".") diff --git a/examples/peripherals/twai/twai_alert_and_recovery/main/CMakeLists.txt b/examples/peripherals/twai/twai_alert_and_recovery/main/CMakeLists.txt index 2e9a791fea..b800800bf1 100644 --- a/examples/peripherals/twai/twai_alert_and_recovery/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_alert_and_recovery/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_alert_and_recovery_example_main.c" + REQUIRES driver INCLUDE_DIRS ".") diff --git a/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt index e26450a577..9e924d4b1a 100644 --- a/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_listen_only_main.c" + REQUIRES driver INCLUDE_DIRS ".") diff --git a/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt index 112b3ca1b4..0fd5bdf859 100644 --- a/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_master_main.c" + REQUIRES driver INCLUDE_DIRS ".") diff --git a/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt index 84241dd1d3..5220b9c8ff 100644 --- a/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_slave_main.c" + REQUIRES driver INCLUDE_DIRS ".") diff --git a/examples/peripherals/twai/twai_self_test/main/CMakeLists.txt b/examples/peripherals/twai/twai_self_test/main/CMakeLists.txt index dcf7bf7fbf..a1d798b3b4 100644 --- a/examples/peripherals/twai/twai_self_test/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_self_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_self_test_example_main.c" + REQUIRES driver INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/nmea0183_parser/main/CMakeLists.txt b/examples/peripherals/uart/nmea0183_parser/main/CMakeLists.txt index 25ef324dd8..1fc343aeaf 100644 --- a/examples/peripherals/uart/nmea0183_parser/main/CMakeLists.txt +++ b/examples/peripherals/uart/nmea0183_parser/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "nmea_parser_example_main.c" "nmea_parser.c" + REQUIRES esp_event esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_async_rxtxtasks/main/CMakeLists.txt b/examples/peripherals/uart/uart_async_rxtxtasks/main/CMakeLists.txt index 30e774e666..3d69195b66 100644 --- a/examples/peripherals/uart/uart_async_rxtxtasks/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_async_rxtxtasks/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "uart_async_rxtxtasks_main.c" + REQUIRES esp_driver_uart esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_echo/main/CMakeLists.txt b/examples/peripherals/uart/uart_echo/main/CMakeLists.txt index a25733646b..59e6e34083 100644 --- a/examples/peripherals/uart/uart_echo/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_echo/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "uart_echo_example_main.c" + REQUIRES esp_driver_uart esp_driver_gpio INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_echo_rs485/main/CMakeLists.txt b/examples/peripherals/uart/uart_echo_rs485/main/CMakeLists.txt index d6c0cf5f5a..c068ab1f59 100644 --- a/examples/peripherals/uart/uart_echo_rs485/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_echo_rs485/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "rs485_example.c" + REQUIRES nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_events/main/CMakeLists.txt b/examples/peripherals/uart/uart_events/main/CMakeLists.txt index 18f72d682b..02cc4ca3fa 100644 --- a/examples/peripherals/uart/uart_events/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_events/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "uart_events_example_main.c" + REQUIRES esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_repl/main/CMakeLists.txt b/examples/peripherals/uart/uart_repl/main/CMakeLists.txt index be3f1fa35a..e5ecb5fecc 100644 --- a/examples/peripherals/uart/uart_repl/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_repl/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "uart_repl_example_main.c" + REQUIRES esp_driver_uart esp_driver_gpio console INCLUDE_DIRS ".") diff --git a/examples/peripherals/uart/uart_select/main/CMakeLists.txt b/examples/peripherals/uart/uart_select/main/CMakeLists.txt index e30ac8b036..4ed74585b8 100644 --- a/examples/peripherals/uart/uart_select/main/CMakeLists.txt +++ b/examples/peripherals/uart/uart_select/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "uart_select_example_main.c" + REQUIRES esp_driver_uart vfs INCLUDE_DIRS ".") diff --git a/examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo/main/CMakeLists.txt b/examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo/main/CMakeLists.txt index 5134a91080..9f10bb9535 100644 --- a/examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo/main/CMakeLists.txt +++ b/examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "usb_serial_echo_main.c" + PRIV_REQUIRES esp_driver_usb_serial_jtag INCLUDE_DIRS ".") diff --git a/examples/phy/cert_test/main/CMakeLists.txt b/examples/phy/cert_test/main/CMakeLists.txt index 4daa822628..34ce19d25e 100644 --- a/examples/phy/cert_test/main/CMakeLists.txt +++ b/examples/phy/cert_test/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "cert_test.c" "cmd_phy.c" + PRIV_REQUIRES bt INCLUDE_DIRS ".") diff --git a/examples/protocols/esp_http_client/main/CMakeLists.txt b/examples/protocols/esp_http_client/main/CMakeLists.txt index bfee9f9c9e..aa7d874d31 100644 --- a/examples/protocols/esp_http_client/main/CMakeLists.txt +++ b/examples/protocols/esp_http_client/main/CMakeLists.txt @@ -1,14 +1,14 @@ # Embed the server root certificate into the final binary # # (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.) -set(requires "") +set(requires esp-tls nvs_flash esp_event esp_netif esp_http_client) idf_build_get_property(target IDF_TARGET) if(${target} STREQUAL "linux") - list(APPEND requires esp_stubs esp_event esp-tls esp_http_client protocol_examples_common nvs_flash) + list(APPEND requires esp_stubs protocol_examples_common) endif() idf_component_register(SRCS "esp_http_client_example.c" INCLUDE_DIRS "." - REQUIRES ${requires} + PRIV_REQUIRES ${requires} EMBED_TXTFILES howsmyssl_com_root_cert.pem postman_root_cert.pem) diff --git a/examples/protocols/esp_local_ctrl/main/CMakeLists.txt b/examples/protocols/esp_local_ctrl/main/CMakeLists.txt index cb680e3bce..52195c9ad3 100644 --- a/examples/protocols/esp_local_ctrl/main/CMakeLists.txt +++ b/examples/protocols/esp_local_ctrl/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "app_main.c" "esp_local_ctrl_service.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_local_ctrl nvs_flash EMBED_TXTFILES "certs/servercert.pem" "certs/prvtkey.pem") diff --git a/examples/protocols/http_server/advanced_tests/main/CMakeLists.txt b/examples/protocols/http_server/advanced_tests/main/CMakeLists.txt index dbb0d54046..6ba46d02d0 100644 --- a/examples/protocols/http_server/advanced_tests/main/CMakeLists.txt +++ b/examples/protocols/http_server/advanced_tests/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "tests.c" + PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth INCLUDE_DIRS "." "include") diff --git a/examples/protocols/http_server/async_handlers/main/CMakeLists.txt b/examples/protocols/http_server/async_handlers/main/CMakeLists.txt index cf2c455cb5..8c20d89d32 100644 --- a/examples/protocols/http_server/async_handlers/main/CMakeLists.txt +++ b/examples/protocols/http_server/async_handlers/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES esp-tls esp_wifi nvs_flash esp_eth esp_http_server INCLUDE_DIRS ".") diff --git a/examples/protocols/http_server/captive_portal/main/CMakeLists.txt b/examples/protocols/http_server/captive_portal/main/CMakeLists.txt index f103a236d6..c1e55e63f9 100644 --- a/examples/protocols/http_server/captive_portal/main/CMakeLists.txt +++ b/examples/protocols/http_server/captive_portal/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS main.c + PRIV_REQUIRES esp_event nvs_flash esp_wifi esp_http_server dns_server EMBED_FILES root.html) diff --git a/examples/protocols/http_server/file_serving/main/CMakeLists.txt b/examples/protocols/http_server/file_serving/main/CMakeLists.txt index 3cd37d278b..97f18ae334 100644 --- a/examples/protocols/http_server/file_serving/main/CMakeLists.txt +++ b/examples/protocols/http_server/file_serving/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "file_server.c" "mount.c" INCLUDE_DIRS "." + PRIV_REQUIRES fatfs esp_event vfs esp_netif nvs_flash spiffs esp_http_server EMBED_FILES "favicon.ico" "upload_script.html") diff --git a/examples/protocols/http_server/persistent_sockets/main/CMakeLists.txt b/examples/protocols/http_server/persistent_sockets/main/CMakeLists.txt index cf2c455cb5..d3a16c66ad 100644 --- a/examples/protocols/http_server/persistent_sockets/main/CMakeLists.txt +++ b/examples/protocols/http_server/persistent_sockets/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth INCLUDE_DIRS ".") diff --git a/examples/protocols/http_server/restful_server/main/CMakeLists.txt b/examples/protocols/http_server/restful_server/main/CMakeLists.txt index 0c90965da3..fdc6a82515 100644 --- a/examples/protocols/http_server/restful_server/main/CMakeLists.txt +++ b/examples/protocols/http_server/restful_server/main/CMakeLists.txt @@ -1,5 +1,6 @@ idf_component_register(SRCS "esp_rest_main.c" "rest_server.c" + PRIV_REQUIRES esp_http_server esp_driver_gpio fatfs json spiffs nvs_flash INCLUDE_DIRS ".") if(CONFIG_EXAMPLE_WEB_DEPLOY_SF) diff --git a/examples/protocols/http_server/simple/main/CMakeLists.txt b/examples/protocols/http_server/simple/main/CMakeLists.txt index 564c3f54f6..0b347b59b4 100644 --- a/examples/protocols/http_server/simple/main/CMakeLists.txt +++ b/examples/protocols/http_server/simple/main/CMakeLists.txt @@ -1,9 +1,9 @@ -set(requires "") +set(requires esp-tls nvs_flash esp_netif esp_http_server esp_wifi esp_eth) idf_build_get_property(target IDF_TARGET) if(${target} STREQUAL "linux") - list(APPEND requires esp_stubs esp-tls esp_http_server protocol_examples_common nvs_flash) + list(APPEND requires esp_stubs protocol_examples_common) endif() idf_component_register(SRCS "main.c" INCLUDE_DIRS "." - REQUIRES ${requires}) + PRIV_REQUIRES ${requires}) diff --git a/examples/protocols/http_server/ws_echo_server/main/CMakeLists.txt b/examples/protocols/http_server/ws_echo_server/main/CMakeLists.txt index 45de9dcb06..96b07e0041 100644 --- a/examples/protocols/http_server/ws_echo_server/main/CMakeLists.txt +++ b/examples/protocols/http_server/ws_echo_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ws_echo_server.c" + PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth INCLUDE_DIRS ".") diff --git a/examples/protocols/https_request/main/CMakeLists.txt b/examples/protocols/https_request/main/CMakeLists.txt index c3c1ddb0c1..987fbf7baf 100644 --- a/examples/protocols/https_request/main/CMakeLists.txt +++ b/examples/protocols/https_request/main/CMakeLists.txt @@ -3,4 +3,5 @@ # (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.) idf_component_register(SRCS "https_request_example_main.c" "time_sync.c" INCLUDE_DIRS "include" + PRIV_REQUIRES esp-tls esp_wifi esp_timer nvs_flash EMBED_TXTFILES server_root_cert.pem local_server_cert.pem) diff --git a/examples/protocols/https_server/simple/main/CMakeLists.txt b/examples/protocols/https_server/simple/main/CMakeLists.txt index d2da700754..058cd558ac 100644 --- a/examples/protocols/https_server/simple/main/CMakeLists.txt +++ b/examples/protocols/https_server/simple/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_https_server esp_wifi nvs_flash esp_eth EMBED_TXTFILES "certs/servercert.pem" "certs/prvtkey.pem") diff --git a/examples/protocols/https_server/wss_server/main/CMakeLists.txt b/examples/protocols/https_server/wss_server/main/CMakeLists.txt index 322d41956d..eb67257ab6 100644 --- a/examples/protocols/https_server/wss_server/main/CMakeLists.txt +++ b/examples/protocols/https_server/wss_server/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "wss_server_example.c" "keep_alive.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_https_server nvs_flash esp_timer esp_netif esp_eth esp_wifi EMBED_TXTFILES "certs/servercert.pem" "certs/prvtkey.pem") diff --git a/examples/protocols/https_x509_bundle/main/CMakeLists.txt b/examples/protocols/https_x509_bundle/main/CMakeLists.txt index 0ec7175376..b7418afbb6 100644 --- a/examples/protocols/https_x509_bundle/main/CMakeLists.txt +++ b/examples/protocols/https_x509_bundle/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "https_x509_bundle_example_main.c" + PRIV_REQUIRES esp-tls esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/custom_outbox/main/CMakeLists.txt b/examples/protocols/mqtt/custom_outbox/main/CMakeLists.txt index cb970c8d23..7423b6078f 100644 --- a/examples/protocols/mqtt/custom_outbox/main/CMakeLists.txt +++ b/examples/protocols/mqtt/custom_outbox/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS "." + PRIV_REQUIRES mqtt nvs_flash esp_netif ) diff --git a/examples/protocols/mqtt/ssl/main/CMakeLists.txt b/examples/protocols/mqtt/ssl/main/CMakeLists.txt index 61fac40e63..d6ca62dc1f 100644 --- a/examples/protocols/mqtt/ssl/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_partition nvs_flash esp_netif app_update INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt index 61fac40e63..055d4c563a 100644 --- a/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_netif INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt index 61fac40e63..31650f39dd 100644 --- a/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt index 61fac40e63..31650f39dd 100644 --- a/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/tcp/main/CMakeLists.txt b/examples/protocols/mqtt/tcp/main/CMakeLists.txt index 61fac40e63..3bf739cf89 100644 --- a/examples/protocols/mqtt/tcp/main/CMakeLists.txt +++ b/examples/protocols/mqtt/tcp/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt nvs_flash esp_netif INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/ws/main/CMakeLists.txt b/examples/protocols/mqtt/ws/main/CMakeLists.txt index 61fac40e63..31650f39dd 100644 --- a/examples/protocols/mqtt/ws/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ws/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt/wss/main/CMakeLists.txt b/examples/protocols/mqtt/wss/main/CMakeLists.txt index 61fac40e63..31650f39dd 100644 --- a/examples/protocols/mqtt/wss/main/CMakeLists.txt +++ b/examples/protocols/mqtt/wss/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/protocols/mqtt5/main/CMakeLists.txt b/examples/protocols/mqtt5/main/CMakeLists.txt index 61fac40e63..3bf739cf89 100644 --- a/examples/protocols/mqtt5/main/CMakeLists.txt +++ b/examples/protocols/mqtt5/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + PRIV_REQUIRES mqtt nvs_flash esp_netif INCLUDE_DIRS ".") diff --git a/examples/protocols/sockets/tcp_client/main/CMakeLists.txt b/examples/protocols/sockets/tcp_client/main/CMakeLists.txt index 5862a63d4a..06695f6362 100644 --- a/examples/protocols/sockets/tcp_client/main/CMakeLists.txt +++ b/examples/protocols/sockets/tcp_client/main/CMakeLists.txt @@ -1,9 +1,5 @@ idf_build_get_property(target IDF_TARGET) -if(${target} STREQUAL "linux") - set(requires esp_event esp_stubs protocol_examples_common nvs_flash) -endif() - if("${CONFIG_EXAMPLE_IPV4}" STREQUAL y) set(tcp_client_ip tcp_client_v4.c) else() @@ -12,4 +8,4 @@ endif() idf_component_register(SRCS "tcp_client_main.c" "${tcp_client_ip}" INCLUDE_DIRS "." - REQUIRES ${requires}) + PRIV_REQUIRES unity nvs_flash esp_netif) diff --git a/examples/protocols/sockets/tcp_transport_client/main/CMakeLists.txt b/examples/protocols/sockets/tcp_transport_client/main/CMakeLists.txt index 1365c27b1e..25b886a08d 100644 --- a/examples/protocols/sockets/tcp_transport_client/main/CMakeLists.txt +++ b/examples/protocols/sockets/tcp_transport_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tcp_transport_client.c" + PRIV_REQUIRES tcp_transport esp_wifi nvs_flash ) diff --git a/examples/protocols/sockets/udp_client/CMakeLists.txt b/examples/protocols/sockets/udp_client/CMakeLists.txt index 2db190c9d1..4be3dcfa13 100644 --- a/examples/protocols/sockets/udp_client/CMakeLists.txt +++ b/examples/protocols/sockets/udp_client/CMakeLists.txt @@ -2,9 +2,5 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) -if("${IDF_TARGET}" STREQUAL "linux") - set(COMPONENTS main esp_netif lwip protocol_examples_tapif_io startup esp_hw_support esp_system nvs_flash) -endif() - include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(udp_client) diff --git a/examples/protocols/sockets/udp_client/main/CMakeLists.txt b/examples/protocols/sockets/udp_client/main/CMakeLists.txt index 3fa4a07453..e00ec36c56 100644 --- a/examples/protocols/sockets/udp_client/main/CMakeLists.txt +++ b/examples/protocols/sockets/udp_client/main/CMakeLists.txt @@ -1,2 +1,10 @@ +idf_build_get_property(target IDF_TARGET) +set(priv_requires "") + +if(${target} STREQUAL "linux") + list(APPEND priv_requires nvs_flash esp_event esp_netif lwip) +endif() + idf_component_register(SRCS "udp_client.c" + PRIV_REQUIRES ${priv_requires} INCLUDE_DIRS ".") diff --git a/examples/protocols/static_ip/main/CMakeLists.txt b/examples/protocols/static_ip/main/CMakeLists.txt index e9d8891a84..8179ebca19 100644 --- a/examples/protocols/static_ip/main/CMakeLists.txt +++ b/examples/protocols/static_ip/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "static_ip_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_wifi esp_eth nvs_flash + INCLUDE_DIRS ".") diff --git a/examples/provisioning/wifi_prov_mgr/main/CMakeLists.txt b/examples/provisioning/wifi_prov_mgr/main/CMakeLists.txt index 61fac40e63..3b883ba551 100644 --- a/examples/provisioning/wifi_prov_mgr/main/CMakeLists.txt +++ b/examples/provisioning/wifi_prov_mgr/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_wifi nvs_flash wifi_provisioning + INCLUDE_DIRS ".") diff --git a/examples/security/flash_encryption/main/CMakeLists.txt b/examples/security/flash_encryption/main/CMakeLists.txt index 13c6fc5328..1b358ad0df 100644 --- a/examples/security/flash_encryption/main/CMakeLists.txt +++ b/examples/security/flash_encryption/main/CMakeLists.txt @@ -1,3 +1,5 @@ idf_component_register(SRCS "flash_encrypt_main.c" "flash_encrypt_fatfs.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES vfs nvs_flash spi_flash efuse bootloader_support + fatfs espcoredump nvs_sec_provider + INCLUDE_DIRS ".") diff --git a/examples/security/hmac_soft_jtag/main/CMakeLists.txt b/examples/security/hmac_soft_jtag/main/CMakeLists.txt index beb15285a5..8767d118fc 100644 --- a/examples/security/hmac_soft_jtag/main/CMakeLists.txt +++ b/examples/security/hmac_soft_jtag/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_main.c" "jtag_commands.c" - PRIV_INCLUDE_DIRS ".") + PRIV_REQUIRES console efuse mbedtls nvs_flash + PRIV_INCLUDE_DIRS ".") diff --git a/examples/security/nvs_encryption_hmac/main/CMakeLists.txt b/examples/security/nvs_encryption_hmac/main/CMakeLists.txt index 8a9d914e13..f5639600f1 100644 --- a/examples/security/nvs_encryption_hmac/main/CMakeLists.txt +++ b/examples/security/nvs_encryption_hmac/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" + PRIV_REQUIRES nvs_flash spi_flash nvs_sec_provider INCLUDE_DIRS ".") diff --git a/examples/security/security_features_app/main/CMakeLists.txt b/examples/security/security_features_app/main/CMakeLists.txt index c9b76807b0..6040817b32 100644 --- a/examples/security/security_features_app/main/CMakeLists.txt +++ b/examples/security/security_features_app/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "security_features_app_main.c" INCLUDE_DIRS "." + PRIV_REQUIRES nvs_flash spi_flash efuse bootloader_support nvs_sec_provider REQUIRED_IDF_TARGETS esp32c3) diff --git a/examples/storage/emmc/main/CMakeLists.txt b/examples/storage/emmc/main/CMakeLists.txt index d62a469c84..0b15d6918b 100644 --- a/examples/storage/emmc/main/CMakeLists.txt +++ b/examples/storage/emmc/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "emmc_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES fatfs + INCLUDE_DIRS ".") diff --git a/examples/storage/fatfs/ext_flash/main/CMakeLists.txt b/examples/storage/fatfs/ext_flash/main/CMakeLists.txt index dea52d1cb4..8b5c288319 100644 --- a/examples/storage/fatfs/ext_flash/main/CMakeLists.txt +++ b/examples/storage/fatfs/ext_flash/main/CMakeLists.txt @@ -1 +1,2 @@ -idf_component_register(SRCS "fatfs_ext_flash_example_main.c") +idf_component_register(SRCS "fatfs_ext_flash_example_main.c" + PRIV_REQUIRES vfs nvs_flash spi_flash fatfs) diff --git a/examples/storage/fatfs/fatfsgen/main/CMakeLists.txt b/examples/storage/fatfs/fatfsgen/main/CMakeLists.txt index 1b625a3722..0409c6195b 100644 --- a/examples/storage/fatfs/fatfsgen/main/CMakeLists.txt +++ b/examples/storage/fatfs/fatfsgen/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "fatfsgen_example_main.c" + PRIV_REQUIRES vfs fatfs INCLUDE_DIRS ".") # Create a FATFS image from the contents of the 'fatfs_long_name_image' directory diff --git a/examples/storage/fatfs/fs_operations/main/CMakeLists.txt b/examples/storage/fatfs/fs_operations/main/CMakeLists.txt index a5ae965fc4..9fec83d610 100644 --- a/examples/storage/fatfs/fs_operations/main/CMakeLists.txt +++ b/examples/storage/fatfs/fs_operations/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "fatfs_fs_operations_example_main.c" + PRIV_REQUIRES vfs fatfs INCLUDE_DIRS ".") diff --git a/examples/storage/fatfs/getting_started/main/CMakeLists.txt b/examples/storage/fatfs/getting_started/main/CMakeLists.txt index fec5d19cad..ff911f7efa 100644 --- a/examples/storage/fatfs/getting_started/main/CMakeLists.txt +++ b/examples/storage/fatfs/getting_started/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "fatfs_getting_started_main.c" + PRIV_REQUIRES vfs fatfs INCLUDE_DIRS ".") diff --git a/examples/storage/nvs_rw_blob/main/CMakeLists.txt b/examples/storage/nvs_rw_blob/main/CMakeLists.txt index 13a1b50cee..38281002ae 100644 --- a/examples/storage/nvs_rw_blob/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_blob/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_blob_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES nvs_flash esp_driver_gpio + INCLUDE_DIRS ".") diff --git a/examples/storage/nvs_rw_value/main/CMakeLists.txt b/examples/storage/nvs_rw_value/main/CMakeLists.txt index fdee1d3dca..875f18eb43 100644 --- a/examples/storage/nvs_rw_value/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_value/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_value_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES nvs_flash + INCLUDE_DIRS ".") diff --git a/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt b/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt index 217cab6a7e..8dcde163d1 100644 --- a/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_value_example_main.cpp" - INCLUDE_DIRS ".") + PRIV_REQUIRES nvs_flash + INCLUDE_DIRS ".") diff --git a/examples/storage/nvsgen/main/CMakeLists.txt b/examples/storage/nvsgen/main/CMakeLists.txt index 6c3be52671..5a9f5d3423 100644 --- a/examples/storage/nvsgen/main/CMakeLists.txt +++ b/examples/storage/nvsgen/main/CMakeLists.txt @@ -1,5 +1,6 @@ idf_component_register(SRCS "nvsgen_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES vfs fatfs nvs_flash + INCLUDE_DIRS ".") # Create a NVS image from the contents of the `nvs_data` CSV file # that fits the partition named 'nvs'. FLASH_IN_PROJECT indicates that diff --git a/examples/storage/perf_benchmark/main/CMakeLists.txt b/examples/storage/perf_benchmark/main/CMakeLists.txt index a8b5c4af55..6060e52d05 100644 --- a/examples/storage/perf_benchmark/main/CMakeLists.txt +++ b/examples/storage/perf_benchmark/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "perf_benchmark_example_main.c" "perf_benchmark_example_tests.c" "perf_benchmark_example_sd_utils.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES fatfs spiffs + INCLUDE_DIRS ".") diff --git a/examples/storage/semihost_vfs/main/CMakeLists.txt b/examples/storage/semihost_vfs/main/CMakeLists.txt index ccb9434eca..ef3c959d13 100644 --- a/examples/storage/semihost_vfs/main/CMakeLists.txt +++ b/examples/storage/semihost_vfs/main/CMakeLists.txt @@ -2,4 +2,5 @@ set(COMPONENT_SRCS) set(COMPONENT_ADD_INCLUDEDIRS ".") idf_component_register(SRCS "semihost_vfs_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES vfs + INCLUDE_DIRS ".") diff --git a/examples/storage/spiffs/main/CMakeLists.txt b/examples/storage/spiffs/main/CMakeLists.txt index c480915abb..3691dbfceb 100644 --- a/examples/storage/spiffs/main/CMakeLists.txt +++ b/examples/storage/spiffs/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "spiffs_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES spiffs + INCLUDE_DIRS ".") diff --git a/examples/storage/spiffsgen/main/CMakeLists.txt b/examples/storage/spiffsgen/main/CMakeLists.txt index e0aa53dc72..9fdb033fab 100644 --- a/examples/storage/spiffsgen/main/CMakeLists.txt +++ b/examples/storage/spiffsgen/main/CMakeLists.txt @@ -1,5 +1,6 @@ idf_component_register(SRCS "spiffsgen_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES spiffs mbedtls + INCLUDE_DIRS ".") # Create a SPIFFS image from the contents of the 'spiffs_image' directory # that fits the partition named 'storage'. FLASH_IN_PROJECT indicates that diff --git a/examples/storage/wear_levelling/main/CMakeLists.txt b/examples/storage/wear_levelling/main/CMakeLists.txt index 8155abc01d..7c89b6b422 100644 --- a/examples/storage/wear_levelling/main/CMakeLists.txt +++ b/examples/storage/wear_levelling/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "wear_levelling_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES vfs fatfs + INCLUDE_DIRS ".") diff --git a/examples/system/app_trace_basic/main/CMakeLists.txt b/examples/system/app_trace_basic/main/CMakeLists.txt index 8447cd1cd2..0558d62cba 100644 --- a/examples/system/app_trace_basic/main/CMakeLists.txt +++ b/examples/system/app_trace_basic/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_trace_basic_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES app_trace + INCLUDE_DIRS ".") diff --git a/examples/system/app_trace_to_plot/main/CMakeLists.txt b/examples/system/app_trace_to_plot/main/CMakeLists.txt index 94277bd197..d96666ff74 100644 --- a/examples/system/app_trace_to_plot/main/CMakeLists.txt +++ b/examples/system/app_trace_to_plot/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_trace_to_plot.c" + PRIV_REQUIRES app_trace INCLUDE_DIRS ".") diff --git a/examples/system/console/advanced/main/CMakeLists.txt b/examples/system/console/advanced/main/CMakeLists.txt index 696251c584..f8af67f147 100644 --- a/examples/system/console/advanced/main/CMakeLists.txt +++ b/examples/system/console/advanced/main/CMakeLists.txt @@ -1,2 +1,4 @@ idf_component_register(SRCS "console_example_main.c" "console_settings.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES console esp_driver_uart fatfs esp_driver_usb_serial_jtag + nvs_flash cmd_system cmd_wifi cmd_nvs + INCLUDE_DIRS ".") diff --git a/examples/system/console/basic/main/CMakeLists.txt b/examples/system/console/basic/main/CMakeLists.txt index 6833bf8b62..b13c8f2df7 100644 --- a/examples/system/console/basic/main/CMakeLists.txt +++ b/examples/system/console/basic/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "console_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES fatfs + INCLUDE_DIRS ".") diff --git a/examples/system/deep_sleep/main/CMakeLists.txt b/examples/system/deep_sleep/main/CMakeLists.txt index f6c3a57090..b4a8c428a4 100644 --- a/examples/system/deep_sleep/main/CMakeLists.txt +++ b/examples/system/deep_sleep/main/CMakeLists.txt @@ -2,4 +2,5 @@ idf_component_register(SRCS "deep_sleep_example_main.c" "gpio_wakeup.c" "ext_wakeup.c" "touch_wakeup.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES driver nvs_flash ulp + INCLUDE_DIRS ".") diff --git a/examples/system/efuse/main/CMakeLists.txt b/examples/system/efuse/main/CMakeLists.txt index e42d27176e..d0aeb62b0b 100644 --- a/examples/system/efuse/main/CMakeLists.txt +++ b/examples/system/efuse/main/CMakeLists.txt @@ -1,4 +1,9 @@ idf_component_register(SRCS "efuse_main.c" "esp_efuse_custom_table.c" + PRIV_REQUIRES efuse INCLUDE_DIRS "." "include") + +if(CONFIG_SECURE_BOOT OR CONFIG_SECURE_FLASH_ENC_ENABLED OR CONFIG_IDF_TARGET_ESP32C2) + idf_component_optional_requires(PRIVATE bootloader_support) +endif() diff --git a/examples/system/esp_event/default_event_loop/main/CMakeLists.txt b/examples/system/esp_event/default_event_loop/main/CMakeLists.txt index cf2c455cb5..b42174e9a5 100644 --- a/examples/system/esp_event/default_event_loop/main/CMakeLists.txt +++ b/examples/system/esp_event/default_event_loop/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_event esp_timer + INCLUDE_DIRS ".") diff --git a/examples/system/esp_event/user_event_loops/main/CMakeLists.txt b/examples/system/esp_event/user_event_loops/main/CMakeLists.txt index cf2c455cb5..b42174e9a5 100644 --- a/examples/system/esp_event/user_event_loops/main/CMakeLists.txt +++ b/examples/system/esp_event/user_event_loops/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES esp_event esp_timer + INCLUDE_DIRS ".") diff --git a/examples/system/eventfd/main/CMakeLists.txt b/examples/system/eventfd/main/CMakeLists.txt index 52e676a338..cd1b2d1eec 100644 --- a/examples/system/eventfd/main/CMakeLists.txt +++ b/examples/system/eventfd/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "eventfd_example.c" + PRIV_REQUIRES vfs esp_timer esp_driver_gptimer INCLUDE_DIRS ".") diff --git a/examples/system/flash_suspend/main/CMakeLists.txt b/examples/system/flash_suspend/main/CMakeLists.txt index 5d6d0f9979..9b1d9c26c7 100644 --- a/examples/system/flash_suspend/main/CMakeLists.txt +++ b/examples/system/flash_suspend/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" - INCLUDE_DIRS "") + PRIV_REQUIRES esp_driver_gptimer esp_partition nvs_flash spi_flash + INCLUDE_DIRS "") diff --git a/examples/system/gdbstub/main/CMakeLists.txt b/examples/system/gdbstub/main/CMakeLists.txt index b834e836a4..ce45591daf 100644 --- a/examples/system/gdbstub/main/CMakeLists.txt +++ b/examples/system/gdbstub/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gdbstub_main.c" + PRIV_REQUIRES esp_gdbstub INCLUDE_DIRS "") diff --git a/examples/system/himem/main/CMakeLists.txt b/examples/system/himem/main/CMakeLists.txt index 56b7332142..bd89fe638a 100644 --- a/examples/system/himem/main/CMakeLists.txt +++ b/examples/system/himem/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "himem_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES nvs_flash esp_psram + INCLUDE_DIRS ".") diff --git a/examples/system/light_sleep/main/CMakeLists.txt b/examples/system/light_sleep/main/CMakeLists.txt index f36ab83fd8..13e3828953 100644 --- a/examples/system/light_sleep/main/CMakeLists.txt +++ b/examples/system/light_sleep/main/CMakeLists.txt @@ -1,17 +1,24 @@ +idf_build_get_property(target IDF_TARGET) + set(srcs "light_sleep_example_main.c" "gpio_wakeup.c" "timer_wakeup.c" "uart_wakeup.c") +set(priv_reqs esp_driver_uart esp_driver_gpio esp_timer) + set(TOUCH_ELEMENT_COMPATIBLE_TARGETS "esp32s2" "esp32s3") -if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS) +if(${target} IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS) list(APPEND srcs "touch_wakeup.c") + list(APPEND priv_reqs touch_element) endif() -if(IDF_TARGET STREQUAL "esp32p4") +if("${target}" STREQUAL "esp32p4") list(APPEND srcs "touch_sens_wakeup.c") + list(APPEND priv_reqs esp_driver_touch_sens) endif() idf_component_register(SRCS ${srcs} + PRIV_REQUIRES ${priv_reqs} INCLUDE_DIRS ".") diff --git a/examples/system/ota/advanced_https_ota/main/CMakeLists.txt b/examples/system/ota/advanced_https_ota/main/CMakeLists.txt index 0e102c7ca2..3cbd2b2ac5 100644 --- a/examples/system/ota/advanced_https_ota/main/CMakeLists.txt +++ b/examples/system/ota/advanced_https_ota/main/CMakeLists.txt @@ -1,5 +1,8 @@ idf_component_register(SRCS "advanced_https_ota_example.c" "ble_helper/bluedroid_gatts.c" "ble_helper/nimble_gatts.c" "ble_helper/ble_api.c" INCLUDE_DIRS "." "./ble_helper/include/" + PRIV_REQUIRES esp_http_client app_update esp_https_ota + nvs_flash esp_netif esp_wifi efuse bt + protocomm # Embed the server root certificate into the final binary EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem) diff --git a/examples/system/ota/native_ota_example/main/CMakeLists.txt b/examples/system/ota/native_ota_example/main/CMakeLists.txt index dea9a5a5ad..f40b686d03 100644 --- a/examples/system/ota/native_ota_example/main/CMakeLists.txt +++ b/examples/system/ota/native_ota_example/main/CMakeLists.txt @@ -2,4 +2,5 @@ idf_build_get_property(project_dir PROJECT_DIR) idf_component_register(SRCS "native_ota_example.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_http_client app_update nvs_flash esp_driver_gpio esp_netif esp_wifi EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem) diff --git a/examples/system/ota/pre_encrypted_ota/main/CMakeLists.txt b/examples/system/ota/pre_encrypted_ota/main/CMakeLists.txt index 600f0c5b1a..8e23bcabd3 100644 --- a/examples/system/ota/pre_encrypted_ota/main/CMakeLists.txt +++ b/examples/system/ota/pre_encrypted_ota/main/CMakeLists.txt @@ -1,6 +1,7 @@ idf_build_get_property(project_dir PROJECT_DIR) idf_component_register(SRCS "pre_encrypted_ota.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_http_client app_update esp_https_ota nvs_flash esp_netif esp_wifi EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem ${project_dir}/rsa_key/private.pem) diff --git a/examples/system/ota/simple_ota_example/main/CMakeLists.txt b/examples/system/ota/simple_ota_example/main/CMakeLists.txt index f8c5c183cf..8af1e8c069 100644 --- a/examples/system/ota/simple_ota_example/main/CMakeLists.txt +++ b/examples/system/ota/simple_ota_example/main/CMakeLists.txt @@ -2,4 +2,6 @@ idf_build_get_property(project_dir PROJECT_DIR) idf_component_register(SRCS "simple_ota_example.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_http_client app_update esp_https_ota + esp_netif mbedtls nvs_flash esp_wifi esp_psram EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem) diff --git a/examples/system/perfmon/main/CMakeLists.txt b/examples/system/perfmon/main/CMakeLists.txt index 50b7732953..69791334d1 100644 --- a/examples/system/perfmon/main/CMakeLists.txt +++ b/examples/system/perfmon/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "perfmon_example_main.c" + PRIV_REQUIRES perfmon esp_timer INCLUDE_DIRS ".") diff --git a/examples/system/select/main/CMakeLists.txt b/examples/system/select/main/CMakeLists.txt index ba7bf5d044..88f5027dc0 100644 --- a/examples/system/select/main/CMakeLists.txt +++ b/examples/system/select/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "select_example.c" + PRIV_REQUIRES esp_driver_uart vfs esp_netif INCLUDE_DIRS ".") diff --git a/examples/system/sysview_tracing/main/CMakeLists.txt b/examples/system/sysview_tracing/main/CMakeLists.txt index 0f466b71d6..55b846e1da 100644 --- a/examples/system/sysview_tracing/main/CMakeLists.txt +++ b/examples/system/sysview_tracing/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sysview_tracing.c" + PRIV_REQUIRES esp_driver_gptimer app_trace INCLUDE_DIRS ".") diff --git a/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt b/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt index 0383353f0a..2573075098 100644 --- a/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt +++ b/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sysview_heap_log.c" + PRIV_REQUIRES app_trace INCLUDE_DIRS ".") diff --git a/examples/system/ulp/lp_core/gpio_intr_pulse_counter/main/CMakeLists.txt b/examples/system/ulp/lp_core/gpio_intr_pulse_counter/main/CMakeLists.txt index 79a7104a1f..97188fea92 100644 --- a/examples/system/ulp/lp_core/gpio_intr_pulse_counter/main/CMakeLists.txt +++ b/examples/system/ulp/lp_core/gpio_intr_pulse_counter/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "lp_core_pulse_counter_example_main.c" + REQUIRES ulp INCLUDE_DIRS ".") # # ULP support additions to component CMakeLists.txt. diff --git a/examples/system/unit_test/main/CMakeLists.txt b/examples/system/unit_test/main/CMakeLists.txt index f96d4f5747..8c40d23c0b 100644 --- a/examples/system/unit_test/main/CMakeLists.txt +++ b/examples/system/unit_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_unit_test_main.c" + PRIV_REQUIRES testable INCLUDE_DIRS ".") diff --git a/examples/system/unit_test/test/main/CMakeLists.txt b/examples/system/unit_test/test/main/CMakeLists.txt index 29cdfb0f03..0ef6d242b2 100644 --- a/examples/system/unit_test/test/main/CMakeLists.txt +++ b/examples/system/unit_test/test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_unit_test_test.c" + PRIV_REQUIRES unity INCLUDE_DIRS ".") diff --git a/examples/wifi/espnow/main/CMakeLists.txt b/examples/wifi/espnow/main/CMakeLists.txt index 3aef7036c6..57f379820c 100644 --- a/examples/wifi/espnow/main/CMakeLists.txt +++ b/examples/wifi/espnow/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "espnow_example_main.c" + PRIV_REQUIRES nvs_flash esp_event esp_netif esp_wifi INCLUDE_DIRS ".") diff --git a/examples/wifi/fast_scan/main/CMakeLists.txt b/examples/wifi/fast_scan/main/CMakeLists.txt index f6fc61fe13..7659598429 100644 --- a/examples/wifi/fast_scan/main/CMakeLists.txt +++ b/examples/wifi/fast_scan/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "fast_scan.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/getting_started/softAP/main/CMakeLists.txt b/examples/wifi/getting_started/softAP/main/CMakeLists.txt index ddc8ca7fa4..7887a9a902 100644 --- a/examples/wifi/getting_started/softAP/main/CMakeLists.txt +++ b/examples/wifi/getting_started/softAP/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "softap_example_main.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/getting_started/station/main/CMakeLists.txt b/examples/wifi/getting_started/station/main/CMakeLists.txt index 2ba044442a..2fe97581a2 100644 --- a/examples/wifi/getting_started/station/main/CMakeLists.txt +++ b/examples/wifi/getting_started/station/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "station_example_main.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/itwt/main/CMakeLists.txt b/examples/wifi/itwt/main/CMakeLists.txt index 18b5561b02..18cf0c4915 100644 --- a/examples/wifi/itwt/main/CMakeLists.txt +++ b/examples/wifi/itwt/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "itwt_main.c" "wifi_stats_cmd.c" "wifi_itwt_cmd.c" + PRIV_REQUIRES lwip esp_wifi esp_timer esp_pm INCLUDE_DIRS ".") diff --git a/examples/wifi/power_save/main/CMakeLists.txt b/examples/wifi/power_save/main/CMakeLists.txt index 8a184368d3..70a283428d 100644 --- a/examples/wifi/power_save/main/CMakeLists.txt +++ b/examples/wifi/power_save/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "power_save.c" "get_ap_info.c" + PRIV_REQUIRES esp_driver_uart vfs esp_wifi esp_pm nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/roaming/roaming_11kvr/main/CMakeLists.txt b/examples/wifi/roaming/roaming_11kvr/main/CMakeLists.txt index c3c5d418da..12259de6ea 100644 --- a/examples/wifi/roaming/roaming_11kvr/main/CMakeLists.txt +++ b/examples/wifi/roaming/roaming_11kvr/main/CMakeLists.txt @@ -1,3 +1,4 @@ # Embed CA, certificate & key directly into binary idf_component_register(SRCS "roaming_example.c" + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/roaming/roaming_app/main/CMakeLists.txt b/examples/wifi/roaming/roaming_app/main/CMakeLists.txt index 22b82c0587..d3f5f2ea70 100644 --- a/examples/wifi/roaming/roaming_app/main/CMakeLists.txt +++ b/examples/wifi/roaming/roaming_app/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "roaming_app_example.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/scan/main/CMakeLists.txt b/examples/wifi/scan/main/CMakeLists.txt index a4c5d04fd7..09b23df1a3 100644 --- a/examples/wifi/scan/main/CMakeLists.txt +++ b/examples/wifi/scan/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "scan.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/smart_config/main/CMakeLists.txt b/examples/wifi/smart_config/main/CMakeLists.txt index 559b60cadb..ec5a3a5748 100644 --- a/examples/wifi/smart_config/main/CMakeLists.txt +++ b/examples/wifi/smart_config/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "smartconfig_main.c" + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/softap_sta/main/CMakeLists.txt b/examples/wifi/softap_sta/main/CMakeLists.txt index 68e80d28cb..6cfb80de3d 100644 --- a/examples/wifi/softap_sta/main/CMakeLists.txt +++ b/examples/wifi/softap_sta/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "softap_sta.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/wifi_aware/nan_publisher/main/CMakeLists.txt b/examples/wifi/wifi_aware/nan_publisher/main/CMakeLists.txt index 297c8de71e..2a89c6fc65 100644 --- a/examples/wifi/wifi_aware/nan_publisher/main/CMakeLists.txt +++ b/examples/wifi/wifi_aware/nan_publisher/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "publisher_main.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/wifi_aware/nan_subscriber/main/CMakeLists.txt b/examples/wifi/wifi_aware/nan_subscriber/main/CMakeLists.txt index 7d6b6a2e07..0fcc159887 100644 --- a/examples/wifi/wifi_aware/nan_subscriber/main/CMakeLists.txt +++ b/examples/wifi/wifi_aware/nan_subscriber/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "subscriber_main.c" + PRIV_REQUIRES esp_wifi nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/wifi_eap_fast/main/CMakeLists.txt b/examples/wifi/wifi_eap_fast/main/CMakeLists.txt index 52efdcebe8..cd8e2a8b3c 100644 --- a/examples/wifi/wifi_eap_fast/main/CMakeLists.txt +++ b/examples/wifi/wifi_eap_fast/main/CMakeLists.txt @@ -1,4 +1,5 @@ # Embed CA, certificate & key directly into binary idf_component_register(SRCS "wifi_eap_fast_main.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash EMBED_TXTFILES ca.pem pac_file.pac) diff --git a/examples/wifi/wifi_easy_connect/dpp-enrollee/main/CMakeLists.txt b/examples/wifi/wifi_easy_connect/dpp-enrollee/main/CMakeLists.txt index 97a762af08..9d85fed0d5 100644 --- a/examples/wifi/wifi_easy_connect/dpp-enrollee/main/CMakeLists.txt +++ b/examples/wifi/wifi_easy_connect/dpp-enrollee/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "dpp_enrollee_main.c" + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/wifi_enterprise/main/CMakeLists.txt b/examples/wifi/wifi_enterprise/main/CMakeLists.txt index 75a028a0dc..b7685d84cc 100644 --- a/examples/wifi/wifi_enterprise/main/CMakeLists.txt +++ b/examples/wifi/wifi_enterprise/main/CMakeLists.txt @@ -1,4 +1,5 @@ # Embed CA, certificate & key directly into binary idf_component_register(SRCS "wifi_enterprise_main.c" INCLUDE_DIRS "." + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash EMBED_TXTFILES ca.pem client.crt client.key) diff --git a/examples/wifi/wps/main/CMakeLists.txt b/examples/wifi/wps/main/CMakeLists.txt index 8801e8f8ca..0bb0e2ba6d 100644 --- a/examples/wifi/wps/main/CMakeLists.txt +++ b/examples/wifi/wps/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "wps.c" + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash INCLUDE_DIRS ".") diff --git a/examples/wifi/wps_softap_registrar/main/CMakeLists.txt b/examples/wifi/wps_softap_registrar/main/CMakeLists.txt index 8801e8f8ca..0bb0e2ba6d 100644 --- a/examples/wifi/wps_softap_registrar/main/CMakeLists.txt +++ b/examples/wifi/wps_softap_registrar/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "wps.c" + PRIV_REQUIRES esp_wifi wpa_supplicant nvs_flash INCLUDE_DIRS ".") diff --git a/examples/zigbee/esp_zigbee_gateway/main/CMakeLists.txt b/examples/zigbee/esp_zigbee_gateway/main/CMakeLists.txt index 5d38bf74f0..907fd70904 100644 --- a/examples/zigbee/esp_zigbee_gateway/main/CMakeLists.txt +++ b/examples/zigbee/esp_zigbee_gateway/main/CMakeLists.txt @@ -1,2 +1,4 @@ idf_component_register(SRCS "esp_zigbee_gateway.c" + PRIV_REQUIRES ieee802154 esp_driver_usb_serial_jtag esp_coex esp_netif + vfs esp_wifi nvs_flash esp_driver_uart INCLUDE_DIRS ".") diff --git a/examples/zigbee/light_sample/HA_on_off_light/main/CMakeLists.txt b/examples/zigbee/light_sample/HA_on_off_light/main/CMakeLists.txt index 15343efb83..77a23b0991 100644 --- a/examples/zigbee/light_sample/HA_on_off_light/main/CMakeLists.txt +++ b/examples/zigbee/light_sample/HA_on_off_light/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register( SRC_DIRS "." "../../../common/zcl_utility/src" INCLUDE_DIRS "." "../../../common/zcl_utility/include" + PRIV_REQUIRES nvs_flash esp_driver_uart ieee802154 ) diff --git a/examples/zigbee/light_sample/HA_on_off_switch/main/CMakeLists.txt b/examples/zigbee/light_sample/HA_on_off_switch/main/CMakeLists.txt index 15343efb83..0f5e4fffb3 100644 --- a/examples/zigbee/light_sample/HA_on_off_switch/main/CMakeLists.txt +++ b/examples/zigbee/light_sample/HA_on_off_switch/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register( SRC_DIRS "." "../../../common/zcl_utility/src" INCLUDE_DIRS "." "../../../common/zcl_utility/include" + PRIV_REQUIRES nvs_flash esp_driver_gpio esp_driver_uart ieee802154 ) diff --git a/tools/test_apps/storage/fatfsgen/main/CMakeLists.txt b/tools/test_apps/storage/fatfsgen/main/CMakeLists.txt index 306e4a14d8..522fe12d05 100644 --- a/tools/test_apps/storage/fatfsgen/main/CMakeLists.txt +++ b/tools/test_apps/storage/fatfsgen/main/CMakeLists.txt @@ -1,5 +1,6 @@ idf_component_register(SRCS "fatfsgen_example_main.c" - INCLUDE_DIRS ".") + PRIV_REQUIRES fatfs vfs + INCLUDE_DIRS ".") # Create a FATFS image from the contents of the 'fatfs_image' directory # that fits the partition named 'storage'. FLASH_IN_PROJECT indicates that