CMakeLists.txt 895 B

1234567891011121314151617181920212223242526272829
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. set(include_dirs include)
  6. set(priv_include_dirs proto-c src ../protocomm/proto-c)
  7. set(srcs "src/esp_local_ctrl.c"
  8. "src/esp_local_ctrl_handler.c"
  9. "proto-c/esp_local_ctrl.pb-c.c")
  10. if(CONFIG_BT_ENABLED)
  11. if(CONFIG_BT_BLUEDROID_ENABLED)
  12. list(APPEND srcs
  13. "src/esp_local_ctrl_transport_ble.c")
  14. endif()
  15. endif()
  16. list(APPEND srcs
  17. "src/esp_local_ctrl_transport_httpd.c")
  18. idf_component_register(SRCS "${srcs}"
  19. INCLUDE_DIRS "${include_dirs}"
  20. PRIV_INCLUDE_DIRS "${priv_include_dirs}"
  21. REQUIRES protocomm esp_https_server
  22. PRIV_REQUIRES protobuf-c)
  23. idf_component_optional_requires(PRIVATE espressif__mdns mdns)