4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-20 06:03:30 +08:00

17 lines
358 B
Python
Raw Normal View History

2023-12-17 21:19:16 +08:00
import os
from building import *
objs = []
cwd = GetCurrentDir()
list = os.listdir(cwd)
CPPPATH = [cwd]
src = Glob('*.c')
2024-04-12 14:09:31 +08:00
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
2023-12-17 21:19:16 +08:00
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(item, 'SConscript'))
Return('objs')