-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
47 lines (41 loc) · 1.12 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
project(
'anthywl',
'c',
version: '0.0.1-dev', # also update default.nix
license: 'MIT',
meson_version: '>=0.59.0',
default_options: [
'c_std=c11',
'warning_level=2',
]
)
add_project_arguments(
[
'-D_GNU_SOURCE',
'-Wno-unused-parameter',
],
language: 'c',
)
cc = meson.get_compiler('c')
rt_dep = cc.find_library('rt')
wayland_client_dep = dependency('wayland-client')
wayland_cursor_dep = dependency('wayland-cursor')
wayland_protocols_dep = dependency('wayland-protocols')
xkbcommon_dep = dependency('xkbcommon')
anthy_dep = dependency('anthy')
pango_dep = dependency('pango')
cairo_dep = dependency('cairo')
pangocairo_dep = dependency('pangocairo')
scfg_dep = dependency('scfg', fallback: 'libscfg')
varlink_dep = dependency('libvarlink', required: get_option('ipc'))
scdoc = dependency('scdoc', native: true, required: get_option('man-pages'))
if get_option('ipc').enabled()
add_project_arguments(['-DANTHYWL_IPC_SUPPORT'], language: 'c')
endif
anthywl_src = []
anthywl_inc = []
subdir('buildtools')
subdir('doc')
subdir('protocol')
subdir('include')
subdir('src')