提交 c32a2b3c 编写于 作者: Y yaxing.chen

rename studio.py to rt_studio.py

上级 9b7971e8
...@@ -13,7 +13,7 @@ import glob ...@@ -13,7 +13,7 @@ import glob
import xml.etree.ElementTree as etree import xml.etree.ElementTree as etree
from xml.etree.ElementTree import SubElement from xml.etree.ElementTree import SubElement
import studio import rt_studio
from building import * from building import *
from utils import * from utils import *
from utils import _make_path_relative from utils import _make_path_relative
...@@ -511,13 +511,13 @@ def TargetEclipse(env, reset=False, prj_name=None): ...@@ -511,13 +511,13 @@ def TargetEclipse(env, reset=False, prj_name=None):
# generate cproject file # generate cproject file
if not os.path.exists('.cproject'): if not os.path.exists('.cproject'):
if studio.gen_cproject_file(os.path.abspath(".cproject")) is False: if rt_studio.gen_cproject_file(os.path.abspath(".cproject")) is False:
print('Fail!') print('Fail!')
return return
# generate project file # generate project file
if not os.path.exists('.project'): if not os.path.exists('.project'):
if studio.gen_project_file(os.path.abspath(".project")) is False: if rt_studio.gen_project_file(os.path.abspath(".project")) is False:
print('Fail!') print('Fail!')
return return
...@@ -527,20 +527,20 @@ def TargetEclipse(env, reset=False, prj_name=None): ...@@ -527,20 +527,20 @@ def TargetEclipse(env, reset=False, prj_name=None):
file = os.path.abspath("template.uvprojx") file = os.path.abspath("template.uvprojx")
else: else:
file = os.path.abspath("template.uvproj") file = os.path.abspath("template.uvproj")
chip_name = studio.get_mcu_info(file) chip_name = rt_studio.get_mcu_info(file)
if studio.gen_projcfg_ini_file(chip_name, prj_name, os.path.abspath(".settings/projcfg.ini")) is False: if rt_studio.gen_projcfg_ini_file(chip_name, prj_name, os.path.abspath(".settings/projcfg.ini")) is False:
print('Fail!') print('Fail!')
return return
# enable lowwer .s file compiled in eclipse cdt # enable lowwer .s file compiled in eclipse cdt
if not os.path.exists('.settings/org.eclipse.core.runtime.prefs'): if not os.path.exists('.settings/org.eclipse.core.runtime.prefs'):
if studio.gen_org_eclipse_core_runtime_prefs( if rt_studio.gen_org_eclipse_core_runtime_prefs(
os.path.abspath(".settings/org.eclipse.core.runtime.prefs")) is False: os.path.abspath(".settings/org.eclipse.core.runtime.prefs")) is False:
print('Fail!') print('Fail!')
return return
# add clean2 target to fix issues when files too many # add clean2 target to fix issues when files too many
if studio.gen_makefile_targets(os.path.abspath("makefile.targets")) is False: if rt_studio.gen_makefile_targets(os.path.abspath("makefile.targets")) is False:
print('Fail!') print('Fail!')
return return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册