Skip to content

Commit 09abb18

Browse files
igrrdavid-cermak
authored andcommitted
fix(asio): reference protocol_examples_common from IDF
This makes the example project usable from the component registry
1 parent d5e7898 commit 09abb18

File tree

12 files changed

+12
-23
lines changed

12 files changed

+12
-23
lines changed

components/asio/examples/asio_chat/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../.. ../../../../common_components/protocol_examples_common)
8-
95
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
106
project(asio_chat)

components/asio/examples/asio_chat/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/asio/examples/async_request/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../../../../common_components/protocol_examples_common)
8-
95
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
106
project(async_http_request)

components/asio/examples/async_request/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/asio/examples/socks4/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../../../../common_components/protocol_examples_common)
8-
95
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
106
project(asio_sock4)

components/asio/examples/socks4/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/asio/examples/ssl_client_server/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../../../../common_components/protocol_examples_common)
85
set(EXCLUDE_COMPONENTS openssl)
96

107
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

components/asio/examples/ssl_client_server/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/asio/examples/tcp_echo_server/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../../../../common_components/protocol_examples_common)
8-
95
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
106
project(asio_tcp_echo_server)

components/asio/examples/tcp_echo_server/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/asio/examples/udp_echo_server/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS ../../../../common_components/protocol_examples_common)
8-
95
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
106
project(asio_udp_echo_server)

components/asio/examples/udp_echo_server/main/idf_component.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dependencies:
44
espressif/asio:
55
version: "^1.14.1"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

0 commit comments

Comments
 (0)