Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
a12892af
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a12892af
编写于
10月 26, 2013
作者:
P
prife
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
simulatr: print error messages when RTT_RTGUI is invalid
上级
ca9b83c6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
15 deletion
+23
-15
bsp/simulator/SConstruct
bsp/simulator/SConstruct
+21
-13
bsp/simulator/drivers/SConscript
bsp/simulator/drivers/SConscript
+2
-2
未找到文件。
bsp/simulator/SConstruct
浏览文件 @
a12892af
...
...
@@ -13,7 +13,6 @@ else:
# set the rtgui root directory by hand
# empty string means use the RTGUI in svn
RTT_RTGUI
=
os
.
path
.
normpath
(
r
'F:\Project\git\rt-gui\components\rtgui'
)
# RTT_RTGUI =''
sys
.
path
=
sys
.
path
+
[
os
.
path
.
join
(
RTT_ROOT
,
'tools'
)]
from
building
import
*
...
...
@@ -88,18 +87,27 @@ else:
objs
=
PrepareBuilding
(
env
,
RTT_ROOT
,
has_libcpu
=
False
,
remove_components
=
[
'rtgui'
])
if
GetDepend
(
'RT_USING_RTGUI'
):
if
RTT_RTGUI
:
objs
+=
SConscript
(
os
.
path
.
join
(
RTT_RTGUI
,
'SConscript'
),
variant_dir
=
'build/components/rtgui'
,
duplicate
=
0
)
objs
=
objs
+
SConscript
(
RTT_RTGUI
+
'/../../demo/examples/SConscript'
,
variant_dir
=
'build/examples/gui'
,
duplicate
=
0
)
else
:
objs
+=
SConscript
(
os
.
path
.
join
(
RTT_ROOT
+
'/components/rtgui'
,
'SConscript'
),
variant_dir
=
'build/components/rtgui'
,
duplicate
=
0
)
objs
=
objs
+
SConscript
(
RTT_ROOT
+
'/examples/gui/SConscript'
,
variant_dir
=
'build/examples/gui'
,
duplicate
=
0
)
try
:
if
RTT_RTGUI
:
objs
+=
SConscript
(
os
.
path
.
join
(
RTT_RTGUI
,
'SConscript'
),
variant_dir
=
'build/components/rtgui'
,
duplicate
=
0
)
objs
=
objs
+
SConscript
(
RTT_RTGUI
+
'/../../demo/examples/SConscript'
,
variant_dir
=
'build/examples/gui'
,
duplicate
=
0
)
else
:
objs
+=
SConscript
(
os
.
path
.
join
(
RTT_ROOT
+
'/components/rtgui'
,
'SConscript'
),
variant_dir
=
'build/components/rtgui'
,
duplicate
=
0
)
objs
=
objs
+
SConscript
(
RTT_ROOT
+
'/examples/gui/SConscript'
,
variant_dir
=
'build/examples/gui'
,
duplicate
=
0
)
except
:
print
print
'RTGUI configuration is invalid!'
print
'RT_USING_RTGUI is enabled in rtconfig.h, but scons cannot find '
+
\
'RTGUI source code. In order to eliminate this error, you can '
+
\
'add RTT_RTGUI in environment to point RTGUI source code, or '
+
\
'disable RT_USING_RTGUI in rtconfig.h'
exit
(
-
1
);
if
GetDepend
(
'RT_USING_TC'
):
objs
=
objs
+
SConscript
(
RTT_ROOT
+
'/examples/kernel/SConscript'
,
variant_dir
=
'build/tc/kernel'
,
duplicate
=
0
)
...
...
bsp/simulator/drivers/SConscript
浏览文件 @
a12892af
...
...
@@ -22,9 +22,9 @@ if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NAND') == False
SrcRemove
(
src
,
'nanddrv_file.c'
)
if
GetDepend
(
'RT_USING_DFS'
)
==
False
or
GetDepend
(
'RT_USING_MTD_NOR'
)
==
False
:
SrcRemove
(
src
,
'sst25vfxx_mtd_sim.c'
)
if
GetDepend
(
'RT_USING_DFS_WINSHAREDIR'
)
==
False
:
if
GetDepend
(
'RT_USING_DFS
'
)
==
False
or
GetDepend
(
'RT_USING_DFS
_WINSHAREDIR'
)
==
False
:
SrcRemove
(
src
,
'dfs_win32.c'
)
if
GetDepend
(
'RT_USING_MODULE'
)
==
False
:
if
GetDepend
(
'RT_USING_
DFS'
)
==
False
or
GetDepend
(
'RT_USING_
MODULE'
)
==
False
:
SrcRemove
(
src
,
[
'module_win32.c'
])
if
GetDepend
(
'RT_USING_TAPNETIF'
)
==
False
:
SrcRemove
(
src
,
[
'tap_netif.c'
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录