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()
|
|
|
|
|
2019-06-26 01:03:55 +05:30
|
|
|
set(include_dirs include)
|
2024-02-28 13:47:08 +05:30
|
|
|
set(priv_include_dirs proto-c src)
|
2019-06-26 01:03:55 +05:30
|
|
|
set(srcs "src/esp_local_ctrl.c"
|
|
|
|
"src/esp_local_ctrl_handler.c"
|
|
|
|
"proto-c/esp_local_ctrl.pb-c.c")
|
|
|
|
|
|
|
|
if(CONFIG_BT_ENABLED)
|
2023-12-15 11:06:06 +05:30
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
|
2019-06-26 01:03:55 +05:30
|
|
|
list(APPEND srcs
|
|
|
|
"src/esp_local_ctrl_transport_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2022-12-16 16:04:22 +05:30
|
|
|
list(APPEND srcs
|
|
|
|
"src/esp_local_ctrl_transport_httpd.c")
|
2022-04-05 14:31:04 +04:00
|
|
|
|
2019-06-26 01:03:55 +05:30
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS "${include_dirs}"
|
|
|
|
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
|
|
|
REQUIRES protocomm esp_https_server
|
2022-04-05 14:31:04 +04:00
|
|
|
PRIV_REQUIRES protobuf-c)
|
|
|
|
|
|
|
|
idf_component_optional_requires(PRIVATE espressif__mdns mdns)
|