2018-10-25 16:36:46 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
path = [cwd + '/inc']
|
|
|
|
libs = ['']
|
|
|
|
libpath = [cwd + '/libs']
|
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2018-10-25 16:36:46 +08:00
|
|
|
libs += ['libsmartconfig_armcm4_gcc']
|
2022-05-31 06:11:15 +08:00
|
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
2018-10-25 16:36:46 +08:00
|
|
|
libs += ['libsmartconfig_armcm4_iar']
|
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('Libraries', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
2018-10-25 16:36:46 +08:00
|
|
|
|
|
|
|
Return('group')
|
|
|
|
|