SConscript 682 字节
Newer Older
1 2
Import('env')
Import('rtconfig')
B
bernard.xiong 已提交
3
Import('RTT_ROOT')
4 5 6 7 8

comm = rtconfig.ARCH + '/common'
path = rtconfig.ARCH + '/' + rtconfig.CPU

# The set of source files associated with this SConscript file.
B
bernard.xiong 已提交
9
if rtconfig.PLATFORM == 'armcc':
10 11
	src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')

B
bernard.xiong 已提交
12
if rtconfig.PLATFORM == 'gcc':
13 14
	src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')

B
bernard.xiong 已提交
15
if rtconfig.PLATFORM == 'iar':
16 17
	src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')

B
bernard.xiong 已提交
18
env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU])
19
obj = env.Object(src_local)
B
bernard.xiong 已提交
20

21
Return('obj')