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:
|
2019-08-22 15:59:51 +08:00
|
|
|
if GetDepend('RT_LIBC_USING_TIME'):
|
2019-08-22 15:34:50 +08:00
|
|
|
src += ['time.c']
|
|
|
|
|
2020-09-08 10:26:03 +08:00
|
|
|
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
|
2018-10-26 14:10:38 +08:00
|
|
|
|
|
|
|
Return('group')
|