forked from iridescent-desktop/hopalong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
40 lines (31 loc) · 1.11 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project('hopalong', 'c',
version: '0.1',
meson_version: '>=0.50')
add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
cc = meson.get_compiler('c')
wayland_server = dependency('wayland-server')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_egl = dependency('wayland-egl')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
pixman = dependency('pixman-1')
cairo = dependency('cairo')
pango = dependency('pango')
pangocairo = dependency('pangocairo')
glesv2 = dependency('glesv2')
wlroots = dependency('wlroots')
xkbcommon = dependency('xkbcommon')
glib = dependency('glib-2.0')
# glibc lacks strl*. if we can't detect them, assume we need libbsd
lacking_libc = false
if cc.has_function('strlcpy') == false or cc.has_function('strlcat') == false
lacking_libc = true
bsd_overlay = dependency('libbsd-overlay')
endif
if get_option('xwayland')
xcb = dependency('xcb', required: true)
if xcb.found()
add_project_arguments('-DUSE_XWAYLAND', language: 'c')
endif
endif
subdir('src')