aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-13 12:47:41 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-13 12:47:41 +0000
commited5a6fecd90a701727ac319c35c1b3eb6e0d6556 (patch)
tree3fad775a49b80e59f3d26caacbab165e15bae030
parent36d7790ad9582487cd87600c35f1aa484e71ed9d (diff)
downloadayatana-indicator-sound-ed5a6fecd90a701727ac319c35c1b3eb6e0d6556.tar.gz
ayatana-indicator-sound-ed5a6fecd90a701727ac319c35c1b3eb6e0d6556.tar.bz2
ayatana-indicator-sound-ed5a6fecd90a701727ac319c35c1b3eb6e0d6556.zip
tests/dbus-types/CMakeLists.txt: Conditionally use com.canonical.AccountsService.Sound.xml (on Ubuntu) or org.ayatana.AccountsService.Sound.xml (or non-Ubuntu).
-rw-r--r--tests/dbus-types/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/dbus-types/CMakeLists.txt b/tests/dbus-types/CMakeLists.txt
index aadc940..45369cf 100644
--- a/tests/dbus-types/CMakeLists.txt
+++ b/tests/dbus-types/CMakeLists.txt
@@ -14,9 +14,15 @@ set(dbusinterface_accounts_xml "org.freedesktop.Accounts.xml")
set_source_files_properties(${dbusinterface_accounts_xml} PROPERTIES
CLASSNAME AccountsInterface)
-set(dbusinterface_accountssound_xml "org.ayatana.AccountsService.Sound.xml")
-set_source_files_properties(${dbusinterface_accountssound_xml} PROPERTIES
- CLASSNAME AccountsSoundInterface)
+if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.AccountsService.Sound.xml")
+ set(dbusinterface_accountssound_xml "com.canonical.AccountsService.Sound.xml")
+ set_source_files_properties(${dbusinterface_accountssound_xml} PROPERTIES
+ CLASSNAME AccountsSoundInterface)
+else()
+ set(dbusinterface_accountssound_xml "org.ayatana.AccountsService.Sound.xml")
+ set_source_files_properties(${dbusinterface_accountssound_xml} PROPERTIES
+ CLASSNAME AccountsSoundInterface)
+endif()
set(dbusinterface_properties_xml "org.freedesktop.DBus.Properties.xml")
set_source_files_properties(${dbusinterface_properties_xml} PROPERTIES