Skip to content

Commit 42fd047

Browse files
committed
calculator: fix the compile error
apps/packages/demos/calculator/libapps_calculator.a: in function `Resource::load_resources()': apps/packages/demos/calculator/calculator_cre.h:76: undefined reference to `size_22_bold' undefined reference to `size_48_normal' undefined reference to `size_24_normal' Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
1 parent 5d1f493 commit 42fd047

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

calculator/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ if(CONFIG_LVX_USE_DEMO_CALCULATOR)
2424
set(STACKSIZE 32768)
2525
set(MODULE ${CONFIG_LVX_USE_DEMO_CALCULATOR})
2626
set(CXXEXT .cpp)
27+
set(CSRCS
28+
res/fonts/size_16_normal.c
29+
res/fonts/size_22_bold.c
30+
res/fonts/size_24_normal.c
31+
res/fonts/size_28_normal.c
32+
res/fonts/size_48_normal.c
33+
res/fonts/size_60_bold.c
34+
res/icons/background.c
35+
)
2736
set(CXXSRCS
2837
calculator_cre.cpp
2938
expression_calc.cpp
@@ -35,6 +44,6 @@ if(CONFIG_LVX_USE_DEMO_CALCULATOR)
3544
PRIORITY ${PRIORITY}
3645
STACKSIZE ${STACKSIZE}
3746
MODULE ${MODULE}
38-
SRCS ${MAINSRC} ${CXXSRCS}
47+
SRCS ${MAINSRC} ${CXXSRCS} ${CSRCS}
3948
)
4049
endif()

0 commit comments

Comments
 (0)