17 lines
358 B
Python
17 lines
358 B
Python
import os
|
|
from building import *
|
|
|
|
objs = []
|
|
src = Glob('*.c')
|
|
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')
|