[gtk/bilelmoussaoui/build] meson: only update-icon-cache when the demos are built




commit ed3d9aaaed9c3ed491ed61273de10f6a4a86f663
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sun Jan 9 07:27:59 2022 +0000

    meson: only update-icon-cache when the demos are built
    
    Without building the demos, nothing gets installed into $prefix/share/icons/hicolor. Which makes running
    `gtk4-update-icon-cache` on the machine causes an error. This is easily reproducible on a Windows machine 
with MSVC where
    there is nothing pre-installed on hicolor icon theme and that makes building gtk without the demos fails 
with "No such file or directory".

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index f47c164bf0..90619713d5 100644
--- a/meson.build
+++ b/meson.build
@@ -897,7 +897,7 @@ if not meson.is_cross_build()
     gnome.post_install(
       glib_compile_schemas: true,
       gio_querymodules: gio_module_dirs,
-      gtk_update_icon_cache: true,
+      gtk_update_icon_cache: get_option('demos'),
     )
   else
     meson.add_install_script('build-aux/meson/post-install.py',


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