summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-aux/meson/post-install.py13
-rw-r--r--meson.build8
2 files changed, 4 insertions, 17 deletions
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
deleted file mode 100755
index 162f26d..0000000
--- a/build-aux/meson/post-install.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import subprocess
-import sys
-
-datadir = sys.argv[1]
-
-# Packaging tools define DESTDIR and this isn't needed for them
-if 'DESTDIR' not in os.environ:
- print('Compiling GSettings schemas...')
- subprocess.call(['glib-compile-schemas',
- os.path.join(datadir, 'glib-2.0', 'schemas')])
diff --git a/meson.build b/meson.build
index efeac23..2980b0f 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,7 @@ project(
'warning_level=2'
],
license: 'LGPL',
- meson_version: '>= 0.50.0'
+ meson_version: '>= 0.57.0'
)
gsettings_desktop_schemas_name = meson.project_name()
@@ -47,6 +47,6 @@ subdir('headers')
subdir('schemas')
subdir('po')
-# Keep this in sync with post-install.py expected arguments
-meson.add_install_script('build-aux/meson/post-install.py',
- datadir)
+gnome.post_install(
+ glib_compile_schemas: true,
+)