aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2023-05-09 22:51:43 +0100
committerGitHub <noreply@github.com>2023-05-09 22:51:43 +0100
commit5d82b9890c793a6efda41c50e4bef3d8fe095d4d (patch)
tree9c31828ff6c7aae67fe94ddc41321c6c089d9ecb
parent004c45d01c66eebe5d84bf92c4692e7fe19e0471 (diff)
parentad41ddd03a0c4de2d01597642a33fed1b867c3a7 (diff)
Merge pull request #447 from abrender/fixesp32
Fix broken esp-idf builds for targets other than ESP32S3.
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 781648d..e0a1898 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,9 +10,13 @@ if(ARDUINO_ARCH_ESP32)
else()
list(APPEND esp_idf_build esp_lcd driver)
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
- INCLUDE_DIRS "./src"
+
+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"
REQUIRES ${arduino_build} ${esp_idf_build}
)
@@ -29,7 +33,7 @@ if(ARDUINO_ARCH_ESP32)
else()
target_compile_options(${COMPONENT_TARGET} PUBLIC -DNO_GFX)
if(${target} STREQUAL "esp32s3")
- # Don't enable PSRAM based framebuffer just because it's an S3.
+ # Don't enable PSRAM based framebuffer just because it's an S3.
# This is an advanced option and should only be used with an S3 with Octal-SPI RAM.
# target_compile_options(${COMPONENT_TARGET} PUBLIC -DSPIRAM_FRAMEBUFFER)
target_compile_options(${COMPONENT_TARGET} PUBLIC)