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
|
# The resources (NOTE: needed by e.g. src/)
resource_files = files('contacts.gresource.xml')
resources = gnome.compile_resources('org.gnome.Contacts', resource_files,
c_name: 'resources'
)
# The icons
iconsdir = join_paths(datadir, 'icons', 'hicolor')
foreach size: ['16x16', '22x22', '32x32', '48x48', '512x512', 'symbolic']
install_subdir('icons/hicolor/' + size, install_dir: iconsdir)
endforeach
# The desktop file
i18n.merge_file(
input: 'org.gnome.Contacts.desktop.in',
output: 'org.gnome.Contacts.desktop',
type: 'desktop',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'applications')
)
# The appdata file
i18n.merge_file(
input: 'org.gnome.Contacts.appdata.xml.in',
output: 'org.gnome.Contacts.appdata.xml',
type: 'xml',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
# DBus service files
service_config = configuration_data()
service_config.set('bindir', join_paths(bindir))
service_config.set('libexecdir', join_paths(libexecdir))
# The DBUS service file of the app
configure_file(
input: 'org.gnome.Contacts.service.in',
output: 'org.gnome.Contacts.service',
configuration: service_config,
install: true,
install_dir: join_paths(datadir, 'dbus-1', 'services'),
)
# The DBUS service file of the search provider
configure_file(
input: 'org.gnome.Contacts.SearchProvider.service.in',
output: 'org.gnome.Contacts.SearchProvider.service',
configuration: service_config,
install: true,
install_dir: join_paths(datadir, 'dbus-1', 'services'),
)
# The search provider file
install_data('org.gnome.Contacts.search-provider.ini',
install_dir: join_paths(datadir, 'gnome-shell', 'search-providers'),
)
|