mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
test, examples: use new component registration function
This commit is contained in:
parent
bd827a4d2f
commit
4d9c573fb6
@ -1,5 +1,3 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_PRIV_INCLUDEDIRS "../private_include" ".")
|
||||
set(COMPONENT_PRIV_REQUIRES unity test_utils esp_netif nvs_flash)
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRC_DIRS "."
|
||||
INCLUDE_DIRS "../private_include" "."
|
||||
PRIV_REQUIRES unity test_utils esp_netif nvs_flash)
|
@ -1,7 +1,3 @@
|
||||
set(COMPONENT_SRCDIRS
|
||||
"."
|
||||
)
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
set(COMPONENT_REQUIRES unity xtensa perfmon)
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRC_DIRS "."
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES unity xtensa perfmon)
|
||||
|
@ -1,5 +1,3 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_PRIV_INCLUDEDIRS "../private_include" ".")
|
||||
set(COMPONENT_PRIV_REQUIRES unity test_utils tcp_transport)
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRC_DIRS "."
|
||||
INCLUDE_DIRS "../private_include" "."
|
||||
PRIV_REQUIRES unity test_utils tcp_transport)
|
@ -1,5 +1,2 @@
|
||||
set(COMPONENT_SRCS "ble_ancs_demo.c"
|
||||
"ble_ancs.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "ble_ancs_demo.c" "ble_ancs.c"
|
||||
INCLUDE_DIRS ".")
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "gattc_gatts_coex.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "gattc_gatts_coex.c"
|
||||
INCLUDE_DIRS ".")
|
@ -1,12 +1,11 @@
|
||||
set(COMPONENT_SRCS "ble_unit.c"
|
||||
set(srcs "ble_unit.c"
|
||||
"run_tc.c"
|
||||
"sync.c"
|
||||
"test_env.c"
|
||||
"wifi_connect.c"
|
||||
"wifi_unit.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS .)
|
||||
|
||||
set(COMPONENT_REQUIRES console nvs_flash bt)
|
||||
set(SUPPORTED_TARGETS esp32)
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES console nvs_flash bt
|
||||
REQUIRED_IDF_TARGETS esp32)
|
||||
|
@ -1,6 +1,3 @@
|
||||
set(COMPONENT_SRCS "main.c"
|
||||
"coex_cmd.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
set(SUPPORTED_TARGETS esp32)
|
||||
register_component()
|
||||
idf_component_register(SRCS "main.c" "coex_cmd.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRED_IDF_TARGETS esp32)
|
@ -1,13 +1,12 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_adapter.c"
|
||||
"ble_mesh_cfg_srv_model.c"
|
||||
"ble_mesh_console_lib.c"
|
||||
"ble_mesh_console_main.c"
|
||||
"ble_mesh_console_system.c"
|
||||
"ble_mesh_register_node_cmd.c"
|
||||
"ble_mesh_register_server_cmd.c"
|
||||
"ble_mesh_reg_gen_onoff_client_cmd.c"
|
||||
"register_bluetooth.c")
|
||||
set(srcs "ble_mesh_adapter.c"
|
||||
"ble_mesh_cfg_srv_model.c"
|
||||
"ble_mesh_console_lib.c"
|
||||
"ble_mesh_console_main.c"
|
||||
"ble_mesh_console_system.c"
|
||||
"ble_mesh_register_node_cmd.c"
|
||||
"ble_mesh_register_server_cmd.c"
|
||||
"ble_mesh_reg_gen_onoff_client_cmd.c"
|
||||
"register_bluetooth.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,16 +1,15 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_adapter.c"
|
||||
"transaction.c"
|
||||
"ble_mesh_cfg_srv_model.c"
|
||||
"ble_mesh_console_lib.c"
|
||||
"ble_mesh_console_main.c"
|
||||
"ble_mesh_console_system.c"
|
||||
"ble_mesh_reg_cfg_client_cmd.c"
|
||||
"ble_mesh_reg_gen_onoff_client_cmd.c"
|
||||
"ble_mesh_reg_test_perf_client_cmd.c"
|
||||
"ble_mesh_register_node_cmd.c"
|
||||
"ble_mesh_register_provisioner_cmd.c"
|
||||
"register_bluetooth.c")
|
||||
set(srcs "ble_mesh_adapter.c"
|
||||
"transaction.c"
|
||||
"ble_mesh_cfg_srv_model.c"
|
||||
"ble_mesh_console_lib.c"
|
||||
"ble_mesh_console_main.c"
|
||||
"ble_mesh_console_system.c"
|
||||
"ble_mesh_reg_cfg_client_cmd.c"
|
||||
"ble_mesh_reg_gen_onoff_client_cmd.c"
|
||||
"ble_mesh_reg_test_perf_client_cmd.c"
|
||||
"ble_mesh_register_node_cmd.c"
|
||||
"ble_mesh_register_provisioner_cmd.c"
|
||||
"register_bluetooth.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,6 +1,3 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,7 +1,2 @@
|
||||
|
||||
set(COMPONENT_SRCS "button.c"
|
||||
"button_obj.cpp")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "button.c" "button_obj.cpp"
|
||||
INCLUDE_DIRS "." "include")
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,6 +1,5 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,7 +1,3 @@
|
||||
|
||||
set(COMPONENT_SRCS "button.c"
|
||||
"button_obj.cpp")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "button.c" "button_obj.cpp"
|
||||
INCLUDE_DIRS "." "include")
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,8 +1,3 @@
|
||||
set(COMPONENT_SRCS "cmd_wifi.c"
|
||||
"iperf.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS .)
|
||||
|
||||
set(COMPONENT_REQUIRES lwip console)
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "cmd_wifi.c" "iperf.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES lwip console)
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
set(srcs "ble_mesh_demo_main.c"
|
||||
"ble_mesh_demo_init.c"
|
||||
"board.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,9 +1,7 @@
|
||||
set(COMPONENT_SRCS "esp_fast_prov_client_model.c"
|
||||
"esp_fast_prov_server_model.c"
|
||||
"esp_fast_prov_operation.c")
|
||||
set(srcs "esp_fast_prov_client_model.c"
|
||||
"esp_fast_prov_server_model.c"
|
||||
"esp_fast_prov_operation.c")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
set(COMPONENT_REQUIRES bt)
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES bt)
|
||||
|
@ -1,3 +1 @@
|
||||
set(COMPONENT_SRCS "main.c")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "main.c")
|
||||
|
@ -1,6 +1,2 @@
|
||||
set(COMPONENT_SRCS "main.c"
|
||||
"misc.c"
|
||||
"peer.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "main.c" "misc.c" "peer.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,5 +1,2 @@
|
||||
set(COMPONENT_SRCS "main.c"
|
||||
"gatt_svr.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "main.c" "gatt_svr.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "app_mesh.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "app_mesh.c"
|
||||
INCLUDE_DIRS ".")
|
@ -1,7 +1,7 @@
|
||||
set(COMPONENT_SRCS "main.c"
|
||||
"gatt_svr.c"
|
||||
"misc.c"
|
||||
"scli.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
set(srcs "main.c"
|
||||
"gatt_svr.c"
|
||||
"misc.c"
|
||||
"scli.c")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "temp_sensor_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "temp_sensor_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,8 +1,3 @@
|
||||
set(COMPONENT_SRCS "app_main.c" "esp_local_ctrl_service.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
set(COMPONENT_EMBED_TXTFILES
|
||||
"certs/cacert.pem"
|
||||
"certs/prvtkey.pem")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "app_main.c" "esp_local_ctrl_service.c"
|
||||
INCLUDE_DIRS "."
|
||||
EMBED_TXTFILES "certs/cacert.pem" "certs/prvtkey.pem")
|
||||
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "https_x509_bundle_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "https_x509_bundle_example_main.c"
|
||||
INCLUDE_DIRS ".")
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "app_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "flash_encrypt_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "flash_encrypt_main.c"
|
||||
INCLUDE_DIRS ".")
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "perfmon_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "perfmon_example_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -1,4 +1,2 @@
|
||||
set(COMPONENT_SRCS "secure_boot_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||
|
||||
register_component()
|
||||
idf_component_register(SRCS "secure_boot_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
Loading…
Reference in New Issue
Block a user