examples: use new component registration api

This commit is contained in:
Renz Christian Bagaporo 2019-04-28 15:38:46 +08:00
parent 9eccd7c082
commit 6771eead80
169 changed files with 409 additions and 788 deletions

View file

@ -1,4 +1,3 @@
set(COMPONENT_SRCS "esp_websocket_client.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES lwip esp-tls tcp_transport nghttp)
register_component()
idf_component_register(SRCS "esp_websocket_client.c"
INCLUDE_DIRS "include"
REQUIRES lwip esp-tls tcp_transport nghttp)

View file

@ -1,4 +1,4 @@
idf_component_register(SRCDIRS "."
idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
REQUIRES unity test_utils nvs_flash ulp esp_common)

View file

@ -1,6 +1,4 @@
set(COMPONENT_SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c"
INCLUDE_DIRS ".")

View file

@ -1,6 +1,5 @@
set(COMPONENT_SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
idf_component_register(SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c"
INCLUDE_DIRS ".")
register_component()

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "bt_app_core.c"
"main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "app_bt.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "app_bt.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "ble_compatibility_test.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "ble_compatibility_test.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "esp_eddystone_api.c"
"esp_eddystone_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
register_component()
idf_component_register(SRCS "esp_eddystone_api.c"
"esp_eddystone_demo.c"
INCLUDE_DIRS "")

View file

@ -1,10 +1,8 @@
set(COMPONENT_SRCS "ble_hidd_demo_main.c"
"esp_hidd_prf_api.c"
"hid_dev.c"
"hid_device_le_prf.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "ble_hidd_demo_main.c"
"esp_hidd_prf_api.c"
"hid_dev.c"
"hid_device_le_prf.c"
INCLUDE_DIRS ".")
if(GCC_NOT_5_2_0)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "esp_ibeacon_api.c"
"ibeacon_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "esp_ibeacon_api.c"
"ibeacon_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "spp_client_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "spp_client_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "ble_spp_server_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "ble_spp_server_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_ble_client_throughput.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_ble_client_throughput.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_ble_server_throughput.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_ble_server_throughput.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "blufi_example_main.c"
"blufi_security.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "blufi_example_main.c"
"blufi_security.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "bt_discovery.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "bt_discovery.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_spp_acceptor_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_spp_acceptor_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_spp_initiator_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_spp_initiator_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "example_spp_vfs_acceptor_demo.c"
"spp_task.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_spp_vfs_acceptor_demo.c"
"spp_task.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "example_spp_vfs_initiator_demo.c"
"spp_task.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_spp_vfs_initiator_demo.c"
"spp_task.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "controller_hci_uart_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "controller_hci_uart_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "gattc_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "gattc_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_ble_sec_gattc_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_ble_sec_gattc_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "example_ble_sec_gatts_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "example_ble_sec_gatts_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "gatts_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "gatts_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "gatts_table_creat_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "gatts_table_creat_demo.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "gattc_multi_connect.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "gattc_multi_connect.c"
INCLUDE_DIRS ".")

View file

@ -1,9 +1,6 @@
set(COMPONENT_SRCS "main.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_EMBED_TXTFILES "sample.xml")
register_component()
idf_component_register(SRCS "main.cpp"
INCLUDE_DIRS "."
EMBED_TXTFILES "sample.xml")
# Build static library, do not build test executables
option(BUILD_SHARED_LIBS OFF)

View file

@ -1,5 +1,2 @@
set(COMPONENT_SRCS "connect.c"
"stdin_out.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
register_component()
idf_component_register(SRCS "connect.c" "stdin_out.c"
INCLUDE_DIRS "include")

View file

@ -1,6 +1,2 @@
set(COMPONENT_SRCS "eth2ap_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "eth2ap_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "ethernet_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "ethernet_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "cmd_ethernet.c"
"iperf_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "cmd_ethernet.c"
"iperf_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "blink.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "blink.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "hello_world_main.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
register_component()
idf_component_register(SRCS "hello_world_main.c"
INCLUDE_DIRS "")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "mesh_light.c"
"mesh_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ". include")
register_component()
idf_component_register(SRCS "mesh_light.c"
"mesh_main.c"
INCLUDE_DIRS "." "include")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "mesh_light.c"
"mesh_main.c")
set(COMPONENT_ADD_INCLUDEDIRS "." "include")
register_component()
idf_component_register(SRCS "mesh_light.c"
"mesh_main.c"
INCLUDE_DIRS "." "include")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "adc1_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "adc1_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "adc2_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "adc2_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "can_alert_and_recovery_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "can_alert_and_recovery_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "can_network_example_listen_only_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "can_network_example_listen_only_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "can_network_example_master_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "can_network_example_master_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "can_network_example_slave_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "can_network_example_slave_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "can_self_test_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "can_self_test_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "gpio_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "gpio_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "i2c_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "i2c_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "i2ctools_example_main.c"
"cmd_i2ctools.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "i2ctools_example_main.c"
"cmd_i2ctools.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "i2s_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "i2s_example_main.c"
INCLUDE_DIRS ".")

View file

@ -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 ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "ledc_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "ledc_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "mcpwm_basic_config_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "mcpwm_basic_config_example.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "mcpwm_bldc_control_hall_sensor_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "mcpwm_bldc_control_hall_sensor_example.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "mcpwm_brushed_dc_control_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "mcpwm_brushed_dc_control_example.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "mcpwm_servo_control_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "mcpwm_servo_control_example.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "pcnt_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "pcnt_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "infrared_nec_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "infrared_nec_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "rmt_tx_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "rmt_tx_main.c"
INCLUDE_DIRS ".")

View file

@ -1,6 +1,3 @@
set(COMPONENT_SRCS "esp_slave.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES driver sdmmc)
register_component()
idf_component_register(SRCS "esp_slave.c"
INCLUDE_DIRS "include"
REQUIRES driver sdmmc)

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "sigmadelta_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "sigmadelta_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,9 +1,5 @@
set(COMPONENT_SRCS "decode_image.c"
"pretty_effect.c"
"spi_master_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_EMBED_FILES image.jpg)
register_component()
idf_component_register(SRCS "decode_image.c"
"pretty_effect.c"
"spi_master_example_main.c"
INCLUDE_DIRS "."
EMBED_FILES image.jpg)

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "timer_group_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "timer_group_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "tp_interrupt_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "tp_interrupt_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "tp_read_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "tp_read_main.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "nmea_parser_example_main.c"
"nmea_parser.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "nmea_parser_example_main.c"
"nmea_parser.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "uart_async_rxtxtasks_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "uart_async_rxtxtasks_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "uart_echo_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "uart_echo_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "rs485_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "rs485_example.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "uart_events_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "uart_events_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "uart_select_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "uart_select_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "chat_client.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "chat_client.cpp"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "chat_server.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "chat_server.cpp"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "echo_server.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "echo_server.cpp"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "udp_echo_server.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "udp_echo_server.cpp"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "coap_client_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "coap_client_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "coap_server_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "coap_server_example_main.c"
INCLUDE_DIRS ".")

View file

@ -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
#
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
set(COMPONENT_EMBED_TXTFILES howsmyssl_com_root_cert.pem)
register_component()
idf_component_register(SRCS "esp_http_client_example.c"
INCLUDE_DIRS "."
EMBED_TXTFILES howsmyssl_com_root_cert.pem)

View file

@ -1,8 +1,4 @@
set(COMPONENT_ADD_INCLUDEDIRS .)
set(COMPONENT_SRCS "sh2lib.c")
set(COMPONENT_REQUIRES nghttp)
set(COMPONENT_PRIV_REQUIRES lwip esp-tls)
register_component()
idf_component_register(SRCS "sh2lib.c"
INCLUDE_DIRS .
REQUIRES nghttp
PRIV_REQUIRES lwip esp-tls)

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "http2_request_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "http2_request_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "http_request_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "http_request_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "main.c"
"tests.c")
set(COMPONENT_ADD_INCLUDEDIRS ". include")
register_component()
idf_component_register(SRCS "main.c"
"tests.c"
INCLUDE_DIRS "." "include")

View file

@ -1,6 +1,3 @@
set(COMPONENT_SRCS "main.c" "file_server.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_EMBED_FILES "favicon.ico" "upload_script.html")
register_component()
idf_component_register(SRCS "main.c" "file_server.c"
INCLUDE_DIRS "."
EMBED_FILES "favicon.ico" "upload_script.html")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "main.c"
INCLUDE_DIRS ".")

View file

@ -1,7 +1,6 @@
set(COMPONENT_SRCS "esp_rest_main.c" "rest_server.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "esp_rest_main.c"
"rest_server.c"
INCLUDE_DIRS ".")
if(CONFIG_EXAMPLE_WEB_DEPLOY_SF)
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../front/web-demo")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "main.c"
INCLUDE_DIRS ".")

View file

@ -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
#
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
register_component()
idf_component_register(SRCS "https_mbedtls_example_main.c"
INCLUDE_DIRS "."
EMBED_TXTFILES server_root_cert.pem)

View file

@ -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
#
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
register_component()
idf_component_register(SRCS "https_request_example_main.c"
INCLUDE_DIRS "."
EMBED_TXTFILES server_root_cert.pem)

View file

@ -1,8 +1,4 @@
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_EMBED_TXTFILES
"certs/cacert.pem"
"certs/prvtkey.pem")
register_component()
idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
EMBED_TXTFILES "certs/cacert.pem"
"certs/prvtkey.pem")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "mdns_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "mdns_example_main.c"
INCLUDE_DIRS ".")

View file

@ -1,6 +1,4 @@
set(COMPONENT_SRCS "sense_main.c"
"sense_modbus.c"
"device_params.c")
set(COMPONENT_ADD_INCLUDEDIRS "." "include")
register_component()
idf_component_register(SRCS "sense_main.c"
"sense_modbus.c"
"device_params.c"
INCLUDE_DIRS "." "include")

View file

@ -1,5 +1,3 @@
set(COMPONENT_SRCS "freemodbus.c"
"deviceparams.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "freemodbus.c"
"deviceparams.c"
INCLUDE_DIRS ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "publish_test.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "publish_test.c"
INCLUDE_DIRS ".")

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -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 ".")

View file

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "openssl_client_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "openssl_client_example_main.c"
INCLUDE_DIRS ".")

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