mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 05:17:38 +00: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:
@@ -9,5 +9,5 @@ if(CONFIG_SOC_I2S_SUPPORTS_PDM_RX AND CONFIG_EXAMPLE_PDM_RX)
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio
|
||||
INCLUDE_DIRS "." "$ENV{IDF_PATH}/examples/peripherals/i2s/common")
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio 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_std_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio
|
||||
INCLUDE_DIRS "." "$ENV{IDF_PATH}/examples/peripherals/i2s/common")
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio 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_tdm_example_main.c"
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio
|
||||
INCLUDE_DIRS "." "$ENV{IDF_PATH}/examples/peripherals/i2s/common")
|
||||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio i2s_examples_common
|
||||
INCLUDE_DIRS ".")
|
||||
|
@@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
i2s_examples_common:
|
||||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common
|
Reference in New Issue
Block a user