rt-thread/bsp/ls2kdev/drivers/SConscript

21 lines
428 B
Python
Raw Normal View History

2020-04-05 13:29:29 +08:00
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
2020-09-04 09:38:01 +08:00
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
group = group + objs
2020-04-05 13:29:29 +08:00
Return('group')