[tools] change the cpp eclipse project check function.
This commit is contained in:
parent
fd3dd9d85b
commit
06579a46ed
|
@ -20,6 +20,8 @@ from utils import xml_indent
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
from xml.etree.ElementTree import SubElement
|
from xml.etree.ElementTree import SubElement
|
||||||
|
|
||||||
|
from building import *
|
||||||
|
|
||||||
MODULE_VER_NUM = 0
|
MODULE_VER_NUM = 0
|
||||||
|
|
||||||
source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm']
|
source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm']
|
||||||
|
@ -139,11 +141,7 @@ def IsRttEclipsePathFormat(path):
|
||||||
|
|
||||||
|
|
||||||
def IsCppProject():
|
def IsCppProject():
|
||||||
with open('.project', mode = 'r') as f:
|
return GetDepend('RT_USING_CPLUSPLUS')
|
||||||
for line in f.readlines():
|
|
||||||
if line.find('org.eclipse.cdt.core.ccnature') != -1:
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def HandleToolOption(tools, env, project, reset):
|
def HandleToolOption(tools, env, project, reset):
|
||||||
|
|
Loading…
Reference in New Issue