CMakeLists.txt 988 B

123456789101112131415161718192021222324252627282930313233
  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(srcs "src/wifi_config.c"
  6. "src/wifi_scan.c"
  7. "src/wifi_ctrl.c"
  8. "src/manager.c"
  9. "src/handlers.c"
  10. "src/scheme_console.c"
  11. "proto-c/wifi_config.pb-c.c"
  12. "proto-c/wifi_scan.pb-c.c"
  13. "proto-c/wifi_ctrl.pb-c.c"
  14. "proto-c/wifi_constants.pb-c.c")
  15. if(CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
  16. list(APPEND srcs "src/scheme_softap.c")
  17. endif()
  18. if(CONFIG_BT_ENABLED)
  19. if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
  20. list(APPEND srcs
  21. "src/scheme_ble.c")
  22. endif()
  23. endif()
  24. idf_component_register(SRCS "${srcs}"
  25. INCLUDE_DIRS include
  26. PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c
  27. REQUIRES lwip protocomm
  28. PRIV_REQUIRES protobuf-c bt json esp_timer esp_wifi)