Skip to content

Commit

Permalink
Merge pull request #3 from Sunderland93/meson
Browse files Browse the repository at this point in the history
Add meson support
  • Loading branch information
lukefromdc authored Dec 22, 2023
2 parents 6483769 + 9bc03ec commit f998c27
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
install_data('10_mate-wayland.gschema.override',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
)
6 changes: 6 additions & 0 deletions meson-postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

if [ -z "$DESTDIR" ]; then
echo Compiling GSettings schemas...
glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
fi
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project('mate-wayland-session',
version: '1.27.0',
meson_version: '>=0.50.0',
license: 'GPLv2+',
)

subdir('data')
subdir('session')

meson.add_install_script('meson-postinstall.sh')
9 changes: 9 additions & 0 deletions session/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
install_data('mate-wayland-components.sh',
install_dir: get_option('bindir'))

install_data('mate-wayland.sh',
install_dir: get_option('bindir'))

install_data('MATE.desktop',
install_dir: join_paths(get_option('datadir'), 'wayland-sessions'),
)

0 comments on commit f998c27

Please sign in to comment.