mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
34 lines
913 B
Python
34 lines
913 B
Python
from building import *
|
|
import os
|
|
|
|
cwd = GetCurrentDir()
|
|
group = []
|
|
src = []
|
|
CPPPATH = [cwd]
|
|
|
|
if GetDepend(['LVGL_STORAGE_PATH']):
|
|
ins_dst = GetDepend('LVGL_STORAGE_PATH').strip('"/')
|
|
else:
|
|
ins_dst='rodata/lvgl_data'
|
|
|
|
ins_src = 'assets'
|
|
|
|
if GetDepend(['AIC_CHIP_D13X']) or GetDepend(['AIC_CHIP_G73X']):
|
|
src += Glob('./base_simple_ui.c')
|
|
install = [(ins_src + '/image/', ins_dst + '/image/'),
|
|
(ins_src + '/font/', ins_dst + '/font/'),]
|
|
else:
|
|
src += Glob('./base_ui.c')
|
|
install = [(ins_src + '/', ins_dst)]
|
|
|
|
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'))
|
|
|
|
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_BASE_DEMO'], CPPPATH = CPPPATH,
|
|
INSTALL = install)
|
|
|
|
Return('group')
|