summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-03-26 17:24:03 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-03-26 17:24:03 +0800
commit42283f1426c24047099e9a5a6056a3010a927ae7 (patch)
tree052cd08801444780708fdac9f830d5bd20f9a7b0
parent2f83063daca64e75e821cfcd3daf9f7a20836781 (diff)
downloadgtk+-wip/fanc999/gtk-3-24-meson-msvc.tar.gz
meson: Install the icons for the demo programswip/fanc999/gtk-3-24-meson-msvc
Those should be installed as well, and will also eliminate the error that gtk-update-icon-cache failed during the post install.
-rw-r--r--demos/gtk-demo/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build
index 77992ade4e..1f8e348f6a 100644
--- a/demos/gtk-demo/meson.build
+++ b/demos/gtk-demo/meson.build
@@ -120,3 +120,17 @@ gtkapplicationdemo = executable(
include_directories : confinc,
install: true
)
+
+gtk_settings_schemas = [
+ 'org.gtk.Settings.FileChooser.gschema.xml',
+ 'org.gtk.Settings.ColorChooser.gschema.xml',
+ 'org.gtk.Settings.EmojiChooser.gschema.xml',
+ 'org.gtk.Settings.Debug.gschema.xml',
+]
+
+foreach s: [ '16', '22', '24', '32', '48', '256', '512']
+ icon_destdir = join_paths(gtk_datadir, 'icons', 'hicolor', '@0@x@0@'.format(s), 'apps')
+ icons = [join_paths('data', '@0@x@0@'.format(s), 'gtk3-demo.png'),
+ join_paths('data', '@0@x@0@'.format(s), 'gtk3-demo-symbolic.symbolic.png')]
+ install_data(icons, install_dir: icon_destdir)
+endforeach