[tools] add more c++ src file type

This commit is contained in:
liuchao 2024-12-12 10:28:42 +08:00 committed by Meco Man
parent b81d73e847
commit 827daef863
4 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)