83b3aadaa3
因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链 此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
19 lines
434 B
Python
19 lines
434 B
Python
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
path = [cwd + '/inc']
|
|
libs = ['']
|
|
libpath = [cwd + '/libs']
|
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
libs += ['libsmartconfig_armcm4_gcc']
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
|
libs += ['libsmartconfig_armcm4_iar']
|
|
|
|
group = DefineGroup('Libraries', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
|
|
|
Return('group')
|
|
|