forked from containers/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
37 lines (29 loc) · 780 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
project(
'toolbox',
version: '0.0.10',
license: 'ASL 2.0',
meson_version: '>= 0.40.0',
)
go_md2man = find_program('go-md2man')
shellcheck = find_program('shellcheck', required: false)
profiledir = get_option('profile_dir')
systemd_dep = dependency('systemd')
tmpfilesdir = systemd_dep.get_pkgconfig_variable('tmpfilesdir')
toolbox = files('toolbox')
if shellcheck.found()
test('shellcheck', shellcheck, args: [toolbox])
endif
install_data(
toolbox,
install_dir: get_option('bindir'),
)
bash_completion = dependency('bash-completion', required: false)
if bash_completion.found()
install_data(
'completion/bash/toolbox',
install_dir: bash_completion.get_pkgconfig_variable('completionsdir')
)
endif
subdir('data')
subdir('doc')
subdir('profile.d')