-
Notifications
You must be signed in to change notification settings - Fork 58
/
meson.build
63 lines (54 loc) · 1.18 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
project(
'slurp',
'c',
version: '1.5.0',
license: 'MIT',
meson_version: '>=0.59.0',
default_options: ['c_std=c11', 'warning_level=2', 'werror=true'],
)
add_project_arguments('-Wno-unused-parameter', language: 'c')
cc = meson.get_compiler('c')
cairo = dependency('cairo')
realtime = cc.find_library('rt')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_protos = dependency('wayland-protocols', version: '>=1.32')
xkbcommon = dependency('xkbcommon')
subdir('protocol')
executable(
'slurp',
[
'main.c',
'pool-buffer.c',
'render.c',
protos_src,
],
dependencies: [
cairo,
realtime,
wayland_client,
wayland_cursor,
xkbcommon,
],
include_directories: 'include',
install: true,
)
scdoc = find_program('scdoc', required: get_option('man-pages'))
if scdoc.found()
man_pages = ['slurp.1.scd']
foreach src : man_pages
topic = src.split('.')[0]
section = src.split('.')[1]
output = '@0@.@1@'.format(topic, section)
custom_target(
output,
input: src,
output: output,
command: scdoc,
feed: true,
capture: true,
install: true,
install_dir: get_option('mandir') / 'man' + section,
)
endforeach
endif