summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 1d76df31bd052fb865d8d453ba4cd2274fb40c37 (plain)
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

subdir('icons')

data_dir = include_directories('.')

install_data(
    'atril.1',
    install_dir : join_paths(get_option('prefix'), get_option('mandir'), 'man1')
)

service_conf = configuration_data()
service_conf.set('libexecdir', join_paths(prefix, libexecdir))

configure_file(
    input: 'org.mate.atril.Daemon.service.in',
    output: 'org.mate.atril.Daemon.service',
    configuration: service_conf,
    install_dir: join_paths(datadir, 'dbus-1', 'services')
)

schema_file = install_data(
    'org.mate.Atril.gschema.xml',
    install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
)

desktop_conf = configuration_data()
desktop_conf.set('VERSION', meson.project_version())
desktop_conf.set('ATRIL_MIME_TYPES', atril_mime_types)

desktop = configure_file(
    input: 'atril.desktop.in.in',
    output: 'atril.desktop.in',
    configuration: desktop_conf,
)

i18n.merge_file(
    input: desktop,
    output: 'atril.desktop',
    type: 'desktop',
    po_dir: po_dir,
    install: true,
    install_dir: desktopdir,
)

appdata = i18n.merge_file(
    input: 'atril.appdata.xml.in.in',
    output: 'atril.appdata.xml',
    type: 'xml',
    po_dir: po_dir,
    install: true,
    install_dir: join_paths(datadir, 'metainfo'),
)

install_data(
    'hand-open.png',
    install_dir: join_paths(prefix, datadir, meson.project_name())
)