diff options
| author | armink <[email protected]> | 2020-02-17 21:51:48 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2020-02-17 21:51:48 +0800 |
| commit | 06579a46ed81ef5e6fbe6bf19bff3ff32c7f0bb0 (patch) | |
| tree | a2e8625e7ccf731b92b00807386f3a3ffd2e62ed /tools/eclipse.py | |
| parent | fd3dd9d85b2e3858e188cce5ecb5c938390bd636 (diff) | |
[tools] change the cpp eclipse project check function.
Diffstat (limited to 'tools/eclipse.py')
| -rw-r--r-- | tools/eclipse.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 916041019a..0f001b8bb8 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -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): |
