SConscript 337 字节
Newer Older
G
guozhanxin 已提交
1 2 3 4 5 6 7 8
import rtconfig
from building import *

cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]

# add for startup script 
9
if rtconfig.PLATFORM in ['gcc']:
G
guozhanxin 已提交
10 11 12 13 14 15 16
    CPPDEFINES = ['__START=entry']
else:
    CPPDEFINES = []
    
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)

Return('group')