Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ repos:
- repo: local
hooks:
- id: commit message scopes
name: "commit message must be scoped with: mdns, dns, modem, websocket, asio, mqtt_cxx, console, common, eppp, tls_cxx, mosq, sockutls, lws, modem_sim"
entry: '\A(?!(feat|fix|ci|bump|test|docs|chore)\((mdns|dns|modem|common|console|websocket|asio|mqtt_cxx|examples|eppp|tls_cxx|mosq|sockutls|lws|modem_sim)\)\:)'
name: "commit message must be scoped with: mdns, dns, modem, websocket, asio, mqtt_cxx, console, common, eppp, tls_cxx, mosq, sockutls, lws, modem_sim, net_connect"
entry: '\A(?!(feat|fix|ci|bump|test|docs|chore)\((mdns|dns|modem|common|console|websocket|asio|mqtt_cxx|examples|eppp|tls_cxx|mosq|sockutls|lws|modem_sim|net_connect)\)\:)'
language: pygrep
args: [--multiline]
stages: [commit-msg]
56 changes: 56 additions & 0 deletions components/net_connect/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
idf_build_get_property(target IDF_TARGET)

if(${target} STREQUAL "linux")
# Header only library for linux

idf_component_register(INCLUDE_DIRS include
SRCS protocol_examples_utils.c)
return()
endif()

set(srcs "stdin_out.c"
"addr_from_stdin.c"
"connect.c"
"wifi_connect.c"
"protocol_examples_utils.c")

if(CONFIG_NET_CONNECT_WIFI)
list(APPEND srcs "wifi_connect_config.c")
endif()

if(CONFIG_NET_CONNECT_PROVIDE_WIFI_CONSOLE_CMD)
list(APPEND srcs "console_cmd.c")
endif()

if(CONFIG_NET_CONNECT_ETHERNET)
list(APPEND srcs "eth_connect.c")
endif()

if(CONFIG_NET_CONNECT_THREAD)
list(APPEND srcs "thread_connect.c")
endif()

if(CONFIG_NET_CONNECT_PPP)
list(APPEND srcs "ppp_connect.c")
endif()


idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "include"
PRIV_REQUIRES esp_netif esp_driver_gpio esp_driver_uart esp_wifi vfs console esp_eth openthread)

if(CONFIG_NET_CONNECT_PROVIDE_WIFI_CONSOLE_CMD)
idf_component_optional_requires(PRIVATE console)
endif()

if(CONFIG_NET_CONNECT_ETHERNET)
idf_component_optional_requires(PUBLIC esp_eth)
endif()

if(CONFIG_NET_CONNECT_THREAD)
idf_component_optional_requires(PRIVATE openthread)
endif()

if(CONFIG_NET_CONNECT_PPP)
idf_component_optional_requires(PRIVATE esp_tinyusb espressif__esp_tinyusb)
endif()
Loading
Loading