2019-04-28 07:38:23 +00:00
|
|
|
set(srcs "src/wifi_config.c"
|
2019-04-23 06:48:28 +00:00
|
|
|
"src/wifi_scan.c"
|
2019-04-28 07:38:23 +00:00
|
|
|
"src/manager.c"
|
|
|
|
"src/handlers.c"
|
|
|
|
"src/scheme_softap.c"
|
|
|
|
"src/scheme_console.c"
|
|
|
|
"proto-c/wifi_config.pb-c.c"
|
2019-04-23 06:48:28 +00:00
|
|
|
"proto-c/wifi_scan.pb-c.c"
|
2019-04-28 07:38:23 +00:00
|
|
|
"proto-c/wifi_constants.pb-c.c")
|
2019-04-16 11:44:10 +00:00
|
|
|
|
|
|
|
if(CONFIG_BT_ENABLED)
|
2019-07-02 06:20:10 +00:00
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
|
2019-04-28 07:38:23 +00:00
|
|
|
list(APPEND srcs
|
2019-04-16 11:44:10 +00:00
|
|
|
"src/scheme_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
2018-07-30 16:09:00 +00:00
|
|
|
|
2019-04-28 07:38:23 +00:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c
|
|
|
|
REQUIRES lwip protocomm
|
2020-02-06 06:00:18 +00:00
|
|
|
PRIV_REQUIRES protobuf-c bt mdns json esp_timer)
|
2019-09-03 05:12:58 +00:00
|
|
|
|
|
|
|
# To avoid warning for strncpy
|
|
|
|
set_source_files_properties(src/handlers.c src/scheme_softap.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-stringop-truncation
|
|
|
|
)
|