aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-03-23 20:52:55 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-04-05 00:31:21 +0200
commitfee554013dab976dde4616e2ade0d12be0f153eb (patch)
tree92578138d7b1fa3edcc337b3516f93be8a9e2ef2 /meson.build
parentc7e9fb9dac3c0a2b4a0c6c2d5d34a12175aac096 (diff)
Adapt flatpak build to use meson
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build17
1 files changed, 7 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 1236895..b5c972c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,8 +1,6 @@
################################################################################
# Project Settings
################################################################################
-# TODO: Consider whether I need to add version and license or if meson is smart
-# enough to read that from Cargo.toml.
project('map', 'rust', version: '1.0.4', meson_version: '>= 1.0.0')
base_id = 'systems.tranquil.Map'
@@ -18,11 +16,11 @@ rust = import('rust')
# Dependencies
################################################################################
-dependency('glib-2.0', version: '>= 2.86.0')
-dependency('gio-2.0', version: '>= 2.86.0')
-dependency('gtk4', version: '>= 4.20.3')
-dependency('libadwaita-1', version: '>= 1.8.4')
-dependency('gtksourceview-5', version: '>= 5.18.0')
+dependency('glib-2.0', version: '>= 2.84.0')
+dependency('gio-2.0', version: '>= 2.84.0')
+dependency('gtk4', version: '>= 4.18.0')
+dependency('libadwaita-1', version: '>= 1.7.0')
+dependency('gtksourceview-5', version: '>= 5.16.0')
################################################################################
# Required Programs
@@ -30,8 +28,8 @@ dependency('gtksourceview-5', version: '>= 5.18.0')
find_program('cargo')
find_program('glib-compile-resources')
find_program('glib-compile-schemas')
-desktop_file_validate = find_program('desktop-file-validate')
-appstream_util = find_program('appstream-util')
+desktop_file_validate = find_program('desktop-file-validate', required: false)
+appstream_util = find_program('appstream-util', required: false)
cargo = find_program('cargo')
################################################################################
@@ -90,6 +88,5 @@ summary({
gnome.post_install(
gtk_update_icon_cache: true,
- glib_compile_schemas: true,
update_desktop_database: true,
)