summaryrefslogtreecommitdiff
path: root/tools/building.py
diff options
context:
space:
mode:
authorSummerGift <[email protected]>2019-06-18 10:29:49 +0800
committerSummerGift <[email protected]>2019-06-18 10:31:29 +0800
commit8329c29f84c4cb8f16fe245f87fda2760d3e3b81 (patch)
tree5e0b799c4749ccd892dd235c3a8a5081c4c3ab3d /tools/building.py
parent5c78ab740f5e7bf1ce8341c2bad01b54153abad9 (diff)
[修改] 将命令格式修改为 scons --dist-ide --target-path=your__prj_path --target-name=your_prj_name
Diffstat (limited to 'tools/building.py')
-rw-r--r--tools/building.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/building.py b/tools/building.py
index 142c5eccc2..9e12b81204 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -163,9 +163,19 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
help = 'make distribution and strip useless files')
AddOption('--dist-ide',
dest = 'make-dist-ide',
- type = 'string',
+ action = 'store_true',
default = False,
help = 'make distribution for rt-thread eclipse ide')
+ AddOption('--project-path',
+ dest = 'make-project-path',
+ type = 'string',
+ default = False,
+ help = 'set dist-ide project output path')
+ AddOption('--project-name',
+ dest = 'make-project-name',
+ type = 'string',
+ default = False,
+ help = 'set dist-ide project name')
AddOption('--cscope',
dest = 'cscope',
action = 'store_true',
@@ -872,8 +882,9 @@ def EndBuilding(target, program = None):
need_exit = True
if GetOption('make-dist-ide') and program != None:
from mkdist import MkDist
- output_path = GetOption('make-dist-ide')[5:]
- rtt_ide = {'output_path': output_path}
+ project_path = GetOption('make-project-path')
+ project_name = GetOption('make-project-name')
+ rtt_ide = {'project_path' : project_path, 'project_name' : project_name}
MkDist(program, BSP_ROOT, Rtt_Root, Env, rtt_ide)
need_exit = True
if GetOption('cscope'):