meson: add ‘xkb’ as a dependency to vtlib, pgolib and pgo

All of these include wayland.h (either directly, or indirectly), which
pulls in xkbcommon.h.

Reported by swayyyy on IRC:

  FAILED: libvtlib.a.p/dcs.c.o

  In file included from ../../terminal.h:19,
                   from ../../dcs.h:4,
                   from ../../dcs.c:1:
  ../../wayland.h:9:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory
      9 | #include <xkbcommon/xkbcommon.h>
        |          ^
This commit is contained in:
Daniel Eklöf 2021-05-01 22:24:12 +02:00
parent 47c7665bd0
commit 7edda924a0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -143,7 +143,7 @@ vtlib = static_library(
'vt.c', 'vt.h',
wl_proto_src + wl_proto_headers,
version,
dependencies: [libepoll, pixman, fcft, tllist, wayland_client],
dependencies: [libepoll, pixman, fcft, tllist, wayland_client, xkb],
link_with: [common, misc],
)
@ -153,7 +153,7 @@ pgolib = static_library(
'selection.c', 'selection.h',
'terminal.c', 'terminal.h',
wl_proto_src + wl_proto_headers,
dependencies: [libepoll, pixman, fcft, tllist, wayland_client],
dependencies: [libepoll, pixman, fcft, tllist, wayland_client, xkb],
link_with: vtlib,
)
@ -162,7 +162,7 @@ if get_option('b_pgo') == 'generate'
'pgo',
'pgo/pgo.c',
wl_proto_src + wl_proto_headers,
dependencies: [math, threads, libepoll, pixman, wayland_client, fcft, tllist],
dependencies: [math, threads, libepoll, pixman, wayland_client, xkb, fcft, tllist],
link_with: pgolib,
)
endif