messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit b8e0ef4e9763a01be7e951b1b968a5e1943ece12
parent 50a1edb3b7e8c2341e4a48ba7e485d1d19b5fd52
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Sun, 13 Nov 2022 01:39:04 +0100

Include icon, desktop file and app data

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Mconfigure.ac | 1+
Mresources/Makefile.am | 14++++++++++++++
Aresources/icon/Makefile.am | 35+++++++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -61,6 +61,7 @@ AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) AC_CONFIG_FILES([ Makefile resources/Makefile + resources/icon/Makefile src/Makefile src/chat/Makefile src/ui/Makefile diff --git a/resources/Makefile.am b/resources/Makefile.am @@ -1,5 +1,15 @@ # This Makefile.am is in the public domain +SUBDIRS = icon + +desktopdir = $(datadir)/applications +desktop_DATA = \ + org.gnunet.Messenger.desktop + +appdatadir = $(datadir)/appdata +appdata_DATA = \ + org.gnunet.Messenger.appdata.xml + css.c ui.c: %.c: %.gresource.xml glib-compile-resources --sourcedir=$(top_srcdir)/resources $< --generate-source glib-compile-resources --sourcedir=$(top_srcdir)/resources $< --generate-header @@ -17,3 +27,7 @@ noinst_LIBRARIES = libresources.a libresources_a_SOURCES = \ css.c css.h \ ui.c ui.h + +EXTRA_DIST = \ + org.gnunet.Messenger.desktop \ + org.gnunet.Messenger.appdata.xml diff --git a/resources/icon/Makefile.am b/resources/icon/Makefile.am @@ -0,0 +1,35 @@ +# This Makefile.am is in the public domain + +theme=hicolor +themedir=$(datadir)/icons/$(theme) +theme_iconid=org.gnunet.Messenger +theme_iconsizes = \ + 512 \ + 256 \ + 128 \ + 64 \ + 32 + +install-data-local: + @$(NORMAL_INSTALL) + for iconsize in ${theme_iconsizes}; do \ + install -Dm644 "full_color_$${iconsize}.png" \ + "${themedir}/$${iconsize}x$${iconsize}/apps/${theme_iconid}.png"; \ + done + install -Dm644 "full_color.svg" \ + "${themedir}/scalable/apps/${theme_iconid}.svg" + gtk-update-icon-cache -f -t ${themedir} + +uninstall-hook: + for iconsize in ${theme_iconsizes}; do \ + rm -f "${themedir}/$${iconsize}x$${iconsize}/apps/${theme_iconid}.png"; \ + done + rm -f "${themedir}/scalable/apps/${theme_iconid}.svg" + +EXTRA_DIST = \ + full_color_512.png \ + full_color_256.png \ + full_color_128.png \ + full_color_64.png \ + full_color_32.png \ + full_color.svg