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