c318dfa964
- [libc] 解决由于类unix操作系统发展历史原因fcntl.h定义的标志位在不同编译器中定义不同的问题 - [simulator] 部分宏定义转为全局宏定义以确保vs内置文件可以正确配置 - [simulator] 取消自欺欺人式的警告消除处理方式 - [libc][time] 优化time相关结构体在不同编译器下的包含
22 lines
453 B
Python
22 lines
453 B
Python
import os
|
|
from building import *
|
|
Import('rtconfig')
|
|
|
|
src = []
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd]
|
|
group = []
|
|
|
|
src += Glob('*.c')
|
|
|
|
if rtconfig.PLATFORM != 'gcc':
|
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
list = os.listdir(cwd)
|
|
for d in list:
|
|
path = os.path.join(cwd, d)
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
group = group + SConscript(os.path.join(d, 'SConscript'))
|
|
|
|
Return('group')
|