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-24 14:47:01 +08:00
parent 848f92b02c
commit 1e5ba4282f
13 changed files with 23 additions and 2 deletions
@@ -1,2 +1,2 @@
idf_component_register(SRCS "i2s_recorder_main.c"
INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common")
PRIV_REQUIRES driver fatfs i2s_examples_common)
@@ -0,0 +1,3 @@
dependencies:
i2s_examples_common:
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common