2023-08-28 14:02:08 +08:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2024-11-06 15:17:31 +08:00
|
|
|
if( NOT CONFIG_ESP_WIFI_ENABLED
|
|
|
|
AND NOT CONFIG_ESP_HOST_WIFI_ENABLED
|
|
|
|
AND NOT CMAKE_BUILD_EARLY_EXPANSION )
|
|
|
|
# This component provides only "esp_provisioning" headers if WiFi not enabled
|
|
|
|
# (implementation supported optionally in a managed component esp_wifi_remote)
|
|
|
|
idf_component_register(INCLUDE_DIRS include)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2019-04-28 15:38:23 +08:00
|
|
|
set(srcs "src/wifi_config.c"
|
2019-04-23 12:18:28 +05:30
|
|
|
"src/wifi_scan.c"
|
2022-10-18 00:02:06 +05:30
|
|
|
"src/wifi_ctrl.c"
|
2019-04-28 15:38:23 +08:00
|
|
|
"src/manager.c"
|
|
|
|
"src/handlers.c"
|
|
|
|
"src/scheme_console.c"
|
|
|
|
"proto-c/wifi_config.pb-c.c"
|
2019-04-23 12:18:28 +05:30
|
|
|
"proto-c/wifi_scan.pb-c.c"
|
2022-10-18 00:02:06 +05:30
|
|
|
"proto-c/wifi_ctrl.pb-c.c"
|
2019-04-28 15:38:23 +08:00
|
|
|
"proto-c/wifi_constants.pb-c.c")
|
2019-04-16 17:14:10 +05:30
|
|
|
|
2021-04-07 15:04:51 +08:00
|
|
|
if(CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
|
|
|
|
list(APPEND srcs "src/scheme_softap.c")
|
|
|
|
endif()
|
|
|
|
|
2019-04-16 17:14:10 +05:30
|
|
|
if(CONFIG_BT_ENABLED)
|
2019-07-02 14:20:10 +08:00
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
|
2019-04-28 15:38:23 +08:00
|
|
|
list(APPEND srcs
|
2019-04-16 17:14:10 +05:30
|
|
|
"src/scheme_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
2018-07-30 21:39:00 +05:30
|
|
|
|
2019-04-28 15:38:23 +08:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS include
|
2024-02-28 13:47:08 +05:30
|
|
|
PRIV_INCLUDE_DIRS src proto-c
|
2019-04-28 15:38:23 +08:00
|
|
|
REQUIRES lwip protocomm
|
2022-05-11 16:01:48 +02:00
|
|
|
PRIV_REQUIRES protobuf-c bt json esp_timer esp_wifi)
|