-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
42 lines (37 loc) · 925 Bytes
/
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
project('OpenHMD-RiftSPlayground', 'c', default_options: 'c_std=c99', version : '0.1')
dep_thread = dependency('threads')
dep_usb = dependency('libusb-1.0')
dep_libm = meson.get_compiler('c').find_library('m', required: false)
hidapi = 'hidapi'
_hidapi = get_option('hidapi')
if host_machine.system() == 'linux'
if _hidapi == 'hidraw'
hidapi = 'hidapi-hidraw'
else
hidapi = 'hidapi-libusb'
endif
else
if _hidapi != 'auto'
warning('hidapi option ignored on non-Linux systems')
endif
endif
dep_hidapi = dependency(hidapi, required : false)
dump_rift_s_sources = [
'dump-rift-s.c',
'packets.c'
]
dump_rift_s_deps = [
dep_hidapi,
dep_thread,
dep_usb,
dep_libm
]
executable('dump-rift-s', dump_rift_s_sources, dependencies : dump_rift_s_deps)
parse_log_sources = [
'parse-log.c',
'packets.c'
]
parse_log_deps = [
dep_libm
]
executable('parse-log', parse_log_sources, dependencies : parse_log_deps)