File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
include (${CMAKE_CURRENT_LIST_DIR} /mkrules.cmake)
4
4
5
- # create targets for generated files
6
- all_lv_bindings( )
5
+ # lvgl bindings depend on lvgl itself, pull it in
6
+ include ( ${LVGL_DIR} /CMakeLists.txt )
7
7
8
8
# lvgl bindings target (the mpy module)
9
9
add_library (usermod_lv_bindings INTERFACE )
10
10
target_sources (usermod_lv_bindings INTERFACE ${LV_SRC} )
11
11
target_include_directories (usermod_lv_bindings INTERFACE ${LV_INCLUDE} )
12
12
13
- # lvgl bindings depend on lvgl itself, pull it in
14
- include (${LVGL_DIR} /CMakeLists.txt)
15
13
target_link_libraries (usermod_lv_bindings INTERFACE lvgl_interface)
16
14
17
15
# make usermod (target declared by Micropython for all user compiled modules) link to bindings
18
16
# this way the bindings (and transitively lvgl_interface) get proper compilation flags
19
17
target_link_libraries (usermod INTERFACE usermod_lv_bindings)
18
+
19
+ # create targets for generated files
20
+ all_lv_bindings()
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function(lv_bindings)
38
38
if (ESP_PLATFORM)
39
39
target_compile_options (${COMPONENT_LIB} PRIVATE ${LV_COMPILE_OPTIONS} )
40
40
else ()
41
- target_compile_options (lvgl_interface INTERFACE ${LV_COMPILE_OPTIONS} )
41
+ target_compile_options (usermod_lv_bindings INTERFACE ${LV_COMPILE_OPTIONS} )
42
42
endif ()
43
43
44
44
if (DEFINED LV_FILTER)
You can’t perform that action at this time.
0 commit comments