Fix broken esp-idf builds for targets other than ESP32S3.
The current `CMakeLists.txt` requires a file named `src/platforms/${target}/gdma_lcd_parallel16.cpp` however that file only exists when the target is `esp32s3`. This pull requests updates the `CMakeLists.txt` file such that the file is only included when the target platform is `esp32s3`.
This commit is contained in:
parent
004c45d01c
commit
ad41ddd03a
1 changed files with 8 additions and 4 deletions
|
@ -10,8 +10,12 @@ if(ARDUINO_ARCH_ESP32)
|
||||||
else()
|
else()
|
||||||
list(APPEND esp_idf_build esp_lcd driver)
|
list(APPEND esp_idf_build esp_lcd driver)
|
||||||
endif()
|
endif()
|
||||||
idf_component_register(SRCS "src/platforms/esp32/esp32_i2s_parallel_dma.cpp" "src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp" "src/ESP32-HUB75-MatrixPanel-leddrivers.cpp"
|
|
||||||
src/platforms/${target}/gdma_lcd_parallel16.cpp
|
if(${target} STREQUAL "esp32s3")
|
||||||
|
list(APPEND extra_srcs src/platforms/${target}/gdma_lcd_parallel16.cpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
idf_component_register(SRCS "src/platforms/esp32/esp32_i2s_parallel_dma.cpp" "src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp" "src/ESP32-HUB75-MatrixPanel-leddrivers.cpp" ${extra_srcs}
|
||||||
INCLUDE_DIRS "./src"
|
INCLUDE_DIRS "./src"
|
||||||
REQUIRES ${arduino_build} ${esp_idf_build}
|
REQUIRES ${arduino_build} ${esp_idf_build}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue