Files
luban-lite/packages/artinchip/lvgl-ui/aic_demo/demo_hub/SConscript
刘可亮 6e36e8e296 v1.2.0
2025-04-23 17:54:31 +08:00

27 lines
744 B
Python

from building import *
import os
cwd = GetCurrentDir()
group = []
src = Glob('*.c')
CPPPATH = [cwd]
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'))
install=[('assets/1024x600/', 'rodata/')]
if (GetDepend(['AIC_PANEL_480X272_RESOLUTION'])):
install=[('assets/480x272/', 'rodata/')]
elif (GetDepend(['AIC_PANEL_CUSTOM_RESOLUTION'])):
hactice = GetDepend(['PANEL_HACTIVE'])
if hactice < 1024:
install=[('assets/480x272/', 'rodata/')]
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_DEMO_HUB_DEMO'], CPPPATH = CPPPATH,
INSTALL=install)
Return('group')