Skip to content

Commit

Permalink
meson: Restore meson 0.49.0 support
Browse files Browse the repository at this point in the history
Ubuntu 20.04 has meson 0.53.2. "/ with string arguments" requires meson 0.49.0.
  • Loading branch information
bobby285271 committed May 15, 2024
1 parent c892a80 commit 814f3e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ project(
'slick-greeter',
'vala', 'c',
version: '2.0.3',
meson_version: '>= 0.57.0'
meson_version: '>= 0.49.0'
)

cc = meson.get_compiler('c')

gnome = import('gnome')
i18n = import('i18n')

gettext_package = meson.project_name()
Expand Down Expand Up @@ -48,4 +47,4 @@ subdir('files')
subdir('po')
subdir('src')

gnome.post_install(glib_compile_schemas: true)
meson.add_install_script('meson/meson-postinstall.sh')
7 changes: 7 additions & 0 deletions meson/meson-postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/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
fi

0 comments on commit 814f3e1

Please sign in to comment.