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
|
desktop_file = i18n.merge_file(
input: 'prepaid-manager-applet.desktop.in',
output: 'prepaid-manager-applet.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
schemas = ['org.gnome.PrepaidManager.gschema.xml']
compiled = gnome.compile_schemas(
build_by_default: true
)
install_data(
schemas,
install_dir: 'share/glib-2.0/schemas'
)
appstream_file = i18n.merge_file(
input: 'prepaid-manager-applet.appdata.xml.in',
output: 'prepaid-manager-applet.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
)
# Verify the AppStream file with the appropriate tool, if found.
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
args: ['validate-relax', appstream_file]
)
endif
ppm_resources = gnome.compile_resources(
'ppm',
'ppm.gresources.xml',
gresource_bundle: true,
c_name: 'ppm',
install: true,
install_dir: pkgdatadir,
)
iconsdir = join_paths(get_option('datadir'), 'icons')
install_subdir('hicolor/', install_dir: iconsdir)
|