build: Replace custom post-install script
Since meson 0.57, the gnome module includes a function we can use instead. https://gitlab.gnome.org/GNOME/mutter/-/issues/2518 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2702>
This commit is contained in:
parent
c4f43b65ed
commit
770a72f446
2 changed files with 5 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
project('mutter', 'c',
|
project('mutter', 'c',
|
||||||
version: '43.1',
|
version: '43.1',
|
||||||
meson_version: '>= 0.55.0',
|
meson_version: '>= 0.58.0',
|
||||||
license: 'GPLv2+'
|
license: 'GPLv2+'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -640,7 +640,10 @@ if have_documentation
|
||||||
subdir('doc/reference')
|
subdir('doc/reference')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
meson.add_install_script('meson/meson-postinstall.sh')
|
gnome.post_install(
|
||||||
|
glib_compile_schemas: true,
|
||||||
|
)
|
||||||
|
|
||||||
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
|
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
|
||||||
|
|
||||||
summary('prefix', prefix, section: 'Directories')
|
summary('prefix', prefix, section: 'Directories')
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Package managers set this so we don't need to run
|
|
||||||
if [ -z "$DESTDIR" ]; then
|
|
||||||
echo Compiling GSettings schemas...
|
|
||||||
glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
|
|
||||||
|
|
||||||
echo Updating desktop database...
|
|
||||||
update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
|
|
||||||
fi
|
|
Loading…
Reference in a new issue