SConscript 415 字节
Newer Older
L
liang yongxiang 已提交
1
from building import *
2
import os
L
liang yongxiang 已提交
3

4 5 6
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
L
liukangcc 已提交
7
CFLAGS = ' -c -mistack -ffunction-sections'
L
liang yongxiang 已提交
8

L
liukangcc 已提交
9
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CFLAGS=CFLAGS)
L
liang yongxiang 已提交
10

11 12 13 14 15
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'))

L
liang yongxiang 已提交
16
Return('group')