mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 05:51:45 +08:00
fix(codespace): use lv_conf.defaults to generate lv_conf.h (#7075)
This commit is contained in:
committed by
GitHub
parent
09d9c575b6
commit
58243733d8
@@ -21,5 +21,7 @@ target_link_libraries(index
|
||||
lvgl
|
||||
lvgl_examples
|
||||
lvgl_demos
|
||||
lvgl_thorvg
|
||||
SDL2
|
||||
)
|
||||
set_target_properties(index PROPERTIES LINK_FLAGS "--shell-file ${PROJECT_SOURCE_DIR}/lvgl/.devcontainer/lvgl_shell.html -s SINGLE_FILE=1")
|
||||
@@ -1,4 +1,5 @@
|
||||
cd build
|
||||
emcmake cmake ..
|
||||
emmake make -j$(nproc)
|
||||
echo "Built succesfully, opening index.html"
|
||||
code index.html
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@
|
||||
#include <emscripten.h>
|
||||
#include "lvgl/lvgl.h"
|
||||
#include "lvgl/demos/lv_demos.h"
|
||||
#include "lvgl/examples/lv_examples.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
LV_COLOR_DEPTH 32
|
||||
LV_MEM_SIZE (1024 * 1024)
|
||||
LV_DRAW_THREAD_STACK_SIZE (64 * 1024)
|
||||
LV_USE_MATRIX 1
|
||||
LV_USE_FLOAT 1
|
||||
LV_USE_LOTTIE 1
|
||||
|
||||
LV_USE_DRAW_SW_COMPLEX_GRADIENTS 1
|
||||
LV_OBJ_STYLE_CACHE 1
|
||||
LV_USE_LOG 1
|
||||
LV_LOG_PRINTF 1
|
||||
LV_USE_PERF_MONITOR 1
|
||||
LV_USE_SYSMON 1
|
||||
|
||||
LV_USE_ASSERT_MEM_INTEGRITY 1
|
||||
LV_USE_ASSERT_OBJ 1
|
||||
LV_USE_ASSERT_STYLE 1
|
||||
LV_FONT_MONTSERRAT_12 1
|
||||
LV_FONT_MONTSERRAT_14 1
|
||||
LV_FONT_MONTSERRAT_16 1
|
||||
LV_FONT_MONTSERRAT_18 1
|
||||
LV_FONT_MONTSERRAT_20 1
|
||||
LV_FONT_MONTSERRAT_22 1
|
||||
LV_FONT_MONTSERRAT_24 1
|
||||
LV_FONT_MONTSERRAT_26 1
|
||||
LV_FONT_MONTSERRAT_28 1
|
||||
LV_FONT_MONTSERRAT_30 1
|
||||
LV_FONT_MONTSERRAT_32 1
|
||||
LV_FONT_MONTSERRAT_34 1
|
||||
LV_FONT_MONTSERRAT_36 1
|
||||
LV_FONT_MONTSERRAT_38 1
|
||||
LV_FONT_MONTSERRAT_40 1
|
||||
LV_FONT_MONTSERRAT_42 1
|
||||
LV_FONT_MONTSERRAT_44 1
|
||||
LV_FONT_MONTSERRAT_46 1
|
||||
LV_FONT_MONTSERRAT_48 1
|
||||
LV_FONT_MONTSERRAT_28_COMPRESSED 1
|
||||
LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1
|
||||
LV_FONT_SIMSUN_16_CJK 1
|
||||
LV_FONT_UNSCII_8 1
|
||||
|
||||
LV_USE_IMGFONT 1
|
||||
LV_USE_FS_STDIO 1
|
||||
LV_FS_STDIO_LETTER 'A'
|
||||
LV_USE_FS_MEMFS 1
|
||||
LV_FS_MEMFS_LETTER 'M'
|
||||
LV_USE_THORVG_INTERNAL 1
|
||||
LV_USE_LZ4_INTERNAL 1
|
||||
LV_USE_VECTOR_GRAPHIC 1
|
||||
LV_USE_TINY_TTF 1
|
||||
LV_USE_BARCODE 1
|
||||
LV_USE_QRCODE 1
|
||||
LV_USE_RLE 1
|
||||
LV_BIN_DECODER_RAM_LOAD 1
|
||||
LV_USE_TJPGD 1
|
||||
LV_USE_BMP 1
|
||||
LV_USE_LODEPNG 1
|
||||
LV_USE_SDL 1
|
||||
|
||||
LV_USE_DEMO_WIDGETS 1
|
||||
LV_USE_DEMO_KEYPAD_AND_ENCODER 1
|
||||
LV_USE_DEMO_BENCHMARK 1
|
||||
LV_USE_DEMO_RENDER 1
|
||||
LV_USE_DEMO_STRESS 1
|
||||
LV_USE_DEMO_MUSIC 1
|
||||
LV_USE_DEMO_FLEX_LAYOUT 1
|
||||
LV_USE_DEMO_MULTILANG 1
|
||||
LV_USE_DEMO_TRANSFORM 1
|
||||
LV_USE_DEMO_SCROLL 1
|
||||
|
||||
@@ -9,10 +9,11 @@ mkdir vscode
|
||||
|
||||
cd lvgl/.devcontainer
|
||||
cp __CMakeLists.txt__ ../../CMakeLists.txt
|
||||
cp __lv_conf.h__ ../../lv_conf.h
|
||||
cp __main.c__ ../../main.c
|
||||
cp __build_all.sh__ ../../build_all.sh
|
||||
cp __c_cpp_properties.json__ ../../.vscode/c_cpp_properties.json
|
||||
cp __settings.json__ ../../.vscode/settings.json
|
||||
touch ../../lv_conf.h
|
||||
../scripts/generate_lv_conf.py --template ../lv_conf_template.h --config ../../lv_conf.h
|
||||
|
||||
chmod +x ../../build_all.sh
|
||||
Reference in New Issue
Block a user