diff options
author | Matt Turner <mattst88@gmail.com> | 2022-08-23 21:23:49 -0400 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2023-02-15 13:07:03 +0000 |
commit | 1ffd8e6bacaf3f01ab0f4b5cd407567af0ba990f (patch) | |
tree | 2c75cb6bbcb0f9a22533441de8dfd08fce13c48b | |
parent | 00093267e9139d6771e1a88a1b0d7fe1b6f9e2df (diff) | |
download | gsettings-desktop-schemas-1ffd8e6bacaf3f01ab0f4b5cd407567af0ba990f.tar.gz |
build: Use GNOME module post_install()
-rwxr-xr-x | build-aux/meson/post-install.py | 13 | ||||
-rw-r--r-- | meson.build | 8 |
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, +) |