forked from linux-surface/iptsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
64 lines (57 loc) · 1.21 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
project(
'iptsd', 'c',
version: '0.3',
license: 'GPL-2.0-or-later',
default_options: [
'c_std=gnu99',
'warning_level=2',
'werror=true',
],
)
cc = meson.get_compiler('c')
dir_config = join_paths(get_option('prefix'), get_option('datadir'), 'ipts')
sources = [
'src/cone.c',
'src/config.c',
'src/contact.c',
'src/control.c',
'src/data.c',
'src/devices.c',
'src/finger.c',
'src/heatmap.c',
'src/hid.c',
'src/main.c',
'src/payload.c',
'src/singletouch.c',
'src/stylus.c',
'src/touch.c',
'src/touch-processing.c',
'src/utils.c',
]
deps = [
cc.find_library('m'),
dependency('inih'),
]
cflags = [
'-Wundef',
'-Wuninitialized',
'-Wno-unused-result',
'-Wlogical-op',
'-Wmissing-include-dirs',
'-Wold-style-definition',
'-Wpointer-arith',
'-Winit-self',
'-Wstrict-prototypes',
'-Wimplicit-fallthrough=2',
'-Wendif-labels',
'-Wstrict-aliasing=2',
'-Woverflow',
'-Wmissing-prototypes',
'-Wno-missing-braces',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
]
cflags = cc.get_supported_arguments(cflags)
add_project_arguments(cflags, language: 'c')
executable('iptsd', sources, dependencies: deps, install: true)
install_subdir('config', install_dir: dir_config, strip_directory: true)