-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
52 lines (44 loc) · 1.16 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
project(
'wlr-synergy-client',
'c',
version: '0.0.1',
license: 'MIT',
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
add_global_arguments([
'-Wno-pointer-sign',
'-Wno-deprecated-declarations',
'-Wno-unused',
'-Wno-incompatible-pointer-types',
'-Wno-discarded-qualifiers'],
language: 'c')
cc = meson.get_compiler('c')
#wayland_client = cc.find_library('wayland-client', required: false)
#wayland_client = cc.find_library('wayland-client', required: false)
#math = cc.find_library('m', required:false)
math = cc.find_library('m')
xkbcommon = dependency('xkbcommon')
wayland_client = dependency('wayland-client')
includes = include_directories('include')
subdir('protocol')
uSynergy = library('synergy-micro-client', 'synergy-micro-client/uSynergy.c')
src_files = [
'wlr-synergy-client.c',
#'ascii_raw_keymap.c',
]
executable(
'wlr-synergy-client',
files(src_files),
link_with: [uSynergy],
include_directories: [includes],
dependencies: [
client_protos,
math,
wayland_client,
xkbcommon,
],
)