rt-thread/libcpu/SConscript
bernard.xiong 9a7ae65085 move include path options to each component.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@113 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-10-20 09:18:45 +00:00

19 lines
558 B
Python

Import('env')
Import('rtconfig')
comm = rtconfig.ARCH + '/common'
path = rtconfig.ARCH + '/' + rtconfig.CPU
# The set of source files associated with this SConscript file.
if rtconfig.CC == 'armcc':
src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
if rtconfig.CC == 'gcc':
src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
if rtconfig.CC == 'iar':
src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')
obj = env.Object(src_local)
Return('obj')