diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-28 08:47:03 +0000 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-28 08:51:08 +0000 |
commit | de76813c8421fd900e0d57038d28e8be693e33be (patch) | |
tree | d99b90ed99e1c42f0bd7ad4bef35770bce521720 /data/CMakeLists.txt | |
parent | 22d45854cb2c7a6374d6dfc631d684d01fcc9063 (diff) | |
download | ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.tar.gz ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.tar.bz2 ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.zip |
Fork from Ubuntus' indicator-display project.
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r-- | data/CMakeLists.txt | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index d74ca48..7f10bac 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,3 +1,5 @@ +find_package(GSettings) + ## ## Upstart Job File ## @@ -19,13 +21,19 @@ install (FILES "${UPSTART_JOB_FILE}" DESTINATION "${UPSTART_JOBS_DIR}") ## +## GSettings +## + +if(NOT EXISTS /usr/share/glib-2.0/schemas/com.ubuntu.touch.system.gschema.xml) + add_schema ("org.ayatana.display.gschema.xml") +endif() + +## ## Systemd Unit File ## # where to install -# Uncomment when we drop Vivid -# pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir) -set (SYSTEMD_USER_DIR "/usr/lib/systemd/user") +pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir) message (STATUS "${SYSTEMD_USER_DIR} is the systemd user unit file install dir") set (SYSTEMD_USER_NAME "${CMAKE_PROJECT_NAME}.service") @@ -51,15 +59,15 @@ install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.override" DESTINATION "${UPSTART_SYSTEMD_OVERRIDE_DIR}") ## -## Unity Indicator File +## Ayatana Indicator File ## # where to install -set (UNITY_INDICATOR_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/unity/indicators") -message (STATUS "${UNITY_INDICATOR_DIR} is the Unity Indicator install dir") +set (AYATANA_INDICATOR_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/ayatana/indicators") +message (STATUS "${AYATANA_INDICATOR_DIR} is the Ayatana Indicator install dir") -set (UNITY_INDICATOR_NAME "com.canonical.indicator.rotation_lock") -set (UNITY_INDICATOR_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${UNITY_INDICATOR_NAME}") +set (AYATANA_INDICATOR_NAME "org.ayatana.indicator.rotation_lock") +set (AYATANA_INDICATOR_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${AYATANA_INDICATOR_NAME}") -install (FILES "${UNITY_INDICATOR_FILE}" - DESTINATION "${UNITY_INDICATOR_DIR}") +install (FILES "${AYATANA_INDICATOR_FILE}" + DESTINATION "${AYATANA_INDICATOR_DIR}") |