forked from jangernert/FeedReader
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
58 lines (47 loc) · 1.39 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
UI_RESOURCES = gnome.compile_resources(
'communique_res',
'com.github.suzie97.communique.gresource.xml',
)
desktop_file = i18n.merge_file(
input: 'com.github.suzie97.communique.desktop.in',
output: 'com.github.suzie97.communique.desktop',
po_dir: PO_DIR,
type: 'desktop',
install: true,
install_dir: join_paths(SHARE_DIR, 'applications')
)
desktop_autostart_file = i18n.merge_file(
input: 'com.github.suzie97.communique-autostart.desktop.in',
output: 'com.github.suzie97.communique-autostart.desktop',
po_dir: PO_DIR,
type: 'desktop',
install: true,
install_dir: DATA_DIR
)
appdata_file = i18n.merge_file(
input: 'com.github.suzie97.communique.appdata.xml.in',
output: 'com.github.suzie97.communique.appdata.xml',
po_dir: PO_DIR,
install: true,
install_dir: join_paths(SHARE_DIR, 'metainfo')
)
desktop_file_validate = find_program('desktop-file-validate', required:false)
if desktop_file_validate.found()
foreach file: [desktop_file, desktop_autostart_file]
test (
'Validate desktop file',
desktop_file_validate,
args: file.full_path()
)
endforeach
endif
appstreamcli = find_program('appstream-util', required:false)
if appstreamcli.found()
test (
'Validate appdata file',
appstreamcli,
args: ['validate-relax', '--nonet', appdata_file.full_path()]
)
endif
subdir('application-icons')
install_subdir('GrabberConfig', install_dir: DATA_DIR)