Motion_EC_HC32_archived/rt-thread/components/libc/compilers/dlib/SConscript

27 lines
629 B
Python
Raw Normal View History

2022-01-10 16:20:39 +08:00
from building import *
2022-01-10 17:10:14 +08:00
2022-01-10 16:20:39 +08:00
Import('rtconfig')
src = Glob('*.c')
2022-01-10 17:10:14 +08:00
cwd = GetCurrentDir()
2022-01-10 16:20:39 +08:00
group = []
2022-01-10 17:10:14 +08:00
CPPPATH = [cwd]
2022-01-10 16:20:39 +08:00
CPPDEFINES = ['RT_USING_DLIBC']
if rtconfig.PLATFORM == 'iar':
2022-01-10 17:10:14 +08:00
if GetDepend('RT_USING_DFS'):
2022-01-10 16:20:39 +08:00
from distutils.version import LooseVersion
from iar import IARVersion
CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR']
2022-01-10 17:10:14 +08:00
2022-01-10 16:20:39 +08:00
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
2022-01-10 17:10:14 +08:00
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
2022-01-10 16:20:39 +08:00
Return('group')