Added option for projects to add own variables.

This commit is contained in:
Patrick 2025-07-06 10:40:33 +02:00
parent 8770bd97dc
commit 0ac1621494

View File

@ -871,6 +871,10 @@ vars.Add('COMPILATIONDB_FILTER_FILES', 'Removes source files from the compilatio
vars.Add('SHOW_INCLUDES', 'Show include hierarchy (for debugging).', False)
vars.Add('ENABLE_ASAN', 'Enable address sanitization.', bool(enable_asan))
if 'VARIABLES' in config:
for vardef in config['VARIABLES']:
vars.Add(*vardef)
tools = ['default', 'compilation_db', 'unity_build']
if 'TOOLS' in config:
tools.extend(config['TOOLS'])