mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
examples: use new component registration api
This commit is contained in:
parent
9eccd7c082
commit
6771eead80
@ -1,4 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "esp_websocket_client.c")
|
idf_component_register(SRCS "esp_websocket_client.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
INCLUDE_DIRS "include"
|
||||||
set(COMPONENT_REQUIRES lwip esp-tls tcp_transport nghttp)
|
REQUIRES lwip esp-tls tcp_transport nghttp)
|
||||||
register_component()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
idf_component_register(SRCDIRS "."
|
idf_component_register(SRC_DIRS "."
|
||||||
INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
|
INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
REQUIRES unity test_utils nvs_flash ulp esp_common)
|
REQUIRES unity test_utils nvs_flash ulp esp_common)
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "bt_app_av.c"
|
idf_component_register(SRCS "bt_app_av.c"
|
||||||
"bt_app_core.c"
|
"bt_app_core.c"
|
||||||
"main.c")
|
"main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,6 +1,5 @@
|
|||||||
set(COMPONENT_SRCS "bt_app_av.c"
|
idf_component_register(SRCS "bt_app_av.c"
|
||||||
"bt_app_core.c"
|
"bt_app_core.c"
|
||||||
"main.c")
|
"main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "bt_app_core.c"
|
idf_component_register(SRCS "bt_app_core.c"
|
||||||
"main.c")
|
"main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_bt.c")
|
idf_component_register(SRCS "app_bt.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "ble_compatibility_test.c")
|
idf_component_register(SRCS "ble_compatibility_test.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "esp_eddystone_api.c"
|
idf_component_register(SRCS "esp_eddystone_api.c"
|
||||||
"esp_eddystone_demo.c")
|
"esp_eddystone_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
INCLUDE_DIRS "")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,10 +1,8 @@
|
|||||||
set(COMPONENT_SRCS "ble_hidd_demo_main.c"
|
idf_component_register(SRCS "ble_hidd_demo_main.c"
|
||||||
"esp_hidd_prf_api.c"
|
"esp_hidd_prf_api.c"
|
||||||
"hid_dev.c"
|
"hid_dev.c"
|
||||||
"hid_device_le_prf.c")
|
"hid_device_le_prf.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
|
||||||
if(GCC_NOT_5_2_0)
|
if(GCC_NOT_5_2_0)
|
||||||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "esp_ibeacon_api.c"
|
idf_component_register(SRCS "esp_ibeacon_api.c"
|
||||||
"ibeacon_demo.c")
|
"ibeacon_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "spp_client_demo.c")
|
idf_component_register(SRCS "spp_client_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "ble_spp_server_demo.c")
|
idf_component_register(SRCS "ble_spp_server_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_ble_client_throughput.c")
|
idf_component_register(SRCS "example_ble_client_throughput.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_ble_server_throughput.c")
|
idf_component_register(SRCS "example_ble_server_throughput.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "blufi_example_main.c"
|
idf_component_register(SRCS "blufi_example_main.c"
|
||||||
"blufi_security.c")
|
"blufi_security.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "bt_discovery.c")
|
idf_component_register(SRCS "bt_discovery.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_spp_acceptor_demo.c")
|
idf_component_register(SRCS "example_spp_acceptor_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_spp_initiator_demo.c")
|
idf_component_register(SRCS "example_spp_initiator_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "example_spp_vfs_acceptor_demo.c"
|
idf_component_register(SRCS "example_spp_vfs_acceptor_demo.c"
|
||||||
"spp_task.c")
|
"spp_task.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "example_spp_vfs_initiator_demo.c"
|
idf_component_register(SRCS "example_spp_vfs_initiator_demo.c"
|
||||||
"spp_task.c")
|
"spp_task.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "controller_hci_uart_demo.c")
|
idf_component_register(SRCS "controller_hci_uart_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "gattc_demo.c")
|
idf_component_register(SRCS "gattc_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_ble_sec_gattc_demo.c")
|
idf_component_register(SRCS "example_ble_sec_gattc_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "example_ble_sec_gatts_demo.c")
|
idf_component_register(SRCS "example_ble_sec_gatts_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "gatts_demo.c")
|
idf_component_register(SRCS "gatts_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "gatts_table_creat_demo.c")
|
idf_component_register(SRCS "gatts_table_creat_demo.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "gattc_multi_connect.c")
|
idf_component_register(SRCS "gattc_multi_connect.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,9 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "main.cpp")
|
idf_component_register(SRCS "main.cpp"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS "."
|
||||||
|
EMBED_TXTFILES "sample.xml")
|
||||||
set(COMPONENT_EMBED_TXTFILES "sample.xml")
|
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
|
||||||
# Build static library, do not build test executables
|
# Build static library, do not build test executables
|
||||||
option(BUILD_SHARED_LIBS OFF)
|
option(BUILD_SHARED_LIBS OFF)
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "connect.c"
|
idf_component_register(SRCS "connect.c" "stdin_out.c"
|
||||||
"stdin_out.c")
|
INCLUDE_DIRS "include")
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,6 +1,2 @@
|
|||||||
|
idf_component_register(SRCS "eth2ap_example_main.c"
|
||||||
set(COMPONENT_SRCS "eth2ap_example_main.c")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "ethernet_example_main.c")
|
idf_component_register(SRCS "ethernet_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "cmd_ethernet.c"
|
idf_component_register(SRCS "cmd_ethernet.c"
|
||||||
"iperf_example_main.c")
|
"iperf_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "blink.c")
|
idf_component_register(SRCS "blink.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "hello_world_main.c")
|
idf_component_register(SRCS "hello_world_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
INCLUDE_DIRS "")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "mesh_light.c"
|
idf_component_register(SRCS "mesh_light.c"
|
||||||
"mesh_main.c")
|
"mesh_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
INCLUDE_DIRS "." "include")
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "mesh_light.c"
|
idf_component_register(SRCS "mesh_light.c"
|
||||||
"mesh_main.c")
|
"mesh_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "." "include")
|
INCLUDE_DIRS "." "include")
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "adc1_example_main.c")
|
idf_component_register(SRCS "adc1_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "adc2_example_main.c")
|
idf_component_register(SRCS "adc2_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "can_alert_and_recovery_example_main.c")
|
idf_component_register(SRCS "can_alert_and_recovery_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "can_network_example_listen_only_main.c")
|
idf_component_register(SRCS "can_network_example_listen_only_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "can_network_example_master_main.c")
|
idf_component_register(SRCS "can_network_example_master_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "can_network_example_slave_main.c")
|
idf_component_register(SRCS "can_network_example_slave_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "can_self_test_example_main.c")
|
idf_component_register(SRCS "can_self_test_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "gpio_example_main.c")
|
idf_component_register(SRCS "gpio_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "i2c_example_main.c")
|
idf_component_register(SRCS "i2c_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "i2ctools_example_main.c"
|
idf_component_register(SRCS "i2ctools_example_main.c"
|
||||||
"cmd_i2ctools.c")
|
"cmd_i2ctools.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "i2s_example_main.c")
|
idf_component_register(SRCS "i2s_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "ledc_example_main.c")
|
idf_component_register(SRCS "ledc_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "mcpwm_basic_config_example.c")
|
idf_component_register(SRCS "mcpwm_basic_config_example.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "mcpwm_bldc_control_hall_sensor_example.c")
|
idf_component_register(SRCS "mcpwm_bldc_control_hall_sensor_example.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "mcpwm_brushed_dc_control_example.c")
|
idf_component_register(SRCS "mcpwm_brushed_dc_control_example.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "mcpwm_servo_control_example.c")
|
idf_component_register(SRCS "mcpwm_servo_control_example.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "pcnt_example_main.c")
|
idf_component_register(SRCS "pcnt_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "infrared_nec_main.c")
|
idf_component_register(SRCS "infrared_nec_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "rmt_tx_main.c")
|
idf_component_register(SRCS "rmt_tx_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,6 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "esp_slave.c")
|
idf_component_register(SRCS "esp_slave.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
INCLUDE_DIRS "include"
|
||||||
|
REQUIRES driver sdmmc)
|
||||||
set(COMPONENT_REQUIRES driver sdmmc)
|
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "sigmadelta_example_main.c")
|
idf_component_register(SRCS "sigmadelta_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,9 +1,5 @@
|
|||||||
set(COMPONENT_SRCS "decode_image.c"
|
idf_component_register(SRCS "decode_image.c"
|
||||||
"pretty_effect.c"
|
"pretty_effect.c"
|
||||||
"spi_master_example_main.c")
|
"spi_master_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS "."
|
||||||
|
EMBED_FILES image.jpg)
|
||||||
|
|
||||||
set(COMPONENT_EMBED_FILES image.jpg)
|
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "timer_group_example_main.c")
|
idf_component_register(SRCS "timer_group_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "tp_interrupt_main.c")
|
idf_component_register(SRCS "tp_interrupt_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "tp_read_main.c")
|
idf_component_register(SRCS "tp_read_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "nmea_parser_example_main.c"
|
idf_component_register(SRCS "nmea_parser_example_main.c"
|
||||||
"nmea_parser.c")
|
"nmea_parser.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "uart_async_rxtxtasks_main.c")
|
idf_component_register(SRCS "uart_async_rxtxtasks_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "uart_echo_example_main.c")
|
idf_component_register(SRCS "uart_echo_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "rs485_example.c")
|
idf_component_register(SRCS "rs485_example.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "uart_events_example_main.c")
|
idf_component_register(SRCS "uart_events_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "uart_select_example_main.c")
|
idf_component_register(SRCS "uart_select_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "chat_client.cpp")
|
idf_component_register(SRCS "chat_client.cpp"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "chat_server.cpp")
|
idf_component_register(SRCS "chat_server.cpp"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "echo_server.cpp")
|
idf_component_register(SRCS "echo_server.cpp"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "udp_echo_server.cpp")
|
idf_component_register(SRCS "udp_echo_server.cpp"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "coap_client_example_main.c")
|
idf_component_register(SRCS "coap_client_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "coap_server_example_main.c")
|
idf_component_register(SRCS "coap_server_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,10 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "esp_http_client_example.c")
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
|
||||||
|
|
||||||
# Embed the server root certificate into the final binary
|
# Embed the server root certificate into the final binary
|
||||||
#
|
#
|
||||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||||
set(COMPONENT_EMBED_TXTFILES howsmyssl_com_root_cert.pem)
|
idf_component_register(SRCS "esp_http_client_example.c"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
EMBED_TXTFILES howsmyssl_com_root_cert.pem)
|
@ -1,8 +1,4 @@
|
|||||||
set(COMPONENT_ADD_INCLUDEDIRS .)
|
idf_component_register(SRCS "sh2lib.c"
|
||||||
|
INCLUDE_DIRS .
|
||||||
set(COMPONENT_SRCS "sh2lib.c")
|
REQUIRES nghttp
|
||||||
|
PRIV_REQUIRES lwip esp-tls)
|
||||||
set(COMPONENT_REQUIRES nghttp)
|
|
||||||
set(COMPONENT_PRIV_REQUIRES lwip esp-tls)
|
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "http2_request_example_main.c")
|
idf_component_register(SRCS "http2_request_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "http_request_example_main.c")
|
idf_component_register(SRCS "http_request_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "main.c"
|
idf_component_register(SRCS "main.c"
|
||||||
"tests.c")
|
"tests.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
INCLUDE_DIRS "." "include")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,6 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "main.c" "file_server.c")
|
idf_component_register(SRCS "main.c" "file_server.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS "."
|
||||||
|
EMBED_FILES "favicon.ico" "upload_script.html")
|
||||||
set(COMPONENT_EMBED_FILES "favicon.ico" "upload_script.html")
|
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "main.c")
|
idf_component_register(SRCS "main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,7 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "esp_rest_main.c" "rest_server.c")
|
idf_component_register(SRCS "esp_rest_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
"rest_server.c"
|
||||||
|
INCLUDE_DIRS ".")
|
||||||
register_component()
|
|
||||||
|
|
||||||
if(CONFIG_EXAMPLE_WEB_DEPLOY_SF)
|
if(CONFIG_EXAMPLE_WEB_DEPLOY_SF)
|
||||||
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../front/web-demo")
|
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../front/web-demo")
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "main.c")
|
idf_component_register(SRCS "main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,10 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "https_mbedtls_example_main.c")
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
|
||||||
|
|
||||||
# Embed the server root certificate into the final binary
|
# Embed the server root certificate into the final binary
|
||||||
#
|
#
|
||||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||||
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
|
idf_component_register(SRCS "https_mbedtls_example_main.c"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
EMBED_TXTFILES server_root_cert.pem)
|
@ -1,10 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "https_request_example_main.c")
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
|
||||||
|
|
||||||
# Embed the server root certificate into the final binary
|
# Embed the server root certificate into the final binary
|
||||||
#
|
#
|
||||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||||
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
|
idf_component_register(SRCS "https_request_example_main.c"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
EMBED_TXTFILES server_root_cert.pem)
|
@ -1,8 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "main.c")
|
idf_component_register(SRCS "main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS "."
|
||||||
|
EMBED_TXTFILES "certs/cacert.pem"
|
||||||
set(COMPONENT_EMBED_TXTFILES
|
"certs/prvtkey.pem")
|
||||||
"certs/cacert.pem"
|
|
||||||
"certs/prvtkey.pem")
|
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "mdns_example_main.c")
|
idf_component_register(SRCS "mdns_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,6 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "sense_main.c"
|
idf_component_register(SRCS "sense_main.c"
|
||||||
"sense_modbus.c"
|
"sense_modbus.c"
|
||||||
"device_params.c")
|
"device_params.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "." "include")
|
INCLUDE_DIRS "." "include")
|
||||||
|
|
||||||
register_component()
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
set(COMPONENT_SRCS "freemodbus.c"
|
idf_component_register(SRCS "freemodbus.c"
|
||||||
"deviceparams.c")
|
"deviceparams.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "publish_test.c")
|
idf_component_register(SRCS "publish_test.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "app_main.c")
|
idf_component_register(SRCS "app_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
@ -1,4 +1,2 @@
|
|||||||
set(COMPONENT_SRCS "openssl_client_example_main.c")
|
idf_component_register(SRCS "openssl_client_example_main.c"
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
register_component()
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user