SConscript 389 字节
Newer Older
N
nongxiaoming 已提交
1
from building import *
2
import os
N
nongxiaoming 已提交
3

4 5 6
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
N
nongxiaoming 已提交
7

8 9 10 11 12 13
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = ['BOOT_PROCESSOR'])

list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))
N
nongxiaoming 已提交
14 15

Return('group')