2021-04-18 00:51:07 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
2021-04-18 00:55:32 +08:00
|
|
|
src = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = []
|
|
|
|
src += Glob('*.c')
|
2021-04-18 00:51:07 +08:00
|
|
|
|
2021-05-15 21:27:31 +08:00
|
|
|
if rtconfig.PLATFORM != 'gcc' or rtconfig.ARCH == 'sim':
|
2021-04-18 00:51:07 +08:00
|
|
|
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH)
|
2021-04-18 00:55:32 +08:00
|
|
|
Return('group')
|