83b3aadaa3
因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链 此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
27 lines
607 B
Python
27 lines
607 B
Python
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 in ['armcc', 'armclang']:
|
|
src = Glob('*.c') + Glob('*_rvds.S')
|
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
|
src = Glob('*.c') + Glob('*_iar.S')
|
|
|
|
if rtconfig.PLATFORM == 'cl':
|
|
src = Glob('*.c')
|
|
|
|
if rtconfig.PLATFORM == 'mingw':
|
|
src = Glob('*.c')
|
|
|
|
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|