CMakeLists.txt 611 B

123456789101112
  1. if(NOT CONFIG_WS_TRANSPORT AND NOT CMAKE_BUILD_EARLY_EXPANSION)
  2. message(STATUS "Websocket transport is disabled so the esp_websocket_client component will not be built")
  3. # note: the component is still included in the build so it can become visible again in config
  4. # without needing to re-run CMake. However no source or header files are built.
  5. idf_component_register()
  6. return()
  7. endif()
  8. idf_component_register(SRCS "esp_websocket_client.c"
  9. INCLUDE_DIRS "include"
  10. REQUIRES lwip esp-tls tcp_transport nghttp
  11. PRIV_REQUIRES esp_timer)