[tools] add more c++ src file type
This commit is contained in:
parent
b81d73e847
commit
827daef863
@ -21,7 +21,7 @@ from utils import xml_indent
|
|||||||
|
|
||||||
MODULE_VER_NUM = 6
|
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):
|
def OSPath(path):
|
||||||
|
@ -54,7 +54,7 @@ def do_copy_folder(src_dir, dst_dir, ignore=None):
|
|||||||
|
|
||||||
shutil.copytree(src_dir, dst_dir, ignore = ignore)
|
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 = []
|
source_list = []
|
||||||
|
|
||||||
def walk_children(child):
|
def walk_children(child):
|
||||||
|
@ -106,7 +106,7 @@ def xml_indent(elem, level=0):
|
|||||||
elem.tail = i
|
elem.tail = i
|
||||||
|
|
||||||
|
|
||||||
source_ext = ["c", "h", "s", "S", "cpp", "xpm"]
|
source_ext = ["c", "h", "s", "S", "cpp", "cxx", "cc", "xpm"]
|
||||||
source_list = []
|
source_list = []
|
||||||
|
|
||||||
def walk_children(child):
|
def walk_children(child):
|
||||||
|
@ -40,7 +40,7 @@ SConscript_com = '''# RT-Thread building script for component
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp') + Glob('*.cxx') + Glob('*.cc')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('COMPONENT_NAME', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('COMPONENT_NAME', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user