aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-02-18 01:53:41 +0100
committerRobert Tari <robert@tari.in>2022-02-18 02:53:46 +0100
commitdbdcf14f7c294ad957a0f5b64356c53e1077640d (patch)
tree40accd28c81785e055a06dd2ab5890bd471c231e
parent3589ed80e87484017da1d8c8ee47c177a6517869 (diff)
downloadayatana-indicator-datetime-dbdcf14f7c294ad957a0f5b64356c53e1077640d.tar.gz
ayatana-indicator-datetime-dbdcf14f7c294ad957a0f5b64356c53e1077640d.tar.bz2
ayatana-indicator-datetime-dbdcf14f7c294ad957a0f5b64356c53e1077640d.zip
CMakeLists.txt: Read default sounds from lomiri-sounds pkg-config file
-rw-r--r--CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e3a998..ff8c892 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,12 +78,19 @@ if (ENABLE_LOMIRI_FEATURES)
APPEND
SERVICE_DEPS
lomiri-url-dispatcher>=0
+ lomiri-sounds
+ lomiri-schemas
)
+ pkg_get_variable(ALARM_DEFAULT_SOUND lomiri-sounds alarm_default_sound)
+ pkg_get_variable(CALENDAR_DEFAULT_SOUND lomiri-sounds calendar_default_sound)
+ string(REPLACE ";" " " ALARM_DEFAULT_SOUND "${ALARM_DEFAULT_SOUND}")
+ string(REPLACE ";" " " ALARM_DEFAULT_SOUND "${ALARM_DEFAULT_SOUND}")
+
add_definitions (
-DLOMIRI_FEATURES_ENABLED
- -DALARM_DEFAULT_SOUND="/usr/share/sounds/lomiri/ringtones/Alarm clock.ogg"
- -DCALENDAR_DEFAULT_SOUND="/usr/share/sounds/lomiri/ringtones/Marimbach.ogg"
+ -DALARM_DEFAULT_SOUND="${ALARM_DEFAULT_SOUND}"
+ -DCALENDAR_DEFAULT_SOUND="${CALENDAR_DEFAULT_SOUND}"
)
else ()
add_definitions (