-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
56 lines (50 loc) · 1.07 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
project(
'daklak',
'c',
version: '0.1.0',
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_protocols_dep = dependency('wayland-protocols')
xkbcommon_dep = dependency('xkbcommon')
pthread_dep = dependency('threads')
appindicator_dep = dependency('appindicator3-0.1')
scfg_dep = dependency('scfg', fallback: 'libscfg')
daklakwl_src = files(
'daklakwl.c',
'actions.c',
'buffer.c',
'config.c',
'tray.c',
)
daklakwl_inc = []
subdir('buildtools')
subdir('protocol')
subdir('include')
daklak_bin = executable(
'daklak',
daklakwl_src,
install: true,
include_directories: daklakwl_inc,
dependencies: [
wayland_client_dep,
xkbcommon_dep,
protocols_dep,
pthread_dep,
appindicator_dep,
scfg_dep,
],
)