Skip to content

Commit

Permalink
cmake: Register automatic git submodules handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl committed Nov 11, 2024
1 parent 50a99c3 commit c01d7e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion micropython.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# This file is to be given as "make USER_C_MODULES=..." when building Micropython port

if(ECHO_SUBMODULES)
string(CONCAT GIT_SUBMODULES "${GIT_SUBMODULES} " ${CMAKE_CURRENT_LIST_DIR}/lvgl ${CMAKE_CURRENT_LIST_DIR}/pycparser)
elseif(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/lvgl/README.md)
message(FATAL_ERROR " lvgl not initialized.\n Run 'make BOARD=${MICROPY_BOARD} submodules'")
endif()

# Include LVGL component, ignore KCONFIG

idf_build_set_property(LV_MICROPYTHON 1)
Expand All @@ -11,7 +17,7 @@ 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)

include(${CMAKE_CURRENT_LIST_DIR}/mkrules_usermod.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/mkrules.cmake)

# Add lv_bindings rules

Expand Down

0 comments on commit c01d7e0

Please sign in to comment.