mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-21 15:41:41 +08:00
add rt_studio.py version infomation
This commit is contained in:
@@ -524,14 +524,13 @@ def TargetEclipse(env, reset=False, prj_name=None):
|
|||||||
# generate projcfg.ini file
|
# generate projcfg.ini file
|
||||||
if not os.path.exists('.settings/projcfg.ini'):
|
if not os.path.exists('.settings/projcfg.ini'):
|
||||||
# if search files with uvprojx or uvproj suffix
|
# if search files with uvprojx or uvproj suffix
|
||||||
|
file = ""
|
||||||
items = os.listdir(".")
|
items = os.listdir(".")
|
||||||
if len(items) > 0:
|
if len(items) > 0:
|
||||||
for item in items:
|
for item in items:
|
||||||
if item.endswith(".uvprojx") or item.endswith(".uvproj"):
|
if item.endswith(".uvprojx") or item.endswith(".uvproj"):
|
||||||
file = os.path.abspath(item)
|
file = os.path.abspath(item)
|
||||||
break
|
break
|
||||||
else:
|
|
||||||
file = ""
|
|
||||||
chip_name = rt_studio.get_mcu_info(file)
|
chip_name = rt_studio.get_mcu_info(file)
|
||||||
if rt_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!')
|
||||||
|
@@ -5,6 +5,9 @@ from string import Template
|
|||||||
import rtconfig
|
import rtconfig
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
# version
|
||||||
|
MODULE_VER_NUM = 6
|
||||||
|
|
||||||
cproject_temp = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
cproject_temp = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||||
|
Reference in New Issue
Block a user