Skip to content

Commit

Permalink
Merge pull request #149 from dimkr/feature/system-gtk-layer-shell
Browse files Browse the repository at this point in the history
Fix build failure if wayland-scanner is missing
  • Loading branch information
dimkr authored Jun 6, 2022
2 parents 29e1346 + 79a0395 commit c3164a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ if gtkver == 3
default_options: ['default_library=static', 'introspection=false'],
required: false,
)
gtk_layer_shell = proj.get_variable('gtk_layer_shell')
if proj.found()
gtk_layer_shell = proj.get_variable('gtk_layer_shell')
endif
endif
else
gtk = dependency('gtk+-2.0')
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if vte.found()
else
cfg.set('HAVE_VTE', 0)
endif
if gtkver == 3
if gtkver == 3 and gtk_layer_shell.found()
dep += [gtk_layer_shell]
cfg.set('HAVE_GTK_LAYER_SHELL', 1)
else
Expand Down

0 comments on commit c3164a8

Please sign in to comment.