diff --git a/data/meson.build b/data/meson.build index 557866e6..4ae7e629 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,4 +1,3 @@ -gnome = import('gnome') gresource = gnome.compile_resources( 'dock-resources', 'dock.gresource.xml', diff --git a/meson.build b/meson.build index 0f2f8430..e069eac0 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,11 @@ project( 'io.elementary.dock', 'vala', 'c', - version: '1.0.0' + version: '1.0.0', + meson_version: '>=0.57' ) +gnome = import('gnome') i18n = import('i18n') add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c') @@ -24,7 +26,7 @@ dependencies = [ granite_dep ] -meson.add_install_script('meson/post_install.py') +gnome.post_install(glib_compile_schemas: true) subdir('data') subdir('src') diff --git a/meson/post_install.py b/meson/post_install.py deleted file mode 100644 index 76ed255b..00000000 --- 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])