Skip to content

Commit

Permalink
Fix port build: ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
PGNetHun committed Feb 16, 2025
1 parent 2847546 commit f60a00b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ports/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ idf_build_set_property(COMPILE_DEFINITIONS "-DLV_KCONFIG_IGNORE" APPEND)
separate_arguments(LV_CFLAGS_ENV UNIX_COMMAND $ENV{LV_CFLAGS})
list(APPEND LV_CFLAGS ${LV_CFLAGS_ENV})
idf_build_set_property(COMPILE_DEFINITIONS "${LV_CFLAGS}" APPEND)
idf_build_set_property(COMPILE_OPTIONS "-Wno-unused-function" APPEND)
idf_build_set_property(SRCS "${LV_SRC}" APPEND)
idf_build_set_property(INCLUDE_DIRS "${LV_INCLUDE}" APPEND)

# DEBUG LV_CONF_PATH
message(STATUS "LV_CONF_PATH=${LV_CONF_PATH}")

# Fix for idf 5.2.x
idf_build_get_property(component_targets __COMPONENT_TARGETS)
string(REPLACE "___idf_lvgl" "" component_targets "${component_targets}")
idf_build_set_property(__COMPONENT_TARGETS "${component_targets}")


# Define the project.
project(micropython)

0 comments on commit f60a00b

Please sign in to comment.