-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
47 lines (40 loc) · 987 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
46
47
project(
'wlanthy',
'c',
version: '0.0.0',
license: 'MIT',
meson_version: '>=0.51.0',
default_options: [
'c_std=c99',
'warning_level=2',
'werror=false',
],
)
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments([
'-Wno-missing-braces',
'-Wno-unused-parameter',
]), language: 'c')
wlanthy_inc = include_directories('include')
wlanthy_files = files('main.c', 'utf8.c', 'log.c')
deps = []
anthy = dependency('anthy')
deps += anthy
if get_option('input') == 'anthy'
deps += cc.find_library('anthyinput', dirs: anthy.get_variable(pkgconfig: 'libdir'))
else
add_project_arguments('-DHAVE_UTF8=1', language: 'c')
wlanthy_files += files('input.c')
endif
deps += dependency('wayland-client')
wayland_protocols = dependency('wayland-protocols')
deps += wayland_protocols
deps += dependency('xkbcommon')
subdir('protocol')
executable(
meson.project_name(),
wlanthy_files,
include_directories: wlanthy_inc,
dependencies: deps,
install: true,
)