mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 16:03:30 +08:00
【完善】dist-ide 功能实现代码
This commit is contained in:
parent
8329c29f84
commit
1dbbedbc2f
@ -144,17 +144,16 @@ def bsp_update_kconfig_library(dist_dir):
|
|||||||
def bs_update_ide_project(bsp_root, rtt_root, rttide = None):
|
def bs_update_ide_project(bsp_root, rtt_root, rttide = None):
|
||||||
import subprocess
|
import subprocess
|
||||||
# default update the projects which have template file
|
# default update the projects which have template file
|
||||||
tgt_dict = {'mdk4':('keil', 'armcc'),
|
|
||||||
'mdk5':('keil', 'armcc'),
|
|
||||||
'iar':('iar', 'iar'),
|
|
||||||
'vs':('msvc', 'cl'),
|
|
||||||
'vs2012':('msvc', 'cl'),
|
|
||||||
'cdk':('gcc', 'gcc')}
|
|
||||||
|
|
||||||
ide_dict = {'eclipse':('gcc', 'gcc')}
|
if rttide == None:
|
||||||
|
tgt_dict = {'mdk4':('keil', 'armcc'),
|
||||||
if rttide != None:
|
'mdk5':('keil', 'armcc'),
|
||||||
tgt_dict = ide_dict
|
'iar':('iar', 'iar'),
|
||||||
|
'vs':('msvc', 'cl'),
|
||||||
|
'vs2012':('msvc', 'cl'),
|
||||||
|
'cdk':('gcc', 'gcc')}
|
||||||
|
else:
|
||||||
|
tgt_dict = {'eclipse':('gcc', 'gcc')}
|
||||||
|
|
||||||
scons_env = os.environ.copy()
|
scons_env = os.environ.copy()
|
||||||
scons_env['RTT_ROOT'] = rtt_root
|
scons_env['RTT_ROOT'] = rtt_root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user