From 9dd14cda40da1c91e853d0193c74470a557543aa Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 30 Sep 2023 09:04:49 +0300 Subject: [PATCH 54/54] Meson: Build fc_toolutil only when needed See osdn #48759 Signed-off-by: Marko Lindqvist --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 45663542c9..b8b0f07dd9 100644 --- a/meson.build +++ b/meson.build @@ -4088,6 +4088,8 @@ executable('freeciv-mp-cli', endif +if get_option('tools').length() > 0 + tool_lib = static_library('fc_toolutil', 'tools/ruleutil/comments.c', 'tools/ruleutil/rulesave.c', @@ -4096,6 +4098,10 @@ tool_lib = static_library('fc_toolutil', include_directories: server_inc, ) +else + tool_lib = [] +endif + if get_option('tools').contains('ruleup') executable('freeciv-ruleup', -- 2.40.1