rt-thread/bsp/swm320-lq100/Libraries/SConscript

19 lines
619 B
Python
Raw Normal View History

2018-12-24 17:17:27 +08:00
from building import *
import rtconfig
cwd = GetCurrentDir()
src = Glob('CMSIS/DeviceSupport/*.c')
CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM320_StdPeriph_Driver']
src += Glob('SWM320_StdPeriph_Driver/*.c')
if rtconfig.CROSS_TOOL == 'gcc':
src += ['CMSIS/DeviceSupport/startup/gcc/startup_SWM320.s']
elif rtconfig.CROSS_TOOL == 'keil':
src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM320.s']
elif rtconfig.CROSS_TOOL == 'iar':
print('Not Support iar now\n')
exit(0)
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
Return('group')