From 345c432767ce103c7e07e693984f1d0c27624db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Thu, 31 Aug 2023 15:40:04 +0200 Subject: [PATCH] Clean up tool ID list too Same idea as in c188837fec5c. --- src/simulation/simtools/meson.build | 32 +++++++++++++++++------------ 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/simulation/simtools/meson.build b/src/simulation/simtools/meson.build index 68368a169..9f15b83f1 100644 --- a/src/simulation/simtools/meson.build +++ b/src/simulation/simtools/meson.build @@ -1,18 +1,24 @@ -simulation_tool_ids = [ - [ 'HEAT', 0 ], - [ 'COOL', 1 ], - [ 'AIR', 2 ], - [ 'VAC', 3 ], - [ 'PGRV', 4 ], - [ 'NGRV', 5 ], - [ 'MIX', 6 ], - [ 'CYCL', 7 ], - [ 'AMBM', 8 ], - [ 'AMBP', 9 ], +simulation_tool_names = [ + 'HEAT', + 'COOL', + 'AIR', + 'VAC', + 'PGRV', + 'NGRV', + 'MIX', + 'CYCL', + 'AMBM', + 'AMBP', ] simulation_tool_src = [] -foreach tool_name_id : simulation_tool_ids - simulation_tool_src += tool_name_id[0] + '.cpp' +simulation_tool_ids = [] +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 simulation_files += files(simulation_tool_src)