summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-10-07 20:44:01 -0400
committerDavid King <amigadave@amigadave.com>2023-01-04 15:41:38 +0000
commit9366b63cdfa7d06146f1851a8d5621eddbd1df77 (patch)
tree338f3c3900bb210114af57d91da9ae0a52417b69
parentb9fc5abdb461c364a9c1f634a01c8c2fe87e3213 (diff)
downloadcheese-9366b63cdfa7d06146f1851a8d5621eddbd1df77.tar.gz
build: Use GNOME module post_install()
-rw-r--r--meson.build7
-rw-r--r--meson_post_install.py15
2 files changed, 3 insertions, 19 deletions
diff --git a/meson.build b/meson.build
index 9174b428..1fa4049d 100644
--- a/meson.build
+++ b/meson.build
@@ -196,8 +196,7 @@ configure_file(
configuration: config_h,
)
-meson.add_install_script(
- 'meson_post_install.py',
- cheese_datadir,
- gio_schemasdir,
+gnome.post_install(
+ glib_compile_schemas: true,
+ gtk_update_icon_cache: true,
)
diff --git a/meson_post_install.py b/meson_post_install.py
deleted file mode 100644
index 24242df0..00000000
--- a/meson_post_install.py
+++ /dev/null
@@ -1,15 +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('Updating icon cache...')
- subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
-
- print('Compiling gsettings schemas...')
- subprocess.call(['glib-compile-schemas', sys.argv[2]])