From a2b1eae08c064a2cc1b20d23859787301f44a892 Mon Sep 17 00:00:00 2001 From: liuchao Date: Thu, 12 Dec 2024 10:28:42 +0800 Subject: [PATCH] [tools] add more c++ src file type --- tools/eclipse.py | 2 +- tools/mkdist.py | 2 +- tools/utils.py | 2 +- tools/wizard.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/eclipse.py b/tools/eclipse.py index 878dbdbbe57..cb8d1050bcc 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -21,7 +21,7 @@ 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 ea1a0c96fc6..78a235c9c62 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 758e5619402..9c09bbf40d9 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 d0f39ae01c7..7184d3f8375 100644 --- a/tools/wizard.py +++ b/tools/wizard.py @@ -40,7 +40,7 @@ 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)