diff options
| author | liuchao <[email protected]> | 2024-12-12 10:28:42 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-12-11 22:27:05 -0500 |
| commit | 827daef863d4166583f75c3a017d55cc6cf55a1c (patch) | |
| tree | 57712bf7e73638631d6340dc72a641058f5b39b6 /tools | |
| parent | b81d73e847a27eb79d1749b8db713d82ed69016b (diff) | |
[tools] add more c++ src file type
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/eclipse.py | 2 | ||||
| -rw-r--r-- | tools/mkdist.py | 2 | ||||
| -rw-r--r-- | tools/utils.py | 2 | ||||
| -rw-r--r-- | tools/wizard.py | 2 |
4 files changed, 4 insertions, 4 deletions
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) |
