aboutsummaryrefslogtreecommitdiffhomepage
path: root/systemd/meson.build
blob: 909ea65142a8c8eb033cb1c5fbc404874bb120bd (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
user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir',
    pkgconfig_define: ['prefix', get_option('prefix')])

install_data(
  'hyprland-systemd.desktop',
  install_dir: join_paths(get_option('datadir'), 'wayland-sessions'),
  install_tag: 'runtime',
)
install_data(
  'hyprland-session.target',
  install_dir: user_unit_dir,
  install_tag: 'runtime',
)
install_data(
  'hyprland-session@.target',
  install_dir: user_unit_dir,
  install_tag: 'runtime',
)
install_data(
  'hyprland-session-pre.target',
  install_dir: user_unit_dir,
  install_tag: 'runtime',
)

conf_data = configuration_data()
conf_data.set('BINDIR', get_option('bindir'))

configure_file(
  configuration: conf_data,
  input: 'hyprland-session.service.in',
  output: '@BASENAME@',
  install_dir: user_unit_dir
)