aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-09-30 03:05:20 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-10-06 15:25:12 +0200
commitc312fb282f3312d02779262da9bf969ddfa1e5ac (patch)
tree20f653001c5ec1ee3a0a6770c641745520b0afdd /main
parenta55a10e88f88a4650aa6a83927ea38960aa26935 (diff)
downloaddino-c312fb282f3312d02779262da9bf969ddfa1e5ac.tar.gz
dino-c312fb282f3312d02779262da9bf969ddfa1e5ac.zip
meson: Add version detection for some dependencies
Diffstat (limited to 'main')
-rw-r--r--main/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/meson.build b/main/meson.build
index f6d212f8..ccebf67d 100644
--- a/main/meson.build
+++ b/main/meson.build
@@ -106,6 +106,15 @@ c_args = [
vala_args = [
'--vapidir', meson.current_source_dir() / 'vapi',
]
+if dep_libadwaita.version() == 'unknown' or dep_libadwaita.version().version_compare('>=1.2')
+ vala_args += ['-D', 'Adw_1_2']
+endif
+if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.6')
+ vala_args += ['-D', 'GTK_4_6']
+endif
+if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8')
+ vala_args += ['-D', 'GTK_4_8']
+endif
exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true)
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'hicolor/symbolic/apps')