From 3c990db9e1836d6cfcc0cc082c0f62bc6b8bf160 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 16 Sep 2023 04:34:47 +0300 Subject: [PATCH 16/16] Meson: Add homepage setting to .fcproj See osdn #48602 Signed-off-by: Marko Lindqvist --- bootstrap/freeciv.fcproj | 7 +++++-- meson.build | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bootstrap/freeciv.fcproj b/bootstrap/freeciv.fcproj index 1b021a2b42..71c6055eff 100644 --- a/bootstrap/freeciv.fcproj +++ b/bootstrap/freeciv.fcproj @@ -14,7 +14,10 @@ META_URL https://meta.freeciv.org/metaserver.php # FREECIV_STORAGE_DIR ~/.freeciv # Default ports -FREECIV_DEFAULT_PORT=5556 +FREECIV_DEFAULT_PORT 5556 # Uncomment if you want extended/testmatic logging -# FREECIV_TESTMATIC=yes +# FREECIV_TESTMATIC yes + +# Project homepage URL +FREECIV_HOMEPAGE https://www.freeciv.org/ diff --git a/meson.build b/meson.build index 76a89e8fdb..6a4e5309b3 100644 --- a/meson.build +++ b/meson.build @@ -62,6 +62,7 @@ mp_list_url = '' storage_dir = '' default_port = '' testmatic = '' +homepage_url = '"https://www.freeciv.org/"' proj_def = get_option('project-definition') if proj_def != '' @@ -79,6 +80,8 @@ if proj_def != '' default_port = item.substring(21) elif item.startswith('FREECIV_TESTMATIC') testmatic = item.substring(18) + elif item.startswith('FREECIV_HOMEPAGE') + homepage_url = '"' + item.substring(17) + '"' elif not item.startswith('#') and item != '' error('Unknown parameter ' + item + ' in project definition') endif @@ -88,8 +91,6 @@ if proj_def != '' endif endif -homepage_url = '"https://www.freeciv.org"' - priv_conf_data = configuration_data() pub_conf_data = configuration_data() liblua_conf_data = configuration_data() -- 2.40.1