From c7881a2d849191e1b6243da75ebf9140d29655cb Mon Sep 17 00:00:00 2001 From: charles kerr Date: Fri, 1 Jan 2016 19:25:16 -0600 Subject: create a data/sounds/ directory in the repo to hold Low battery.ogg We may be adding sounds for when we transition to battery charging/discharging, so set up a sounds/ directory now. --- .build.yml | 5 +++++ data/CMakeLists.txt | 8 +++----- data/Low battery.ogg | Bin 71140 -> 0 bytes data/sounds/Low battery.ogg | Bin 0 -> 71140 bytes tests/CMakeLists.txt | 9 +++------ 5 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 data/Low battery.ogg create mode 100644 data/sounds/Low battery.ogg diff --git a/.build.yml b/.build.yml index 90c2e9a..14f553b 100644 --- a/.build.yml +++ b/.build.yml @@ -17,6 +17,7 @@ requires: - glib2 - libnotify - systemd + - gstreamer debian: # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-indicator-power @@ -38,6 +39,7 @@ requires: - dbus-test-runner - libdbustest1-dev - systemd + - libgstreamer1.0-dev debian:stable: - autopoint @@ -57,6 +59,7 @@ requires: - dbus-test-runner - libdbustest1-dev - systemd + - libgstreamer1.0-dev ubuntu: - autopoint @@ -76,6 +79,7 @@ requires: - dbus-test-runner - libdbustest1-dev - systemd + - libgstreamer1.0-dev ubuntu:focal: - autopoint @@ -94,6 +98,7 @@ requires: - dbus-test-runner - libdbustest1-dev - systemd + - libgstreamer1.0-dev variables: - 'CHECKERS=" diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index d6ffb35..2b8ab36 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -74,8 +74,6 @@ install (FILES "${AYATANA_INDICATOR_FILE}" ## # where to install -set (SOUNDS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/sounds") -message (STATUS "${SOUNDS_DIR} is the Sound install dir") - -install (FILES "Low battery.ogg" - DESTINATION "${SOUNDS_DIR}") +set (DATA_HOME "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}") +message (STATUS "${DATA_HOME} is the sounds/ install dir") +install (DIRECTORY sounds DESTINATION ${DATA_HOME}) diff --git a/data/Low battery.ogg b/data/Low battery.ogg deleted file mode 100644 index f6f9fb6..0000000 Binary files a/data/Low battery.ogg and /dev/null differ diff --git a/data/sounds/Low battery.ogg b/data/sounds/Low battery.ogg new file mode 100644 index 0000000..f6f9fb6 Binary files /dev/null and b/data/sounds/Low battery.ogg differ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 96cabb2..566132e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,13 +14,10 @@ set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES gschemas.compiled) set_source_files_properties (gschemas.compiled GENERATED) -# make a local install of the sounds -set(XDG_DATA_HOME "${CMAKE_CURRENT_BINARY_DIR}/share") +# make a XDG_DATA_HOME for sounds/ +set(XDG_DATA_HOME "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}") add_definitions(-DXDG_DATA_HOME="${XDG_DATA_HOME}") -file(COPY - DIRECTORY "${CMAKE_SOURCE_DIR}/data/" - DESTINATION "${XDG_DATA_HOME}/${CMAKE_PROJECT_NAME}/sounds" - FILES_MATCHING PATTERN "*.ogg") +file(COPY "${CMAKE_SOURCE_DIR}/data/sounds" DESTINATION "${XDG_DATA_HOME}/${CMAKE_PROJECT_NAME}") # GSettings: # compile the ayatana-indicator-power schema into a gschemas.compiled file in this directory, -- cgit v1.2.3