2019-06-25 15:33:55 -04:00
|
|
|
set(include_dirs include)
|
|
|
|
set(priv_include_dirs proto-c src ../protocomm/proto-c)
|
|
|
|
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)
|
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED)
|
|
|
|
list(APPEND srcs
|
|
|
|
"src/esp_local_ctrl_transport_ble.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2022-12-16 05:34:22 -05:00
|
|
|
list(APPEND srcs
|
|
|
|
"src/esp_local_ctrl_transport_httpd.c")
|
2022-04-05 06:31:04 -04:00
|
|
|
|
2019-06-25 15:33:55 -04:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS "${include_dirs}"
|
|
|
|
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
|
|
|
REQUIRES protocomm esp_https_server
|
2022-04-05 06:31:04 -04:00
|
|
|
PRIV_REQUIRES protobuf-c)
|
|
|
|
|
|
|
|
idf_component_optional_requires(PRIVATE espressif__mdns mdns)
|
2022-01-31 13:45:31 -05:00
|
|
|
|
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|