meson: Add the missing dependencies

This commit is contained in:
Michael Weiss 2020-07-17 13:12:23 +02:00
parent d097393732
commit 6983028373
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -39,6 +39,8 @@ wayland_protos = dependency('wayland-protocols', version: '>=1.14')
wayland_server = dependency('wayland-server') wayland_server = dependency('wayland-server')
pixman = dependency('pixman-1') pixman = dependency('pixman-1')
xkbcommon = dependency('xkbcommon') xkbcommon = dependency('xkbcommon')
udev = dependency('libudev')
egl = dependency('egl')
math = cc.find_library('m') math = cc.find_library('m')
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir') wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
@ -70,9 +72,11 @@ if get_option('xwayland')
error('Cannot build Cage with XWayland support: wlroots has been built without it') error('Cannot build Cage with XWayland support: wlroots has been built without it')
else else
have_xwayland = true have_xwayland = true
xcb = dependency('xcb')
endif endif
else else
have_xwayland = false have_xwayland = false
xcb = dependency('', required : false)
endif endif
version = '@0@'.format(meson.project_version()) version = '@0@'.format(meson.project_version())
@ -158,7 +162,10 @@ executable(
wlroots, wlroots,
xkbcommon, xkbcommon,
pixman, pixman,
udev,
egl,
math, math,
xcb,
], ],
install: true, install: true,
) )