SConscript 586 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd  = GetCurrentDir()
CPPPATH = [cwd]

# The set of source files associated with this SConscript file.
if rtconfig.PLATFORM == 'armcc':
	src = Glob('*.c') + Glob('*_rvds.S')

if rtconfig.PLATFORM == 'gcc':
	src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')

if rtconfig.PLATFORM == 'iar':
	src = Glob('*.c') + Glob('*_iar.S')

if rtconfig.PLATFORM == 'cl':
	src = Glob('*.c')

if rtconfig.PLATFORM == 'mingw':
	src = Glob('*.c')

Nameless-Y's avatar
Nameless-Y 已提交
24
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
25 26

Return('group')