2012-11-22 11:39:22 +08:00
|
|
|
from building import *
|
2017-10-13 12:44:54 +08:00
|
|
|
Import('rtconfig')
|
2012-11-22 11:39:22 +08:00
|
|
|
|
2021-10-28 14:48:51 +08:00
|
|
|
src = Glob('*.c')
|
2017-10-13 12:44:54 +08:00
|
|
|
group = []
|
2014-10-28 11:45:43 +08:00
|
|
|
|
|
|
|
CPPDEFINES = ['RT_USING_ARM_LIBC']
|
2012-11-22 11:39:22 +08:00
|
|
|
|
2019-02-18 18:29:22 +08:00
|
|
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
2021-10-28 14:48:51 +08:00
|
|
|
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPDEFINES = CPPDEFINES)
|
2012-11-22 11:39:22 +08:00
|
|
|
|
|
|
|
Return('group')
|