summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-08-23 20:48:58 -0400
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2022-09-26 20:20:53 +0000
commitfa7224e48ea53cf91b2eb63b837182b533aa8ae2 (patch)
treec0e3c0831937215841cbcbe61ee39923fc03f4fb
parenta873cf985a3ce8c1ee8bf8be637c88da06e911f2 (diff)
downloadglade-fa7224e48ea53cf91b2eb63b837182b533aa8ae2.tar.gz
build: Use GNOME module post_install()
-rw-r--r--meson.build7
-rw-r--r--meson_post_install.py12
2 files changed, 3 insertions, 16 deletions
diff --git a/meson.build b/meson.build
index 187555f4..2956bb49 100644
--- a/meson.build
+++ b/meson.build
@@ -11,7 +11,7 @@ project(
version: '3.40.0',
license: 'GPL2',
default_options: 'buildtype=debugoptimized',
- meson_version: '>= 0.53.0',
+ meson_version: '>= 0.57.0',
)
glade_name = meson.project_name()
@@ -210,9 +210,8 @@ configure_file(
configuration: config_h,
)
-meson.add_install_script(
- 'meson_post_install.py',
- glade_datadir,
+gnome.post_install(
+ gtk_update_icon_cache: true,
)
tls_backend_support_src = '''
diff --git a/meson_post_install.py b/meson_post_install.py
deleted file mode 100644
index 6084cba3..00000000
--- a/meson_post_install.py
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import subprocess
-import sys
-
-if not os.environ.get('DESTDIR'):
- prefix = os.environ['MESON_INSTALL_PREFIX']
-
- icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor')
- print('Update icon cache...')
- subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])