-
Notifications
You must be signed in to change notification settings - Fork 3
/
SConscript
37 lines (31 loc) · 1.03 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
from building import *
# get current dir path
cwd = GetCurrentDir()
# init src and inc vars
src = []
inc = []
# add LVGL common include
inc = inc + [cwd]
inc = inc + [cwd + "/lvgl"]
inc = inc + [cwd + "/lvgl/examples/porting"]
inc = inc + [cwd + "/lvgl/src/lv_core"]
inc = inc + [cwd + "/lvgl/src/lv_draw"]
inc = inc + [cwd + "/lvgl/src/lv_font"]
inc = inc + [cwd + "/lvgl/src/lv_hal"]
inc = inc + [cwd + "/lvgl/src/lv_misc"]
inc = inc + [cwd + "/lvgl/src/lv_themes"]
inc = inc + [cwd + "/lvgl/src/lv_widgets"]
# add LittlevGL basic code lv_debug.c
src = src + ["lvgl2rtt.c"]
src = src + ["lvgl/examples/porting/lv_port_disp.c"]
src = src + Glob('lvgl/src/lv_core/*.c')
src = src + Glob('lvgl/src/lv_draw/*.c')
src = src + Glob('lvgl/src/lv_font/*.c')
src = src + Glob('lvgl/src/lv_hal/*.c')
src = src + Glob('lvgl/src/lv_misc/*.c')
src = src + Glob('lvgl/src/lv_themes/*.c')
src = src + Glob('lvgl/src/lv_widgets/*.c')
# add group to IDE project
group = DefineGroup('LVGL', src, depend = ['PKG_USING_LVGL'], CPPPATH = inc)
Return('group')