From cc0c0b518d46bf82ad34eeea8d40496c9ad971dd Mon Sep 17 00:00:00 2001
From: Carlos Alberto Lopez Perez <clopez@igalia.com>
Date: Wed, 24 Jul 2024 15:51:05 +0100
Subject: [PATCH] meson: Do not invoke the commands to update the icon caches
 when cross-building

This does not have any useful efect when cross-building and it requires
the cross-builder environment to have gtk4-native built in order to invoke
gtk-update-icon-cache program.

Upstream-Status: Pending
Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 86b9df4..fe75ef9 100644
--- a/meson.build
+++ b/meson.build
@@ -269,7 +269,7 @@ configure_file(
   configuration: config_h
 )
 
-if get_option('gtk') and gnome.found()
+if get_option('gtk') and gnome.found() and not meson.is_cross_build()
   gnome.post_install(
       gtk_update_icon_cache: true,
     update_desktop_database: true
