From fc1ef1e1c444a869031e5456f5b038c8b03de826 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 3 Oct 2023 02:49:09 +0300 Subject: [PATCH 53/53] Meson: Build server libs only when needed See osdn #48796 Signed-off-by: Marko Lindqvist --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 6b6e6bd8e4..a91171b3f1 100644 --- a/meson.build +++ b/meson.build @@ -1340,6 +1340,8 @@ common_lib = library('freeciv', install : true ) +if server_type != 'disabled' or get_option('tools').length() > 0 + if server_type == 'disabled' ais = static_library('fc_ai', @@ -1468,6 +1470,8 @@ server_lib = static_library('fc_server', dependencies: lua_dep ) +endif + if server_type != 'disabled' executable(server_binary_name, 'server/srv_entrypoint.c', -- 2.40.1