Files
luban-lite-t3e-pro/packages/artinchip/lvgl-ui/aic_demo/vscode_simulator/SConscript
2025-09-30 11:56:06 +08:00

28 lines
732 B
Python

from building import *
import os
cwd = GetCurrentDir()
group = []
src = Glob('*.c')
CPPPATH = [cwd]
if (GetDepend('AIC_LVGL_VSCODE_DEMO')):
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript'))
if GetDepend(['LVGL_STORAGE_PATH']):
ins_dst = GetDepend('LVGL_STORAGE_PATH').strip('"/')
else:
ins_dst='rodata/lvgl_data'
ins_src = 'template/lvgl_src/lvgl_data/'
install = [(ins_src, ins_dst)]
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_VSCODE_DEMO'], CPPPATH = CPPPATH,
INSTALL = install)
Return('group')