summaryrefslogtreecommitdiff
path: root/applets/inhibit/meson.build
blob: ed807dfab049af2a893c1cef04dbc1c587ad7f0f (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
conf_data = configuration_data()
conf_data.set('version', meson.project_version())
conf_data.set('sysconfdir', sysconfdir_path)
conf_data.set('datadir', datadir_path)
conf_data.set('bindir', bindir_path)
conf_data.set('sbindir', sbindir_path)
conf_data.set('localedir', localedir_path)
conf_data.set('iconsdir', iconsdir_path)
conf_data.set('uidir', uidir_path)
conf_data.set('gettext_package', meson.project_name())

configure_file(input: 'config.h.in', output: 'config.h', configuration: conf_data)

executable(
  'mate-inhibit-applet',
  [
    'inhibit-applet.c',
    'gpm-common.c',
  ],
  dependencies: dependencies,
  install: true,
  install_dir: libexecdir_path
)

desktop_data = configuration_data()
desktop_data.set('LIBEXECDIR', libexecdir_path)
desktop_data.set('VERSION', meson.project_version())

desktop_in = configure_file(
  input: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in.in',
  output: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in',
  configuration: desktop_data 
)

i18n.merge_file(
  input: desktop_in,
  output: 'org.mate.InhibitApplet.mate-panel-applet.desktop',
  type: 'desktop',
  po_dir: podir,
  install: true,
  install_dir: appletdir_path,
)

service_data = configuration_data()
service_data.set('LIBEXECDIR', libexecdir_path)

service_file = configure_file(
  input: 'org.mate.panel.applet.InhibitAppletFactory.service.in',
  output: 'org.mate.panel.applet.InhibitAppletFactory.service',
  configuration: service_data,
  install: true,
  install_dir: servicedir_path
)

install_data(
  ['inhibit-applet-menu.xml'],
  install_dir: uidir_path
)