[shotwell/wip/autotools: 21/27] build: Hook up app icons



commit 1382b1582e07728425ab9e76e2f383a9be42928d
Author: Jens Georg <mail jensge org>
Date:   Tue Jun 28 22:35:08 2016 +0200

    build: Hook up app icons
    
    Signed-off-by: Jens Georg <mail jensge org>

 Makefile.am           |    2 +-
 app-icons/Makefile.am |   39 +++++++++++++++++++++++++++++++++++++++
 configure.ac          |    1 +
 3 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e094de2..cf56e24 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = misc help po
+SUBDIRS = misc help po app-icons
 
 EXTRA_DIST = AUTHORS
 
diff --git a/app-icons/Makefile.am b/app-icons/Makefile.am
new file mode 100644
index 0000000..c301a24
--- /dev/null
+++ b/app-icons/Makefile.am
@@ -0,0 +1,39 @@
+iconthemedir = $(datadir)/icons/hicolor
+
+appicon16dir = $(iconthemedir)/16x16/apps
+appicon22dir = $(iconthemedir)/22x22/apps
+appicon24dir = $(iconthemedir)/24x24/apps
+appicon32dir = $(iconthemedir)/32x32/apps
+appicon48dir = $(iconthemedir)/48x48/apps
+appicon256dir = $(iconthemedir)/256x256/apps
+appiconscalabledir = $(iconthemedir)/scalable/apps
+appiconsymbolicdir = $(iconthemedir)/symbolic/apps
+
+dist_appicon16_DATA = \
+                                               16x16/apps/shotwell.png
+dist_appicon22_DATA = \
+                                               22x22/apps/shotwell.png
+dist_appicon24_DATA = \
+                                               24x24/apps/shotwell.png
+dist_appicon32_DATA = \
+                                               32x32/apps/shotwell.png
+dist_appicon48_DATA = \
+                                               48x48/apps/shotwell.png
+dist_appicon256_DATA = \
+                                               256x256/apps/shotwell.png
+dist_appiconsymbolic_DATA = \
+                                                               symbolic/apps/shotwell-symbolic.svg
+
+UPDATE_ICON_CACHE = gtk-update-icon-cache --ignore-theme-index --force
+
+install-data-hook: install-update-icon-cache
+uninstall-hook: uninstall-update-icon-cache
+
+install-update-icon-cache:
+               $(AM_V_at)$(POST_INSTALL)
+                       test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)"
+
+uninstall-update-icon-cache:
+               $(AM_V_at)$(POST_UNINSTALL)
+                       test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)"
+
diff --git a/configure.ac b/configure.ac
index 9e7e531..98d9471 100644
--- a/configure.ac
+++ b/configure.ac
@@ -151,6 +151,7 @@ AC_CONFIG_FILES([
     misc/Makefile
        po/Makefile.in
     help/Makefile
+    app-icons/Makefile
 ],[],
 [API_VERSION='$API_VERSION'])
 AC_OUTPUT


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]