SConscript 471 字节
Newer Older
1
import os
2 3 4
from building import *
Import('rtconfig')

mysterywolf's avatar
mysterywolf 已提交
5 6 7 8
src   = []
cwd   = GetCurrentDir()
CPPPATH = [cwd]
group = []
9

mysterywolf's avatar
mysterywolf 已提交
10
src += Glob('*.c')
11

G
guozhanxin 已提交
12
if rtconfig.PLATFORM not in ['gcc', 'llvm-arm']:
mysterywolf's avatar
mysterywolf 已提交
13
    group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
14 15 16 17 18 19 20

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'))

mysterywolf's avatar
mysterywolf 已提交
21
Return('group')