diff --git a/data/meson.build b/data/meson.build index ba38a0e0b..0a066f932 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,4 +1,3 @@ -gnome = import('gnome') gresource = gnome.compile_resources( 'music-resources', 'music.gresource.xml', diff --git a/meson.build b/meson.build index 1cd30dea7..23d47c897 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,11 @@ project( 'io.elementary.music', 'vala', 'c', - version: '7.1.0' + version: '7.1.0', + meson_version: '>=0.58.0' ) +gnome = import('gnome') i18n = import('i18n') add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c') @@ -31,7 +33,7 @@ dependencies = [ gtk_dep ] -meson.add_install_script('meson/post_install.py') +gnome.post_install(glib_compile_schemas: true) subdir('data') subdir('po') diff --git a/meson/post_install.py b/meson/post_install.py deleted file mode 100644 index 76ed255bc..000000000 --- a/meson/post_install.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess - -schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') - -if not os.environ.get('DESTDIR'): - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', schemadir])