From 945fcf8b4376aec84ebf1c89cf458e444c621b99 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 16 Sep 2023 04:31:24 +0300 Subject: [PATCH 18/18] Meson: Add homepage setting to .fcproj See osdn #48602 Signed-off-by: Marko Lindqvist --- bootstrap/freeciv.fcproj | 9 ++++++--- meson.build | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bootstrap/freeciv.fcproj b/bootstrap/freeciv.fcproj index a962132783..860f575667 100644 --- a/bootstrap/freeciv.fcproj +++ b/bootstrap/freeciv.fcproj @@ -14,10 +14,13 @@ 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 # Uncomment to be able load recent development (unstable) savegame formats -# FREECIV_DEV_SAVE_COMPAT=yes +# FREECIV_DEV_SAVE_COMPAT yes + +# Project homepage URL +FREECIV_HOMEPAGE https://www.freeciv.org/ diff --git a/meson.build b/meson.build index ff2ffe983c..846b0f7958 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,7 @@ storage_dir = '' default_port = '' testmatic = '' dev_save_compat = '' +homepage_url = '"https://www.freeciv.org/"' proj_def = get_option('project-definition') if proj_def != '' @@ -82,6 +83,8 @@ if proj_def != '' testmatic = item.substring(18) elif item.startswith('FREECIV_DEV_SAVE_COMPAT') dev_save_compat = item.substring(24) + elif item.startswith('FREECIV_HOMEPAGE') + homepage_url = '"' + item.substring(17) + '"' elif not item.startswith('#') and item != '' error('Unknown parameter ' + item + ' in project definition') endif @@ -91,8 +94,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