-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmeson.build
77 lines (72 loc) · 1.5 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
project('waynergy',
'c',
version: '0.0.17'
)
src_c = files(
'src/wl_idle.c',
'src/wl_idle_gnome.c',
'src/wl_idle_kde.c',
'src/wl_idle_ext.c',
'src/wl_input.c',
'src/wl_input_wlr.c',
'src/wl_input_kde.c',
'src/wl_input_uinput.c',
'src/main.c',
'src/clip.c',
'src/config.c',
'src/net.c',
'src/os.c',
'src/sig.c',
'src/ssp.c',
'src/wayland.c',
'src/uSynergy.c',
'src/log.c'
)
wayland_client = dependency('wayland-client')
xkbcommon = dependency('xkbcommon')
libtls = dependency('libtls')
if host_machine.system() == 'linux'
add_project_arguments('-D_GNU_SOURCE ', language: 'c')
endif
if host_machine.endian() == 'big'
add_project_arguments('-DUSYNERGY_BIG_ENDIAN', language: 'c')
else
add_project_arguments('-DUSYNERGY_LITTLE_ENDIAN', language: 'c')
endif
subdir('protocol')
subdir('include')
executable(
'waynergy',
src_c,
install: true,
dependencies : [
client_protos,
libtls,
wayland_client,
xkbcommon,
ver_dep,
],
include_directories: [include_directories('include')],
)
executable(
'waynergy-clip-update',
'src/clip-update.c',
install: true,
include_directories: [include_directories('include')],
)
executable(
'waynergy-mapper',
'src/mapper.c',
install: true,
dependencies : [
client_protos,
wayland_client,
xkbcommon,
],
include_directories: [include_directories('include')],
)
install_data(
'waynergy.desktop',
install_dir: get_option('datadir') / 'applications',
rename: meson.project_name() + '.desktop',
)