diff options
author | Matt Turner <mattst88@gmail.com> | 2022-08-23 20:52:04 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2022-08-23 20:52:04 -0400 |
commit | 5219217586dcbaaeadbe38db7ccb36a67fe1986a (patch) | |
tree | df52053d56d7c759f2a4f1c19fdc28f7ec67d6e1 | |
parent | 1c61fa79e525df2286273a3e9aa277764a15c242 (diff) | |
download | gnome-settings-daemon-5219217586dcbaaeadbe38db7ccb36a67fe1986a.tar.gz |
build: Use GNOME module post_install()
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | meson_post_install.py | 11 |
2 files changed, 3 insertions, 15 deletions
diff --git a/meson.build b/meson.build index 0335d25a..aec2ec2c 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'gnome-settings-daemon', 'c', version: '43.beta', license: [ 'GPL2+', 'LGPLv2+' ], - meson_version: '>= 0.49.0' + meson_version: '>= 0.57.0' ) gsd_version = meson.project_version() @@ -256,9 +256,8 @@ configure_file( configuration: config_h ) -meson.add_install_script( - 'meson_post_install.py', - gsd_datadir +gnome.post_install( + glib_compile_schemas: true, ) output = '\n ' + meson.project_name() + ' ' + meson.project_version() +'\n' diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index 6058e73a..00000000 --- a/meson_post_install.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess -import sys - -if not os.environ.get('DESTDIR'): - schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas') - - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', schemadir]) |