2022-04-07 14:24:11 +08:00
|
|
|
import os
|
2021-04-18 00:51:07 +08:00
|
|
|
from building import *
|
|
|
|
Import('rtconfig')
|
|
|
|
|
2021-04-18 00:55:32 +08:00
|
|
|
src = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = []
|
2021-06-12 18:11:51 +08:00
|
|
|
|
2021-12-26 22:41:24 +08:00
|
|
|
src += Glob('*.c')
|
2021-04-18 00:51:07 +08:00
|
|
|
|
2022-04-07 14:24:11 +08:00
|
|
|
if rtconfig.PLATFORM != 'gcc':
|
2021-12-29 12:25:16 +08:00
|
|
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
|
2022-04-07 14:24:11 +08:00
|
|
|
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
for d in list:
|
|
|
|
path = os.path.join(cwd, d)
|
|
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
|
|
group = group + SConscript(os.path.join(d, 'SConscript'))
|
|
|
|
|
2021-04-18 00:55:32 +08:00
|
|
|
Return('group')
|