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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
openxr = dependency('openxr', required: false)
openxr_headers = openxr.partial_dependency(compile_args: true,
includes: true)
openxr_args = openxr.found() ? ['-DC8_HAVE_OPENXR'] : []
executable(
'c8',
files(
'chrome.c',
'config.c',
'im.c',
'drag.c',
'glasses.c',
'hologram.c',
'slatebar.c',
'placement.c',
'imu.c',
'input.c',
'layer.c',
'lock.c',
'main.c',
'nightlight.c',
'output.c',
'pointer.c',
'protocols.c',
'screenshot.c',
'snip.c',
'session.c',
'settings.c',
'shell.c',
'lease.c',
'stereo.c',
'touch.c',
'tween.c',
'tracker.c',
'util.c',
'view.c',
'xdgoutput.c',
'xwayland.c',
'glassesmode.c',
'xrclient.c',
'xrruntime.c',
),
server_protos_src,
dependencies: [
wayland_server,
wlroots,
xkbcommon,
libinput,
pixman,
libdrm,
cairo,
pangocairo,
fontconfig,
c8ui_core,
dependency('c8-base'), # stealth mode's scrubbing of titles
xcb,
math,
dependency('threads'),
dependency('glesv2'),
dependency('egl'),
# Only OpenXR's headers: the loader is dlopened when Monado is
# used (xrclient.c), so c8 runs without it. Built by
# build.sh --xr (xr/) into the prefix.
openxr_headers,
cc.find_library('dl', required: false),
],
c_args: openxr_args,
install: true,
)
# Decodes [glasses] background for c8 (see panorama.c)
executable(
'c8-panorama',
'panorama.c',
dependencies: [dependency('gdk-pixbuf-2.0'), math],
install: true,
install_dir: get_option('libexecdir'),
)