forked from emersion/wleird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
105 lines (96 loc) · 1.9 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
project(
'wleird',
'c',
version: '0.0.0',
license: 'MIT',
meson_version: '>=0.49.0',
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
cc = meson.get_compiler('c')
add_project_arguments('-Wno-unused-parameter', language: 'c')
add_project_arguments('-Wno-missing-braces', language: 'c')
wleird_inc = include_directories('include')
cairo = dependency('cairo')
wayland_client = dependency('wayland-client')
wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
math = cc.find_library('m', required: false)
gbm = dependency('gbm', disabler: true)
subdir('protocol')
wleird_deps = [cairo, client_protos, wayland_client]
lib_client = static_library(
'client',
files(
'client.c',
'pool-buffer.c',
),
include_directories: wleird_inc,
dependencies: wleird_deps,
)
clients = {
'attach-delta-loop': {
'src': 'attach-delta-loop.c',
'deps': [math],
},
'copy-fu': {
'src': 'copy-fu.c',
'deps': [math],
},
'cursor': {
'src': 'cursor.c',
},
'damage-paint': {
'src': 'damage-paint.c',
'deps': [math],
},
'disobey-resize': {
'src': 'disobey-resize.c',
'deps': [math],
},
'frame-callback': {
'src': 'frame-callback.c',
},
'gamma-blend': {
'src': 'gamma-blend.c',
},
'resize-loop': {
'src': 'resize-loop.c',
},
'resizor': {
'src': 'resizor.c',
},
'resource-thief': {
'src': 'resource-thief.c',
'deps': [gbm],
},
'sigbus': {
'src': 'sigbus.c',
},
'slow-ack-configure': {
'src': 'slow-ack-configure.c',
},
'subsurfaces': {
'src': 'subsurfaces.c',
},
'surface-outputs': {
'src': 'surface-outputs.c',
},
'unmap': {
'src': 'unmap.c',
'deps': [wayland_server],
},
}
foreach name, client : clients
executable(
name,
files(client['src']),
link_with: lib_client,
include_directories: wleird_inc,
dependencies: [wleird_deps] + client.get('deps', []),
install: true,
)
endforeach