2012-11-22 03:39:22 +00:00
|
|
|
from building import *
|
2017-10-13 12:44:54 +08:00
|
|
|
Import('rtconfig')
|
2012-11-22 03:39:22 +00:00
|
|
|
|
2021-10-28 02:48:51 -04:00
|
|
|
src = Glob('*.c')
|
2017-10-13 12:44:54 +08:00
|
|
|
group = []
|
2014-10-28 03:45:43 +00:00
|
|
|
|
2022-04-19 21:56:04 -04:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2022-10-25 00:01:37 -04:00
|
|
|
CPPDEFINES = ['RT_USING_ARMLIBC', 'RT_USING_LIBC', '__STDC_LIMIT_MACROS']
|
|
|
|
AddDepend(['RT_USING_ARMLIBC', 'RT_USING_LIBC'])
|
2021-12-28 23:25:16 -05:00
|
|
|
group = DefineGroup('Compiler', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
2012-11-22 03:39:22 +00:00
|
|
|
|
|
|
|
Return('group')
|