2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
2017-10-13 12:44:54 +08:00
|
|
|
Import('rtconfig')
|
2013-01-08 22:40:58 +08:00
|
|
|
|
2017-10-13 12:44:54 +08:00
|
|
|
src = Glob('*.c') + Glob('*.cpp')
|
2014-10-28 11:45:43 +08:00
|
|
|
cwd = GetCurrentDir()
|
2017-10-13 12:44:54 +08:00
|
|
|
group = []
|
2014-10-28 11:45:43 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
2013-01-08 22:40:58 +08:00
|
|
|
CPPDEFINES = ['RT_USING_MINILIBC']
|
2014-10-28 11:45:43 +08:00
|
|
|
|
2020-09-08 13:16:49 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim' and not GetDepend('RT_USING_LIBC') and GetDepend('RT_USING_MINILIBC'):
|
2017-10-13 12:44:54 +08:00
|
|
|
group = DefineGroup('libc', src, depend = [''],
|
|
|
|
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
Return('group')
|