Skip to content

Commit

Permalink
fix build failure if wayland-scanner is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jun 6, 2022
1 parent 8ab7b64 commit 79a0395
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 79a0395

Please sign in to comment.