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
|
# This is heavily based on `wtype`
project(
'qmk-unicode-type', 'c',
version: '0.1',
license: 'GPL-3.0-or-later',
)
add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'c')
cc = meson.get_compiler('c')
wayland_client = dependency('wayland-client')
libhid = dependency('hidapi-hidraw')
rt = cc.find_library('rt')
src_files = files(
'./src/error.c',
'./src/hid/hid.c',
'./src/keyboard/keyboard.c',
'./src/main.c',
)
subdir('protocol')
executable(
meson.project_name(),
src_files,
dependencies: [
client_protos,
wayland_client,
libhid,
rt,
],
install: true
)
|