2024-04-03 16:40:57 +08:00
|
|
|
from building import *
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
group = []
|
|
|
|
|
CPPPATH = [cwd]
|
2024-06-04 19:00:30 +08:00
|
|
|
src = []
|
|
|
|
|
|
|
|
|
|
src += Glob('./elevator_ui.c')
|
|
|
|
|
|
|
|
|
|
if GetDepend(['LV_ELEVATOR_UART_COMMAND']):
|
|
|
|
|
src += Glob('./elevator_uart.c')
|
2024-04-03 16:40:57 +08:00
|
|
|
|
|
|
|
|
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'))
|
|
|
|
|
|
2024-06-04 19:00:30 +08:00
|
|
|
group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_ELEVATOR_DEMO'], CPPPATH = CPPPATH)
|
2024-04-03 16:40:57 +08:00
|
|
|
|
|
|
|
|
Return('group')
|