加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
qmsd-panel 提交于 2024-02-05 11:11 . version: 1.1.0
Import('AIC_ROOT')
Import('PRJ_CHIP')
Import('PRJ_BOARD')
Import('PRJ_KERNEL')
Import('PRJ_APP')
import os
from building import *
objs = []
# chip
rel_path = os.path.join('bsp/zx/sys/' + PRJ_CHIP, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# board
rel_path = os.path.join('target/' + PRJ_CHIP, PRJ_BOARD, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# kernel/xxx
rel_path = os.path.join('kernel', PRJ_KERNEL, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# kernel/common
rel_path = os.path.join('kernel', 'common', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# bsp
rel_path = os.path.join('bsp', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# packages
rel_path = os.path.join('packages', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# app
app_os = PRJ_KERNEL
if PRJ_KERNEL == 'rt-thread':
app_os = 'os'
rel_path = os.path.join('application', app_os, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
Return('objs')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化