|
@@ -83,6 +83,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
|
action='store_true',
|
|
action='store_true',
|
|
default=False,
|
|
default=False,
|
|
help='copy header of rt-thread directory to local.')
|
|
help='copy header of rt-thread directory to local.')
|
|
|
|
+ AddOption('--cscope',
|
|
|
|
+ dest='cscope',
|
|
|
|
+ action='store_true',
|
|
|
|
+ default=False,
|
|
|
|
+ help='Build Cscope cross reference database. Requires cscope installed.')
|
|
|
|
|
|
# add build library option
|
|
# add build library option
|
|
AddOption('--buildlib',
|
|
AddOption('--buildlib',
|
|
@@ -341,6 +346,10 @@ def EndBuilding(target, program = None):
|
|
if GetOption('copy-header') and program != None:
|
|
if GetOption('copy-header') and program != None:
|
|
MakeCopyHeader(program)
|
|
MakeCopyHeader(program)
|
|
|
|
|
|
|
|
+ if GetOption('cscope'):
|
|
|
|
+ from cscope import CscopeDatabase
|
|
|
|
+ CscopeDatabase(Projects)
|
|
|
|
+
|
|
def SrcRemove(src, remove):
|
|
def SrcRemove(src, remove):
|
|
if type(src[0]) == type('str'):
|
|
if type(src[0]) == type('str'):
|
|
for item in src:
|
|
for item in src:
|