Skip to content

Commit

Permalink
meson: Add gtk4 bindings based on valac version (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Apr 17, 2023
1 parent dbc8ef4 commit 021dfe4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 12 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
gio_dep = dependency('gio-2.0')
granite_dep = dependency('granite-7')
gtk_dep = dependency('gtk4')
gtk_x11_dep = dependency('gtk4-x11')
wayland_dep = dependency('gtk4-wayland')

gtk_deps = [
dependency('gtk4')
]

if meson.get_compiler('vala').version().version_compare('>=0.56.1')
gtk_deps += [
dependency('gtk4-x11'),
dependency('gtk4-wayland')
]
endif

x11_dep = dependency('x11')

add_project_arguments(
Expand Down
4 changes: 1 addition & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ executable(
gobject_dep,
gio_dep,
granite_dep,
gtk_dep,
gtk_x11_dep,
wayland_dep,
gtk_deps,
x11_dep
],
install: true,
Expand Down

0 comments on commit 021dfe4

Please sign in to comment.