Clean up tool ID list too

Same idea as in c188837fec.
This commit is contained in:
Tamás Bálint Misius
2023-08-31 15:40:04 +02:00
parent c188837fec
commit 345c432767

View File

@@ -1,18 +1,24 @@
simulation_tool_ids = [ simulation_tool_names = [
[ 'HEAT', 0 ], 'HEAT',
[ 'COOL', 1 ], 'COOL',
[ 'AIR', 2 ], 'AIR',
[ 'VAC', 3 ], 'VAC',
[ 'PGRV', 4 ], 'PGRV',
[ 'NGRV', 5 ], 'NGRV',
[ 'MIX', 6 ], 'MIX',
[ 'CYCL', 7 ], 'CYCL',
[ 'AMBM', 8 ], 'AMBM',
[ 'AMBP', 9 ], 'AMBP',
] ]
simulation_tool_src = [] simulation_tool_src = []
foreach tool_name_id : simulation_tool_ids simulation_tool_ids = []
simulation_tool_src += tool_name_id[0] + '.cpp' tool_id = 0
foreach tool_name : simulation_tool_names
if not is_disabler(tool_name)
simulation_tool_src += tool_name + '.cpp'
simulation_tool_ids += [ [ tool_name, tool_id ] ]
endif
tool_id = tool_id + 1
endforeach endforeach
simulation_files += files(simulation_tool_src) simulation_files += files(simulation_tool_src)