forked from elementary/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
61 lines (53 loc) · 1.79 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
install_data(
meson.project_name() + '.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)
i18n.merge_file (
'desktop',
input: meson.project_name() + '.desktop.in',
output: meson.project_name() + '.desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications'),
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
type: 'desktop'
)
i18n.merge_file (
'desktop',
input: 'open-pantheon-terminal-here.desktop.in',
output: 'open-pantheon-terminal-here.desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications'),
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
type: 'desktop'
)
i18n.merge_file (
'appdata',
input: meson.project_name() + '.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
po_dir: join_paths(meson.source_root (), 'po', 'extra')
)
test (
'Validate desktop file',
find_program('desktop-file-validate'),
args: join_paths(meson.current_build_dir (), meson.project_name() + '.desktop')
)
test (
'Validate open here desktop file',
find_program('desktop-file-validate'),
args: join_paths(meson.current_build_dir (), 'open-pantheon-terminal-here.desktop')
)
test (
'Validate appdata file',
find_program('appstreamcli'),
args: ['validate', join_paths(meson.current_build_dir (), meson.project_name() + '.appdata.xml')]
)
install_data(
'pantheon_terminal_process_completion_notifications.fish',
install_dir: join_paths(get_option('datadir'), 'fish', 'vendor_conf.d')
)
install_data(
'enable-zsh-completion-notifications',
install_dir: join_paths(get_option('datadir'), meson.project_name())
)