-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
45 lines (36 loc) · 865 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
43
44
45
project('libgwater', 'c')
c_compiler = meson.get_compiler('c')
glib_min_version='2.36'
glib = dependency('glib-2.0', version: '>= @0@'.format(glib_min_version))
gobject = dependency('gobject-2.0')
gio = dependency('gio-2.0')
if host_machine.system() != 'windows'
gio_platform = dependency('gio-unix-2.0')
else
gio_platform = dependency('gio-windows-2.0')
endif
headers = [
'errno.h',
'sys/types.h',
]
if host_machine.system() != 'windows'
headers += [
'sys/socket.h',
]
endif
foreach h : headers
if not c_compiler.has_header(h)
error('@0@ required but not found'.format(h))
endif
endforeach
subdir('wayland')
subdir('wayland-server')
subdir('xcb')
subdir('mpd')
if host_machine.system() == 'linux'
subdir('nl')
subdir('alsa-mixer')
endif
if host_machine.system() == 'windows'
subdir('win')
endif