~ci-train-bot/hud/hud-ubuntu-zesty-landing-022

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: Bileto Bot
  • Date: 2016-10-19 11:38:59 UTC
  • mfrom: (406.1.1 hud)
  • Revision ID: ci-train-bot@canonical.com-20161019113859-mb7jjsc7t09tme94
Switch the user session to systemd

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
)
32
32
 
33
33
###########################
34
 
# Upstart Job
 
34
# Systemd Unit
35
35
###########################
36
36
 
37
 
set(HUD_UPSTART
38
 
"${CMAKE_CURRENT_BINARY_DIR}/hud.conf"
39
 
)
40
 
 
41
 
set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
42
 
configure_file("hud.conf.in"
43
 
  "${HUD_UPSTART}"
44
 
  @ONLY
45
 
)
46
 
 
47
 
install(
48
 
FILES
49
 
"${HUD_UPSTART}"
50
 
DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/sessions"
51
 
)
52
 
 
53
 
set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
54
 
configure_file("dbus-activation-hack.sh.in"
55
 
  "${CMAKE_CURRENT_BINARY_DIR}/dbus-activation-hack.sh"
56
 
  @ONLY
57
 
)
58
 
 
59
 
install(
60
 
PROGRAMS
61
 
"${CMAKE_CURRENT_BINARY_DIR}/dbus-activation-hack.sh"
62
 
DESTINATION
63
 
"${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud"
 
37
# where to install
 
38
pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)
 
39
message (STATUS "${SYSTEMD_USER_DIR} is the systemd user unit file install dir")
 
40
 
 
41
set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
 
42
configure_file("hud.service.in"
 
43
  "hud.service"
 
44
  @ONLY
 
45
)
 
46
 
 
47
install(
 
48
FILES "${CMAKE_CURRENT_BINARY_DIR}/hud.service"
 
49
DESTINATION "${SYSTEMD_USER_DIR}"
64
50
)
65
51
 
66
52
###########################
68
54
###########################
69
55
 
70
56
configure_file(
71
 
  "window-stack-bridge.conf.in"
72
 
  "window-stack-bridge.conf"
 
57
  "window-stack-bridge.service.in"
 
58
  "window-stack-bridge.service"
73
59
  @ONLY
74
60
)
75
61
 
76
62
install(
77
 
  FILES "${CMAKE_CURRENT_BINARY_DIR}/window-stack-bridge.conf"
78
 
  DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/sessions"
 
63
  FILES "${CMAKE_CURRENT_BINARY_DIR}/window-stack-bridge.service"
 
64
  DESTINATION "${SYSTEMD_USER_DIR}"
79
65
)
80
66
 
81
67
###########################