diff options
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | meson_post_install.py | 15 |
2 files changed, 5 insertions, 17 deletions
diff --git a/meson.build b/meson.build index 0c871dd10..a8c0ce5ec 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project( version: '43.beta', license: 'GPL2+ with exception', default_options: 'buildtype=debugoptimized', - meson_version: '>= 0.50.0' + meson_version: '>= 0.57.0' ) totem_version = meson.project_version() @@ -235,7 +235,10 @@ if get_option('enable-gtk-doc') subdir('docs/reference') endif -meson.add_install_script('meson_post_install.py') +gnome.post_install( + glib_compile_schemas: true, + gtk_update_icon_cache: true, +) is_stable = (totem_minor_version != 'alpha' and totem_minor_version != 'beta' and diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index bf320a9dc..000000000 --- a/meson_post_install.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess - -install_prefix = os.environ['MESON_INSTALL_PREFIX'] -icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor') -schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas') - -if not os.environ.get('DESTDIR'): - print('Update icon cache...') - subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) - - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', schemadir]) |