2021-08-06 18:35:58 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2021-09-22 17:57:45 +08:00
|
|
|
src = Glob('*.c')
|
|
|
|
list = os.listdir(cwd)
|
2021-08-06 18:35:58 +08:00
|
|
|
CPPPATH = [cwd]
|
2021-09-22 17:57:45 +08:00
|
|
|
objs = []
|
2021-08-06 18:35:58 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
2021-09-22 17:57:45 +08:00
|
|
|
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'))
|
|
|
|
objs = objs + group
|
|
|
|
|
|
|
|
Return('objs')
|