mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest makes it easier for users to see every component the example depends on.
This commit is contained in:
@@ -7,9 +7,11 @@ It could be used to route lwip traffic to host side network, typically when work
|
||||
|
||||
### Usage of the API
|
||||
|
||||
1) Add the path to this component to the `EXTRA_COMPONENT_DIRS` in your project makefile
|
||||
```cmake
|
||||
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/common_components/tapif_io")
|
||||
1) Add the path to this component to as a dependency to the `main` component of your project using the following idf_component.yml file:
|
||||
```yaml
|
||||
dependencies:
|
||||
tapif_io:
|
||||
path: ${IDF_PATH}/examples/common_components/tapif_io
|
||||
```
|
||||
2) Include lwip and linux side of the configuration
|
||||
```cpp
|
||||
|
Reference in New Issue
Block a user