~unity8-desktop-session-team/indicator-session/indicator-session-using-upstart

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: Stephen M. Webb
  • Date: 2014-03-23 21:32:27 UTC
  • Revision ID: stephen.webb@canonical.com-20140323213227-l4ibsge0sd7xfhav
removed tests that assume gnome-session

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
install (FILES "${XDG_AUTOSTART_FILE}"
58
58
         DESTINATION "${XDG_AUTOSTART_DIR}")
59
59
 
 
60
##
 
61
##  Upstart XDG Autostart Override
 
62
##
 
63
 
 
64
# where to install
 
65
set (UPSTART_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/upstart/xdg/autostart")
 
66
message (STATUS "${UPSTART_XDG_AUTOSTART_DIR} is the Upstart XDG autostart override dir")
 
67
 
 
68
set (UPSTART_XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.upstart.desktop")
 
69
set (UPSTART_XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_XDG_AUTOSTART_NAME}")
 
70
set (UPSTART_XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_XDG_AUTOSTART_NAME}.in")
 
71
 
 
72
# build it
 
73
set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
 
74
configure_file ("${UPSTART_XDG_AUTOSTART_FILE_IN}" "${UPSTART_XDG_AUTOSTART_FILE}")
 
75
 
 
76
# install it
 
77
install (FILES "${UPSTART_XDG_AUTOSTART_FILE}"
 
78
         DESTINATION "${UPSTART_XDG_AUTOSTART_DIR}"
 
79
         RENAME "${XDG_AUTOSTART_NAME}")
60
80
 
61
81
##
62
82
##  Unity Indicator File