4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-17 01:33:31 +08:00

20 lines
456 B
Python
Raw Normal View History

2020-05-25 17:30:05 +08:00
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd, str(Dir('#'))]
2020-07-04 22:32:02 +08:00
group = DefineGroup('driver', src, depend = [''], CPPPATH = CPPPATH)
# build for sub-directory
list = os.listdir(cwd)
objs = []
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-05-25 17:30:05 +08:00
Return('group')