1 Star 0 Fork 0

RT-Thread-Mirror/mlibc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
from building import *
import os
Import('rtconfig')
cwd = GetCurrentDir()
src = Glob('src/*.c')
objs = []
list = os.listdir(cwd)
CPPPATH = [cwd + '/include']
CPPPATH += [cwd + '/src/internal']
CPPDEFINES = ['RT_USING_MLIBC', 'RT_USING_LIBC']
LIBS = ['gcc']
CCFLAGS = ""
LINKFLAGS = " -nostartfiles -nostdlib -nostdinc -lgcc "
if GetDepend('PKG_USING_MLIBC'):
AddDepend(['RT_USING_MLIBC', 'RT_USING_LIBC'])
group = DefineGroup('Compiler', src, depend = ['PKG_USING_MLIBC'], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS, CPPDEFINES = CPPDEFINES, LIBS = LIBS, CCFLAGS=CCFLAGS)
objs += group
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
Return('objs')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/RT-Thread-Mirror/mlibc.git
git@gitee.com:RT-Thread-Mirror/mlibc.git
RT-Thread-Mirror
mlibc
mlibc
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385