-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
65 lines (58 loc) · 1.28 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
project(
'turtile',
['c'],
version: '0.0.1',
license: 'GPL-3.0',
)
add_global_arguments('-DWLR_USE_UNSTABLE=1', language : 'c')
#
# Wayland - Protocols
#
wlproto = dependency('wayland-protocols')
wlproto_dir = wlproto.get_variable(pkgconfig: 'pkgdatadir')
wlscan = dependency('wayland-scanner', required: false, native: true)
if wlscan.found()
wl_scanner = find_program(wlscan.get_variable(pkgconfig: 'wayland_scanner'), native: true)
else
wl_scanner = find_program('wayland-scanner', native: true)
endif
xdg_shell_xml = wlproto_dir / 'stable/xdg-shell/xdg-shell.xml'
xdg_shell_h = custom_target(
'xdg-shell-protocol.h',
output: 'xdg-shell-protocol.h',
input: xdg_shell_xml,
command: [wl_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
)
deps = [
dependency('wlroots-0.18'),
dependency('wayland-server'),
dependency('xkbcommon'),
dependency('libconfig'),
dependency('json-c'),
dependency('uuid')
]
executable(
'turtile',
[
'src/commands.c',
'src/config.c',
'src/cursor.c',
'src/keyboard.c',
'src/main.c',
'src/output.c',
'src/popup.c',
'src/server.c',
'src/socket_server.c',
'src/toplevel.c',
'src/workspace.c',
xdg_shell_h
],
dependencies : deps
)
executable(
'ttcli',
[
'src/ttcli.c',
],
dependencies : deps
)