refactor(i2s): refactor i2s examples common dependencies

Closes https://github.com/espressif/esp-idf/issues/14751

Make the common I2S dependencies as an example common component,
so that to avoid slash & backslash issue on windows
when use absolute include path.
This commit is contained in:
laokaiyao
2024-12-10 16:28:42 +08:00
parent 85be1550ab
commit 75fb8bbe04
14 changed files with 28 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
idf_component_register(SRCS "i2s_es7210_record_example.c"
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio fatfs
INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common"
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio fatfs i2s_examples_common
INCLUDE_DIRS
)

View File

@@ -15,3 +15,5 @@ dependencies:
# # `public` flag doesn't have an effect dependencies of the `main` component.
# # All dependencies of `main` are public by default.
# public: true
i2s_examples_common:
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common

View File

@@ -16,3 +16,5 @@ dependencies:
# version: "^1"
# rules:
# - if: "target in [esp32s3]"
i2s_examples_common:
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common