diff options
author | Ted Gould <ted@gould.cx> | 2014-02-19 22:04:20 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-19 22:04:20 -0600 |
commit | e7842cdb9183ca29fd679fb614f861fbe729282f (patch) | |
tree | 97bb5792986c5b7f879543e3c68b9cfff5e2440b /data/CMakeLists.txt | |
parent | 516866f37dac108ccf91a28e9fa3fe058277bdf1 (diff) | |
download | ayatana-indicator-datetime-e7842cdb9183ca29fd679fb614f861fbe729282f.tar.gz ayatana-indicator-datetime-e7842cdb9183ca29fd679fb614f861fbe729282f.tar.bz2 ayatana-indicator-datetime-e7842cdb9183ca29fd679fb614f861fbe729282f.zip |
Build an upstart override
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r-- | data/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index c45e1f9..5d9e545 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -48,6 +48,26 @@ configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}") install (FILES "${XDG_AUTOSTART_FILE}" DESTINATION "${XDG_AUTOSTART_DIR}") +## +## Upstart XDG Autostart Override +## + +# where to install +set (UPSTART_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/upstart/xdg/autostart") +message (STATUS "${UPSTART_XDG_AUTOSTART_DIR} is the Upstart XDG autostart override dir") + +set (UPSTART_XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.upstart.desktop") +set (UPSTART_XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_XDG_AUTOSTART_NAME}") +set (UPSTART_XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_XDG_AUTOSTART_NAME}.in") + +# build it +set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}") +configure_file ("${UPSTART_XDG_AUTOSTART_FILE_IN}" "${UPSTART_XDG_AUTOSTART_FILE}") + +# install it +install (FILES "${UPSTART_XDG_AUTOSTART_FILE}" + DESTINATION "${UPSTART_XDG_AUTOSTART_DIR}" + RENAME "${XDG_AUTOSTART_NAME}") ## ## Unity Indicator File |