-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
71 lines (62 loc) · 1.15 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
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
project(
'wio',
'c',
license: 'BSD-3-Clause',
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
add_project_arguments(
[
'-DWL_HIDE_DEPRECATED',
'-DWLR_USE_UNSTABLE',
'-Wno-unused-parameter',
'-Wno-unused-result',
'-Wundef',
],
language: 'c',
)
cc = meson.get_compiler('c')
# Prefer wlroots subproject if it is available.
wlroots_proj = subproject(
'wlroots',
default_options: ['rootston=false', 'examples=false'],
required: false,
)
if wlroots_proj.found()
wlroots = wlroots_proj.get_variable('wlroots')
else
wlroots = dependency('wlroots', version: '>=0.17.0')
endif
cairo = dependency('cairo')
drm = dependency('libdrm')
math = cc.find_library('m')
wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols')
xkbcommon = dependency('xkbcommon')
wio_inc = include_directories('include')
subdir('protocols')
wio_sources = files(
'main.c',
'layers.c',
'input.c',
'output.c',
'view.c',
)
executable(
'wio',
wio_sources,
include_directories: [wio_inc],
dependencies: [
cairo,
drm,
math,
server_protos,
wayland_server,
wlroots,
xkbcommon,
],
install: true
)