summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 627f46d32c28311fbcffd87ba7c091f2bad63401 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
common_desktop_data = configuration_data()
common_desktop_data.set('VERSION', meson.project_version())

preferences_desktop = configure_file(
  input: 'mate-power-preferences.desktop.in.in',
  output: 'mate-power-preferences.desktop.in',
  configuration: common_desktop_data
)

statistics_desktop = configure_file(
  input: 'mate-power-statistics.desktop.in.in',
  output: 'mate-power-statistics.desktop.in',
  configuration: common_desktop_data
)

mpm_autostart = configure_file(
  input: 'mate-power-manager.desktop.in.in',
  output: 'mate-power-manager.desktop.in',
  configuration: common_desktop_data
)

mpm_service_data = configuration_data()
mpm_service_data.set('servicedir', servicedir_path)

mpm_service = configure_file(
  input: 'org.mate.PowerManager.service.in',
  output: 'org.mate.PowerManager.service',
  configuration: mpm_service_data,
  install: true,
  install_dir: servicedir_path
)

mpm_gsettings_schema_data = configuration_data()
mpm_gsettings_schema_data.set('GETTEXT_PACKAGE', meson.project_name())

mpm_gsettings_schema = configure_file(
  input: 'org.mate.power-manager.gschema.xml.in',
  output: 'org.mate.power-manager.gschema.xml',
  configuration: mpm_gsettings_schema_data,
  install: true,
  install_dir: join_paths(datadir_path, 'glib-2.0', 'schemas')
)
meson.add_install_script('meson_post_install.py')

i18n.merge_file(
  input: preferences_desktop,
  output: 'mate-power-preferences.desktop',
  type: 'desktop',
  po_dir: podir,
  install: true,
  install_dir: desktopdir_path
)

i18n.merge_file(
  input: statistics_desktop,
  output: 'mate-power-statistics.desktop',
  type: 'desktop',
  po_dir: podir,
  install: true,
  install_dir: desktopdir_path
)

i18n.merge_file(
  input: mpm_autostart,
  output: 'mate-power-manager.desktop',
  type: 'desktop',
  po_dir: podir,
  install: true,
  install_dir: join_paths(sysconfdir_path, 'xdg', 'autostart')
)

install_man(
  [
    'mate-power-manager.1',
    'mate-power-backlight-helper.1',
    'mate-power-statistics.1',
    'mate-power-preferences.1'
  ]
)

install_data(
  ['acme.ui'],
  install_dir: pkgdatadir_path
)

subdir('icons')