diff --git a/tools/eclipse.py b/tools/eclipse.py index 878dbdbbe5..cb8d1050bc 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -21,7 +21,7 @@ from utils import xml_indent MODULE_VER_NUM = 6 -source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm','*.cmd'] +source_pattern = ['*.c', '*.cpp', '*.cxx', '*.cc', '*.s', '*.S', '*.asm','*.cmd'] def OSPath(path): diff --git a/tools/mkdist.py b/tools/mkdist.py index ea1a0c96fc..78a235c9c6 100644 --- a/tools/mkdist.py +++ b/tools/mkdist.py @@ -54,7 +54,7 @@ def do_copy_folder(src_dir, dst_dir, ignore=None): shutil.copytree(src_dir, dst_dir, ignore = ignore) -source_ext = ['c', 'h', 's', 'S', 'cpp', 'xpm'] +source_ext = ['c', 'h', 's', 'S', 'cpp', 'cxx', 'cc', 'xpm'] source_list = [] def walk_children(child): diff --git a/tools/utils.py b/tools/utils.py index 758e561940..9c09bbf40d 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -106,7 +106,7 @@ def xml_indent(elem, level=0): elem.tail = i -source_ext = ["c", "h", "s", "S", "cpp", "xpm"] +source_ext = ["c", "h", "s", "S", "cpp", "cxx", "cc", "xpm"] source_list = [] def walk_children(child): diff --git a/tools/wizard.py b/tools/wizard.py index d0f39ae01c..7184d3f837 100644 --- a/tools/wizard.py +++ b/tools/wizard.py @@ -40,7 +40,7 @@ SConscript_com = '''# RT-Thread building script for component from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') + Glob('*.cxx') + Glob('*.cc') CPPPATH = [cwd] group = DefineGroup('COMPONENT_NAME', src, depend = [''], CPPPATH = CPPPATH)