summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 79f765129c5911bfce4d82f9089631db8b7c7ffd (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
ifaces = files(
  act_namespace + '.xml',
  act_namespace + '.User.xml',
)

install_data(
  ifaces,
  install_dir: dbus_ifaces_dir,
)

install_data(
  act_namespace + '.conf',
  install_dir: dbus_conf_dir,
)

service_conf = configuration_data()
service_conf.set('datadir', act_datadir)
service_conf.set('gdm_conf_file', gdm_conf_file)
service_conf.set('libexecdir', act_libexecdir)
service_conf.set('localstatedir', act_localstatedir)
service_conf.set('path_wtmp', path_wtmp)

service = act_namespace + '.service'

configure_file(
  input: service + '.in',
  output: service,
  configuration: service_conf,
  install: true,
  install_dir: dbus_sys_dir,
)

policy = act_namespace.to_lower() + '.policy'

i18n.merge_file(
  policy,
  input: policy + '.in',
  output: policy,
  po_dir: po_dir,
  install: true,
  install_dir: policy_dir,
)

if install_systemd_unit_dir
  service = 'accounts-daemon.service'

  configure_file(
    input: service + '.in',
    output: service,
    configuration: service_conf,
    install: true,
    install_dir: systemd_system_unit_dir,
  )
endif