2021-10-27 18:51:05 +08:00
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
objs = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
list = os.listdir(cwd)
|
2022-03-11 09:17:46 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
|
|
|
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
2021-10-27 18:51:05 +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')
|