summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-aux/meson_post_install.py11
-rw-r--r--meson.build6
2 files changed, 4 insertions, 13 deletions
diff --git a/build-aux/meson_post_install.py b/build-aux/meson_post_install.py
deleted file mode 100644
index 4debe816..00000000
--- a/build-aux/meson_post_install.py
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import subprocess
-
-install_prefix = os.environ['MESON_INSTALL_PREFIX']
-schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
-
-if not os.environ.get('DESTDIR'):
- print('Compiling gsettings schemas...')
- subprocess.call(['glib-compile-schemas', schemadir])
diff --git a/meson.build b/meson.build
index f8549747..be059417 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('gdm', 'c',
version: '43.0',
license: 'GPL2+',
- meson_version: '>= 0.50',
+ meson_version: '>= 0.57',
)
# Modules
@@ -281,7 +281,9 @@ if xdmcp_dep.found()
endif
subdir('docs')
-meson.add_install_script('build-aux/meson_post_install.py')
+gnome.post_install(
+ glib_compile_schemas: true,
+)
if meson.version().version_compare('>= 0.53')
summary({