2023-01-07 15:03:21 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2023-03-19 14:41:18 +08:00
|
|
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
|
2023-01-07 15:03:21 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2023-03-25 19:05:33 +08:00
|
|
|
group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)
|
2023-01-07 15:03:21 +08:00
|
|
|
|
2023-11-25 22:54:24 +08:00
|
|
|
objs = [group]
|
|
|
|
|
|
|
|
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')
|