Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dgr6878
rt-thread
提交
c8beffee
R
rt-thread
项目概览
dgr6878
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c8beffee
编写于
10月 25, 2019
作者:
armink_ztl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[tools] improve the eclipse project's exclude paths.
上级
3333462d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
9 deletion
+18
-9
tools/eclipse.py
tools/eclipse.py
+18
-9
未找到文件。
tools/eclipse.py
浏览文件 @
c8beffee
...
...
@@ -172,7 +172,7 @@ def HandleToolOption(tools, env, project, reset, mcu_type):
SubElement
(
option
,
'listOptionValue'
,
{
'builtIn'
:
'false'
,
'value'
:
item
})
# change the inclue files (default) or definitions
if
include_files_option
is
not
None
:
option
=
include_
path
s_option
option
=
include_
file
s_option
file_header
=
'''
#ifndef RTCONFIG_PREINC_H__
#define RTCONFIG_PREINC_H__
...
...
@@ -313,7 +313,20 @@ def GenExcluding(env, project, mcu_type):
exclude_paths
=
ExcludePaths
(
rtt_root
,
all_paths
)
elif
rtt_root
.
startswith
(
bsp_root
):
# RT-Thread root folder is in the bsp folder, such as project folder which generate by 'scons --dist' cmd
exclude_paths
=
ExcludePaths
(
bsp_root
,
all_paths
)
if
mcu_type
is
None
:
# BSP mode, not MCU mode
exclude_paths
=
ExcludePaths
(
bsp_root
,
all_paths
)
else
:
check_path
=
[]
exclude_paths
=
[]
# analyze the primary folder which relative to BSP_ROOT and in all_paths
for
path
in
all_paths
:
if
path
.
startswith
(
bsp_root
)
:
folders
=
RelativeProjectPath
(
env
,
path
).
split
(
'
\\
'
)
if
folders
[
0
]
!=
'.'
and
'
\\
'
+
folders
[
0
]
not
in
check_path
:
check_path
+=
[
'
\\
'
+
folders
[
0
]]
# exclue the folder which has managed by scons
for
path
in
check_path
:
exclude_paths
+=
ExcludePaths
(
bsp_root
+
path
,
all_paths
)
else
:
exclude_paths
=
ExcludePaths
(
rtt_root
,
all_paths
)
exclude_paths
+=
ExcludePaths
(
bsp_root
,
all_paths
)
...
...
@@ -332,19 +345,15 @@ def GenExcluding(env, project, mcu_type):
exclude_paths
+=
[
path
]
exclude_paths
=
[
RelativeProjectPath
(
env
,
path
).
replace
(
'
\\
'
,
'/'
)
for
path
in
exclude_paths
]
env
[
'ExPaths'
]
=
exclude_paths
all_files
=
CollectFiles
(
all_paths
,
source_pattern
)
src_files
=
project
[
'FILES'
]
exclude_files
=
ExcludeFiles
(
all_files
,
src_files
)
exclude_files
=
[
RelativeProjectPath
(
env
,
file
).
replace
(
'
\\
'
,
'/'
)
for
file
in
exclude_files
]
env
[
'ExFiles'
]
=
exclude_files
if
mcu_type
:
# TODO save the rt-thread and packages exclude folder only
# TODO exclude the libraries/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/ arm|iar|gcc/xxx.s
pass
env
[
'ExPaths'
]
=
exclude_paths
env
[
'ExFiles'
]
=
exclude_files
return
exclude_paths
+
exclude_files
...
...
@@ -360,7 +369,7 @@ def RelativeProjectPath(env, path):
return
'rt-thread/'
+
_make_path_relative
(
rtt_root
,
path
)
# TODO add others folder
print
(
'ERROR: the '
+
path
+
'not support'
)
print
(
'ERROR: the '
+
path
+
'
not support'
)
return
path
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录