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

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: Charles Kerr
  • Date: 2013-07-02 00:26:11 UTC
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130702002611-lhtxz8ouz9uc2ldx
in cmake/Translations.cmake, use the GNUInstallDirs variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include (UseGSettings)
2
 
 
3
1
##
4
2
##  GSettings schema
5
3
##
17
15
 
18
16
 
19
17
##
20
 
##  Upstart Config File
21
 
##
22
 
 
23
 
# where to install
24
 
set (UPSTART_JOB_DIR "${CMAKE_INSTALL_FULL_DATADIR}/upstart/sessions")
25
 
message (STATUS "${UPSTART_JOB_DIR} is the Upstart Job install dir")
26
 
 
27
 
set (UPSTART_JOB_NAME "${CMAKE_PROJECT_NAME}.conf")
28
 
set (UPSTART_JOB_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_JOB_NAME}")
29
 
set (UPSTART_JOB_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_JOB_NAME}.in")
30
 
 
31
 
# build it
32
 
set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
33
 
configure_file ("${UPSTART_JOB_FILE_IN}" "${UPSTART_JOB_FILE}")
34
 
 
35
 
# install it
36
 
install (FILES "${UPSTART_JOB_FILE}"
37
 
         DESTINATION "${UPSTART_JOB_DIR}")
38
 
 
39
 
 
40
 
##
41
 
##  XDG Autostart Config File
42
 
##
43
 
 
44
 
# where to install
45
 
set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
46
 
message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir")
47
 
 
48
 
set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop")
49
 
set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}")
50
 
set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in")
51
 
 
52
 
# build it
53
 
set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
54
 
configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}")
55
 
 
56
 
# install it
57
 
install (FILES "${XDG_AUTOSTART_FILE}"
58
 
         DESTINATION "${XDG_AUTOSTART_DIR}")
 
18
##  DBus Service File
 
19
##
 
20
 
 
21
# where to install
 
22
set (DBUS_SERVICE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/dbus-1/services")
 
23
message (STATUS "${DBUS_SERVICE_DIR} is the DBus Service File install dir")
 
24
 
 
25
set (SERVICE_NAME "${CMAKE_PROJECT_NAME}.service")
 
26
set (SERVICE_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_NAME}")
 
27
set (SERVICE_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SERVICE_NAME}.in")
 
28
 
 
29
# build it
 
30
set (pkglibexecdir "${PROJECT_LIBEXECDIR}")
 
31
configure_file ("${SERVICE_FILE_IN}" "${SERVICE_FILE}")
 
32
 
 
33
# install it
 
34
install (FILES "${SERVICE_FILE}"
 
35
         DESTINATION "${DBUS_SERVICE_DIR}")
59
36
 
60
37
 
61
38
##