forked from r-c-f/waynergy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
54 lines (49 loc) · 1.01 KB
/
meson.build
File metadata and controls
54 lines (49 loc) · 1.01 KB
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
project('waynergy',
'c',
version: '0.0.1'
)
src_c = files(
'src/wl_idle.c',
'src/wl_key.c',
'src/wl_mouse.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')
executable(
'waynergy',
src_c,
install: true,
dependencies : [
client_protos,
libtls,
wayland_client,
xkbcommon
],
include_directories: [include_directories('include')],
)
executable(
'waynergy-clip-update',
'src/clip-update.c',
install: true,
include_directories: [include_directories('include')],
)