SConscript 399 字节
Newer Older
mysterywolf's avatar
mysterywolf 已提交
1
from building import *
mysterywolf's avatar
mysterywolf 已提交
2
import os
mysterywolf's avatar
mysterywolf 已提交
3 4

cwd = GetCurrentDir()
mysterywolf's avatar
mysterywolf 已提交
5
group = []
mysterywolf's avatar
mysterywolf 已提交
6 7 8
src = Glob('*.c')
CPPPATH = [cwd]

mysterywolf's avatar
mysterywolf 已提交
9 10 11 12 13 14 15
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 += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
mysterywolf's avatar
mysterywolf 已提交
16
Return('group')