File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,30 @@ list(APPEND SOURCES ${LVGL_ADDONS_SRC})
47
47
48
48
add_library (lvgl_interface INTERFACE )
49
49
50
- target_sources (lvgl_interface INTERFACE ${SOURCES} )
51
- target_compile_options (lvgl_interface INTERFACE ${LV_CFLAGS} )
52
-
53
50
set (LVGL_MPY_INCLUDES
54
51
${CMAKE_CURRENT_LIST_DIR} /lib/micropython
55
52
${CMAKE_CURRENT_LIST_DIR}
56
53
${CMAKE_CURRENT_LIST_DIR} /include
57
54
)
58
55
56
+ if (ESP_PLATFORM )
57
+ # gets esp_lcd include paths
58
+ idf_component_get_property (freertos_includes freertos INCLUDE_DIRS )
59
+ idf_component_get_property (freertos_dir freertos COMPONENT_DIR )
60
+
61
+ # sets the include paths into INCLUDES variable
62
+ if (freertos_includes )
63
+ list (TRANSFORM freertos_includes PREPEND ${freertos_dir} / )
64
+ list (APPEND LVGL_MPY_INCLUDES ${esp_lcd_includes} )
65
+ endif ()
66
+
67
+ endif (ESP_PLATFORM )
68
+
69
+
70
+ target_sources (lvgl_interface INTERFACE ${SOURCES} )
71
+ target_compile_options (lvgl_interface INTERFACE ${LV_CFLAGS} )
72
+ target_include_directories (lvgl_interface INTERFACE ${LVGL_MPY_INCLUDES} )
73
+
59
74
add_library (usermod_lvgl INTERFACE )
60
75
target_sources (usermod_lvgl INTERFACE ${CMAKE_BINARY_DIR} /lv_mp.c )
61
76
target_include_directories (usermod_lvgl INTERFACE ${LVGL_MPY_INCLUDES} )
You can’t perform that action at this time.
0 commit comments