|
|
@ -11,38 +11,12 @@ add_subdirectory(lv_drivers) |
|
|
|
file(GLOB MY_SOURCES "./*.c") |
|
|
|
file(GLOB MY_SOURCES "./*.c") |
|
|
|
set(SOURCES ${MY_SOURCES}) |
|
|
|
set(SOURCES ${MY_SOURCES}) |
|
|
|
|
|
|
|
|
|
|
|
# Comment out following statements to build project without eez flow support. |
|
|
|
|
|
|
|
# Also, build lvgl-demo-no-flow.eez-project with EEZ Studio. |
|
|
|
|
|
|
|
add_definitions(-DHAS_FLOW_SUPPORT=1) |
|
|
|
|
|
|
|
set (HAS_FLOW_SUPPORT 1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE my_src |
|
|
|
file(GLOB_RECURSE my_src |
|
|
|
./src/*.cpp |
|
|
|
./src/*.cpp |
|
|
|
./src/*.c |
|
|
|
./src/*.c |
|
|
|
) |
|
|
|
) |
|
|
|
list(APPEND SOURCES ${my_src}) |
|
|
|
list(APPEND SOURCES ${my_src}) |
|
|
|
|
|
|
|
|
|
|
|
if (${HAS_FLOW_SUPPORT}) |
|
|
|
|
|
|
|
################################################################################ |
|
|
|
|
|
|
|
# EEZ Framework |
|
|
|
|
|
|
|
add_definitions(-DEEZ_FOR_LVGL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include_directories( |
|
|
|
|
|
|
|
./eez-framework/src |
|
|
|
|
|
|
|
./eez-framework/src/eez/libs/agg |
|
|
|
|
|
|
|
./eez-framework/src/eez/platform/simulator |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE src_eez |
|
|
|
|
|
|
|
./eez-framework/src/eez/*.cpp |
|
|
|
|
|
|
|
./eez-framework/src/eez/*.c |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list(APPEND SOURCES ${src_eez}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################ |
|
|
|
|
|
|
|
endif(${HAS_FLOW_SUPPORT}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(index ${SOURCES} ${INCLUDES}) |
|
|
|
add_executable(index ${SOURCES} ${INCLUDES}) |
|
|
|
|
|
|
|
|
|
|
|
if(NOT LVGL_CHOSEN_DEMO) |
|
|
|
if(NOT LVGL_CHOSEN_DEMO) |
|
|
|