mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 18:22:42 +08:00
build(cmake): remove thorvg sources from main lib sources list (#10039)
This commit is contained in:
@@ -45,4 +45,4 @@ jobs:
|
||||
return 0;
|
||||
}" >> main.c
|
||||
# We link with `g++` as thorvg (ThorVG library) contains C++ code that requires C++ runtime symbols
|
||||
g++ main.c -o main -I$(pwd)/lvgl-install/include -L$(pwd)/lvgl-install/lib -llvgl_thorvg -llvgl_examples -llvgl_demos -llvgl -lm
|
||||
g++ main.c -o main -I$(pwd)/lvgl-install/include -L$(pwd)/lvgl-install/lib -llvgl_examples -llvgl_demos -llvgl -llvgl_thorvg -lm
|
||||
|
||||
@@ -72,6 +72,9 @@ file(GLOB_RECURSE DEMO_SOURCES ${LVGL_ROOT_DIR}/demos/*.c)
|
||||
file(GLOB_RECURSE THORVG_SOURCES ${LVGL_ROOT_DIR}/src/libs/thorvg/*.cpp
|
||||
${LVGL_ROOT_DIR}/src/others/vg_lite_tvg/*.cpp)
|
||||
|
||||
# Remove the ThorVG sources from the main sources
|
||||
list(REMOVE_ITEM SOURCES ${THORVG_SOURCES})
|
||||
|
||||
# Check for the case where LVGL is distributed with only its source code
|
||||
if(NOT EXAMPLE_SOURCES AND CONFIG_LV_BUILD_EXAMPLES)
|
||||
message(STATUS "No Examples found. Disabling Examples build")
|
||||
|
||||
Reference in New Issue
Block a user