1 Star 1 Fork 2

RT-Thread/userapps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SConstruct 825 Bytes
一键复制 编辑 原始数据 按行查看 历史
bernard 提交于 2020-10-25 16:39 . import code
import sys
import os
# add building.py path
sys.path = sys.path + [os.path.join('..', 'tools')]
from building import *
cwd = GetCurrentDir()
list = os.listdir(os.path.join(cwd, 'apps'))
AddOption('--app',
dest = 'make-application',
type = 'string',
default = None,
help = 'make application')
app = None
if GetOption('make-application'):
app = GetOption('make-application')
if app:
item = app
path = os.path.join(cwd, 'apps', item)
if os.path.isfile(os.path.join(path, 'SConscript')):
BuildApplication(item, path + '/SConscript', usr_root = '.')
else:
for item in list:
path = os.path.join(cwd, 'apps', item)
if os.path.isfile(os.path.join(path, 'SConscript')):
BuildApplication(item, path + '/SConscript', usr_root = '.')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/rtthread/userapps.git
git@gitee.com:rtthread/userapps.git
rtthread
userapps
userapps
main

搜索帮助