mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
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:
parent
51adfa1fd9
commit
f22dd313fa
@ -9,4 +9,5 @@ if(CONFIG_SOC_I2S_SUPPORTS_PDM_RX)
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
PRIV_REQUIRES driver i2s_examples_common
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
i2s_examples_common:
|
||||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common
|
@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "i2s_std_example_main.c"
|
||||
PRIV_REQUIRES driver i2s_examples_common
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
i2s_examples_common:
|
||||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common
|
@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "i2s_tdm_example_main.c"
|
||||
PRIV_REQUIRES driver i2s_examples_common
|
||||
INCLUDE_DIRS ".")
|
||||
|
@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
i2s_examples_common:
|
||||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common
|
@ -1,3 +1,3 @@
|
||||
idf_component_register(SRCS "i2s_es7210_record_example.c"
|
||||
INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common"
|
||||
PRIV_REQUIRES driver fatfs i2s_examples_common
|
||||
)
|
||||
|
@ -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
|
||||
|
@ -16,3 +16,5 @@ dependencies:
|
||||
# version: "^1"
|
||||
# rules:
|
||||
# - if: "target in [esp32s3]"
|
||||
i2s_examples_common:
|
||||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common
|
||||
|
@ -0,0 +1,2 @@
|
||||
# register I2S common dependencies as a component
|
||||
idf_component_register(INCLUDE_DIRS ".")
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user