-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
42 lines (35 loc) · 829 Bytes
/
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
project(
'dbus-activatable-wrapper',
meson_version: '>= 0.61.0',
license: 'MIT-0',
)
NAME = get_option('name')
ID = get_option('id')
COMMAND = ''
foreach part : get_option('command')
COMMAND += '"@0@", '.format(part)
endforeach
CONFIG = {
'NAME': NAME,
'ID': ID,
'COMMAND': COMMAND,
'BINPATH': get_option('prefix') / get_option('bindir') / NAME,
}
configure_file(
input: 'wrapper.in',
output: NAME,
install_dir: get_option('bindir'),
configuration: CONFIG,
)
configure_file(
input: 'desktop.in',
output: ID + '.desktop',
install_dir: get_option('datadir') / 'applications',
configuration: CONFIG,
)
configure_file(
input: 'service.in',
output: ID + '.service',
install_dir: get_option('datadir') / 'dbus-1/services',
configuration: CONFIG,
)