aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2016-04-21 08:00:43 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-04-21 22:05:32 +0200
commit52a2f0a0740a3f48104bcfe5fd1ba5e5f5c7b084 (patch)
tree2c3dca83a7e5d5232c7c5ad1f29a522653ef0250 /package
parent2d54567b60cd12836617e72cd44501b1352a1354 (diff)
downloadbuildroot-52a2f0a0740a3f48104bcfe5fd1ba5e5f5c7b084.tar.gz
buildroot-52a2f0a0740a3f48104bcfe5fd1ba5e5f5c7b084.tar.bz2
libgtk3: create icon-theme.cache for icon themes
It makes icon lookups faster, though it's not strictly necessary. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> [Thomas: enclsoe the hook definition in the condition.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/libgtk3/libgtk3.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/libgtk3/libgtk3.mk b/package/libgtk3/libgtk3.mk
index 7bd92cad9f..55912620eb 100644
--- a/package/libgtk3/libgtk3.mk
+++ b/package/libgtk3/libgtk3.mk
@@ -180,5 +180,15 @@ define HOST_LIBGTK3_INSTALL_CMDS
$(HOST_DIR)/usr/bin/gtk-encode-symbolic-svg
endef
+# Create icon-theme.cache for each of the icon directories/themes
+# It's not strictly necessary but speeds up lookups
+ifeq ($(BR2_PACKAGE_LIBGTK3),y)
+define LIBGTK3_UPDATE_ICON_CACHE
+ find $(TARGET_DIR)/usr/share/icons -maxdepth 1 -mindepth 1 -type d \
+ -exec $(HOST_DIR)/usr/bin/gtk-update-icon-cache {} \;
+endef
+TARGET_FINALIZE_HOOKS += LIBGTK3_UPDATE_ICON_CACHE
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))