CMakeLists.txt 849 B

12345678910111213141516171819202122232425262728
  1. set(include_dirs include)
  2. set(priv_include_dirs proto-c src ../protocomm/proto-c)
  3. set(srcs "src/esp_local_ctrl.c"
  4. "src/esp_local_ctrl_handler.c"
  5. "proto-c/esp_local_ctrl.pb-c.c")
  6. if(CONFIG_ESP_HTTPS_SERVER_ENABLE)
  7. list(APPEND srcs
  8. "src/esp_local_ctrl_transport_httpd.c")
  9. endif()
  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. idf_component_register(SRCS "${srcs}"
  17. INCLUDE_DIRS "${include_dirs}"
  18. PRIV_INCLUDE_DIRS "${priv_include_dirs}"
  19. REQUIRES protocomm esp_https_server
  20. PRIV_REQUIRES protobuf-c)
  21. idf_component_optional_requires(PRIVATE espressif__mdns mdns)
  22. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")