2018-10-26 14:10:38 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
2019-08-22 15:34:50 +08:00
|
|
|
src = []
|
2018-10-26 14:10:38 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
group = []
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2019-08-22 15:34:50 +08:00
|
|
|
if GetDepend('RT_USING_LIBC'):
|
|
|
|
src += Glob('*.c')
|
|
|
|
else:
|
|
|
|
if GetDepend('RT_USING_MINI_TIME'):
|
|
|
|
src += ['time.c']
|
|
|
|
|
|
|
|
if (rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'iar') and rtconfig.ARCH != 'sim' :
|
|
|
|
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
|
2018-10-26 14:10:38 +08:00
|
|
|
|
|
|
|
Return('group')
|