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')
|
|
|
|
cwd = GetCurrentDir()
|
2015-01-31 11:13:50 +08:00
|
|
|
group = []
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
CPPDEFINES = ['RT_USING_DLIBC']
|
|
|
|
|
|
|
|
if rtconfig.PLATFORM == 'iar':
|
2015-05-04 20:35:28 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_DFS'):
|
|
|
|
CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR', '_DLIB_THREAD_SUPPORT']
|
|
|
|
|
2015-01-31 11:13:50 +08:00
|
|
|
group = DefineGroup('dlib', src, depend = ['RT_USING_LIBC'],
|
2015-01-31 21:59:58 +08:00
|
|
|
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
2015-01-31 11:13:50 +08:00
|
|
|
|
|
|
|
Return('group')
|