提交 06579a46 编写于 作者: armink_ztl's avatar armink_ztl

[tools] change the cpp eclipse project check function.

上级 fd3dd9d8
......@@ -20,6 +20,8 @@ from utils import xml_indent
import xml.etree.ElementTree as etree
from xml.etree.ElementTree import SubElement
from building import *
MODULE_VER_NUM = 0
source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm']
......@@ -139,11 +141,7 @@ def IsRttEclipsePathFormat(path):
def IsCppProject():
with open('.project', mode = 'r') as f:
for line in f.readlines():
if line.find('org.eclipse.cdt.core.ccnature') != -1:
return True
return False
return GetDepend('RT_USING_CPLUSPLUS')
def HandleToolOption(tools, env, project, reset):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册