20 lines
434 B
Python
Raw Normal View History

import os
2017-07-28 21:34:18 +08:00
from building import *
objs = []
cwd = GetCurrentDir()
list = os.listdir(cwd)
CPPPATH = [cwd]
src = Glob('board.c')
2017-07-28 21:34:18 +08:00
if not GetDepend('RT_USING_NANO'):
src += Glob(cwd + 'drv_uart.c')
2017-07-28 21:34:18 +08:00
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
2017-07-28 21:34:18 +08:00
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(item, 'SConscript'))
2017-07-28 21:34:18 +08:00
Return('objs')