aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-26 15:43:45 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-26 15:46:10 +0200
commit2869c656c1499d5667d6acdcc557c0810a6eb137 (patch)
treeb9338d84ba91666906883bddaa0782293a1825ac
parentec713b633e0add828cdf410c10eee7b48717ba55 (diff)
downloadfiv-2869c656c1499d5667d6acdcc557c0810a6eb137.tar.gz
fiv-2869c656c1499d5667d6acdcc557c0810a6eb137.tar.xz
fiv-2869c656c1499d5667d6acdcc557c0810a6eb137.zip
Centralize the project's URL
-rw-r--r--fiv.c2
-rw-r--r--fiv.wxs.in2
-rw-r--r--meson.build3
3 files changed, 5 insertions, 2 deletions
diff --git a/fiv.c b/fiv.c
index 29b0377..ce2505e 100644
--- a/fiv.c
+++ b/fiv.c
@@ -458,7 +458,7 @@ show_about_dialog(GtkWidget *parent)
GtkWidget *website = gtk_label_new(NULL);
gtk_label_set_selectable(GTK_LABEL(website), TRUE);
- const char *url = "https://git.janouch.name/p/" PROJECT_NAME;
+ const char *url = PROJECT_URL;
gchar *link = g_strdup_printf("<a href='%s'>%s</a>", url, url);
gtk_label_set_markup(GTK_LABEL(website), link);
g_free(link);
diff --git a/fiv.wxs.in b/fiv.wxs.in
index 7c34878..f44611b 100644
--- a/fiv.wxs.in
+++ b/fiv.wxs.in
@@ -27,7 +27,7 @@
<Media Id='1' Cabinet='data.cab' EmbedCab='yes' />
<Icon Id='fiv.ico' SourceFile='fiv.ico' />
<Property Id='ARPPRODUCTICON' Value='fiv.ico' />
- <Property Id='ARPURLINFOABOUT' Value='https://git.janouch.name/p/fiv' />
+ <Property Id='ARPURLINFOABOUT' Value='@ProjectURL@' />
<UIRef Id='WixUI_Minimal' />
<!-- This isn't supported by msitools, but is necessary for WiX.
diff --git a/meson.build b/meson.build
index f809ebd..4bdca2e 100644
--- a/meson.build
+++ b/meson.build
@@ -93,11 +93,13 @@ endif
# XXX: https://github.com/mesonbuild/meson/issues/825
docdir = get_option('datadir') / 'doc' / meson.project_name()
application_ns = 'name.janouch.'
+application_url = 'https://janouch.name/p/' + meson.project_name()
conf = configuration_data()
conf.set_quoted('PROJECT_NAME', meson.project_name())
conf.set_quoted('PROJECT_VERSION', '@VCS_TAG@')
conf.set_quoted('PROJECT_NS', application_ns)
+conf.set_quoted('PROJECT_URL', application_url)
conf.set_quoted('PROJECT_DOCDIR', get_option('prefix') / docdir)
if win32
conf.set_quoted('PROJECT_DOCDIR', docdir)
@@ -344,6 +346,7 @@ elif meson.is_cross_build()
configuration : configuration_data({
'ProjectName' : meson.project_name(),
'ProjectVersion' : meson.project_version(),
+ 'ProjectURL' : application_url,
}),
)
custom_target('package',