Signed-off-by: 吴文峰 <kevin@lmve.net>

This commit is contained in:
2025-12-30 23:14:11 +08:00
parent 2511afe17a
commit 31b77f712c
25 changed files with 499 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
preview-build
preview-bin
+37
View File
@@ -0,0 +1,37 @@
# This basic file is used to compile the runtime for the Editor preview.
# It is also intended for you to customize it for your own target/project.
# Only set project if this is the top-level CMakeLists.txt
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
cmake_minimum_required(VERSION 3.10)
# can be customized
project(LVGLProject)
set(IS_TOP_LEVEL TRUE)
else()
set(IS_TOP_LEVEL FALSE)
endif()
# This includes the generated list of .c files
include(${CMAKE_CURRENT_LIST_DIR}/file_list_gen.cmake)
# Create the UI sources as a library
add_library(lib-ui ${PROJECT_SOURCES})
# Add the root project folder as include folder
target_include_directories(lib-ui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
# You may use this check to add configuration when compiling for the Editor preview,
# or for your target.
if (LV_EDITOR_PREVIEW)
# things for the Preview
else ()
# things for your target
# set your include directories here, don't forget LVGL!
endif ()
if (IS_TOP_LEVEL)
# Do something when this is your top level cmakelists.txt
else()
# Do something else if it's not your top level cmakelists.txt
endif()
+1
View File
@@ -0,0 +1 @@
Create XML files here that start with a `<component>` tag
+1
View File
@@ -0,0 +1 @@
Place ttf or woff files here
+25
View File
@@ -0,0 +1,25 @@
<globals>
<api>
<!-- Add <enumdefs> here -->
</api>
<consts>
<!-- Add <px>, <int>, <color> etc here -->
</consts>
<styles>
<!-- Add <style> tags here -->
</styles>
<subjects>
<!-- Add <int>, <string>, or <float> subjects here -->
</subjects>
<images>
<!-- Add <file> or <data> tags here -->
</images>
<fonts>
<!-- Add <bin> , <tiny_ttf>, <freetype> tags here -->
</fonts>
</globals>
+1
View File
@@ -0,0 +1 @@
Place PNG images here
+7
View File
@@ -0,0 +1,7 @@
<project>
<targets>
<target name="target1">
<display width="320" height="240"/>
</target>
</targets>
</project>
+1
View File
@@ -0,0 +1 @@
Create XML files here that start with a `<screen>` tag
+1
View File
@@ -0,0 +1 @@
Create folders here for each widget and place an XML in each with a `<widget>` tag