Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions tools/eclipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from building import *

MODULE_VER_NUM = 3
MODULE_VER_NUM = 4

source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm']

Expand Down Expand Up @@ -348,12 +348,13 @@ def GenExcluding(env, project):
rtt_root = os.path.abspath(env['RTT_ROOT'])
bsp_root = os.path.abspath(env['BSP_ROOT'])
coll_dirs = CollectPaths(project['DIRS'])
all_paths = [OSPath(path) for path in coll_dirs]
all_paths_temp = [OSPath(path) for path in coll_dirs]
all_paths = []

# remove unused path
for path in all_paths:
if not path.startswith(rtt_root) and not path.startswith(bsp_root):
all_paths.remove(path)
# add used path
for path in all_paths_temp:
if path.startswith(rtt_root) or path.startswith(bsp_root):
all_paths.append(path)

if bsp_root.startswith(rtt_root):
# bsp folder is in the RT-Thread root folder, such as the RT-Thread source code on GitHub
Expand Down