4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-24 14:17:22 +08:00

21 lines
552 B
Python
Raw Normal View History

2015-01-31 11:13:50 +08:00
from building import *
2017-10-13 12:44:54 +08:00
Import('rtconfig')
2015-01-31 11:13:50 +08:00
2017-10-13 12:44:54 +08:00
src = Glob('*.c')
2015-01-31 11:13:50 +08:00
group = []
CPPDEFINES = ['RT_USING_DLIBC']
if rtconfig.PLATFORM == 'iar':
2021-11-15 11:22:49 -05:00
if GetDepend('DFS_USING_POSIX'):
from distutils.version import LooseVersion
from iar import IARVersion
CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR']
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
2021-12-26 09:41:24 -05:00
group = DefineGroup('compiler-libc', src, depend = [], CPPDEFINES = CPPDEFINES)
2015-01-31 11:13:50 +08:00
Return('group')