1set(include_dirs include)
2set(priv_include_dirs proto-c src ../protocomm/proto-c)
3set(srcs  "src/esp_local_ctrl.c"
4          "src/esp_local_ctrl_handler.c"
5          "proto-c/esp_local_ctrl.pb-c.c")
6
7if(CONFIG_ESP_HTTPS_SERVER_ENABLE)
8    list(APPEND srcs
9         "src/esp_local_ctrl_transport_httpd.c")
10endif()
11
12if(CONFIG_BT_ENABLED)
13    if(CONFIG_BT_BLUEDROID_ENABLED)
14        list(APPEND srcs
15             "src/esp_local_ctrl_transport_ble.c")
16    endif()
17endif()
18
19idf_component_register(SRCS "${srcs}"
20                    INCLUDE_DIRS "${include_dirs}"
21                    PRIV_INCLUDE_DIRS "${priv_include_dirs}"
22                    REQUIRES protocomm esp_https_server
23                    PRIV_REQUIRES protobuf-c mdns)
24