examples: use new component registration api

* Original commit: espressif/esp-idf@6771eead80
This commit is contained in:
Renz Christian Bagaporo
2019-04-28 15:38:46 +08:00
committed by gabsuren
parent f3a0586663
commit 35d6f9a2c6
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,3 @@
set(COMPONENT_SRCS "esp_websocket_client.c") idf_component_register(SRCS "esp_websocket_client.c"
set(COMPONENT_ADD_INCLUDEDIRS "include") INCLUDE_DIRS "include"
set(COMPONENT_REQUIRES lwip esp-tls tcp_transport nghttp) REQUIRES lwip esp-tls tcp_transport nghttp)
register_component()

View File

@ -1,4 +1,2 @@
set(COMPONENT_SRCS "websocket_example.c") idf_component_register(SRCS "websocket_example.c"
set(COMPONENT_ADD_INCLUDEDIRS ".") INCLUDE_DIRS ".")
register_component()