Allow settings COMPILATIONDB_FILTER_FILES via config.
This commit is contained in:
parent
5de1ac4444
commit
396350b295
@ -401,6 +401,9 @@ if not config.get('CXX_STANDARD'):
|
|||||||
if not config.get('PREPROCESSOR_PREFIX'):
|
if not config.get('PREPROCESSOR_PREFIX'):
|
||||||
config['PREPROCESSOR_PREFIX'] = config['PROJECT_NAME'].upper() # TODO: may be nicer?
|
config['PREPROCESSOR_PREFIX'] = config['PROJECT_NAME'].upper() # TODO: may be nicer?
|
||||||
|
|
||||||
|
if 'COMPILATIONDB_FILTER_FILES' not in config:
|
||||||
|
config['COMPILATIONDB_FILTER_FILES'] = True
|
||||||
|
|
||||||
AddOption(
|
AddOption(
|
||||||
'--build_type',
|
'--build_type',
|
||||||
dest = 'build_type',
|
dest = 'build_type',
|
||||||
@ -496,7 +499,8 @@ vars.Add('CFLAGS', 'C Compiler Flags')
|
|||||||
vars.Add('CXXFLAGS', 'C++ Compiler Flags')
|
vars.Add('CXXFLAGS', 'C++ Compiler Flags')
|
||||||
vars.Add('LINKFLAGS', 'Linker Flags')
|
vars.Add('LINKFLAGS', 'Linker Flags')
|
||||||
vars.Add('PYTHON', 'Python Executable', 'python')
|
vars.Add('PYTHON', 'Python Executable', 'python')
|
||||||
vars.Add('COMPILATIONDB_FILTER_FILES', 'Removes source files from the compilation DB that are not from the current project.', True)
|
vars.Add('COMPILATIONDB_FILTER_FILES', 'Removes source files from the compilation DB that are not from the current'
|
||||||
|
' project.', config['COMPILATIONDB_FILTER_FILES'])
|
||||||
|
|
||||||
tools = ['default', 'compilation_db', 'unity_build']
|
tools = ['default', 'compilation_db', 'unity_build']
|
||||||
if 'TOOLS' in config:
|
if 'TOOLS' in config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user