1 Star 0 Fork 286

MicroOS/OneOS

forked from OneOS/OneOS 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 1010 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhouping1 提交于 2022-04-21 11:39 +08:00 . update OneOS-V2.2.0
from build_tools import *
import osconfig
objs = []
# get current directory
cwd = PresentDir()
list = os.listdir(cwd)
# The set of source files associated with this SConscript file.
src = Glob('machine/*.c')
src += Glob('machine/middle/*.c')
src += Glob('start/src/*.c')
src += Glob('machine/driver/OneOS/*.c')
src += Glob('machine/device_bus_model/*.c')
path = [cwd + '/']
path += [cwd + '/start/include']
path += [cwd + '/machine']
path += [cwd + '/machine/middle/include']
path += [cwd + '/machine/driver/OneOS/include']
path += [cwd + '/machine/device_bus_model']
LOCAL_CCFLAGS = ''
if osconfig.CROSS_TOOL == 'keil':
LOCAL_CCFLAGS += ' --c99 --gnu'
group = AddCodeGroup('micropython', src, depend = ['PKG_USING_MICROPYTHON'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(item, 'SConscript'))
objs = objs + group
Return('objs')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/MicroOS/OneOS.git
git@gitee.com:MicroOS/OneOS.git
MicroOS
OneOS
OneOS
master

搜索帮助