2023-09-26 07:43:43 +02:00
|
|
|
if(NOT CONFIG_ESP_WIFI_ENABLED)
|
2024-04-10 18:51:26 +02:00
|
|
|
set(src_wifi_is_remote esp_wifi_remote.c esp_wifi_with_remote.c esp_wifi_remote_net.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_ESP_WIFI_REMOTE_LIBRARY_EPPP)
|
|
|
|
set(src_wifi_remote_eppp eppp/wifi_remote_rpc_client.cpp eppp/wifi_remote_rpc_server.cpp eppp/eppp_init.c)
|
|
|
|
else()
|
|
|
|
set(src_wifi_remote_weak esp_wifi_remote_weak.c)
|
2023-09-26 07:43:43 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(INCLUDE_DIRS include
|
2024-04-10 18:51:26 +02:00
|
|
|
SRCS ${src_wifi_remote_weak}
|
|
|
|
${src_wifi_remote_eppp}
|
|
|
|
${src_wifi_is_remote}
|
|
|
|
PRIV_INCLUDE_DIRS eppp
|
2023-09-26 07:43:43 +02:00
|
|
|
REQUIRES esp_event esp_netif
|
2024-05-30 20:43:15 +02:00
|
|
|
PRIV_REQUIRES esp_wifi esp-tls vfs)
|
2024-03-04 20:26:02 +01:00
|
|
|
|
|
|
|
idf_component_get_property(wifi esp_wifi COMPONENT_LIB)
|
|
|
|
target_link_libraries(${wifi} PUBLIC ${COMPONENT_LIB})
|