diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-07 19:12:40 +0000 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-07 19:13:30 +0000 |
commit | d7e38c815212b5f3aa3c28b3323e0a49de125225 (patch) | |
tree | f0fbe4ce9eb61d8b4717f867169b6ae49f2263e4 /src/CMakeLists.txt | |
parent | c4fdabb6e8f05698a03d13c033bb3e998d8b0965 (diff) | |
download | ayatana-indicator-sound-d7e38c815212b5f3aa3c28b3323e0a49de125225.tar.gz ayatana-indicator-sound-d7e38c815212b5f3aa3c28b3323e0a49de125225.tar.bz2 ayatana-indicator-sound-d7e38c815212b5f3aa3c28b3323e0a49de125225.zip |
src/CMakeLists.txt: Various changes to get HAS_UT_ACCTSERVICE_* variables up-and-running.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 486ba7e..ba64aa7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,7 +8,7 @@ set(VAPI_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.vapi") if(URLDISPATCHER_FOUND) set (VALA_DEFINE_URLDISPATCHER "--define=HAS_URLDISPATCHER") - set (VALA_PKG_URLDISPATCHER "--pkg=url-dispatcher") + set (VALA_PKG_URLDISPATCHER "url-dispatcher") endif() if(EXISTS "/usr/share/glib-2.0/schemas/com.ubuntu.sound.gschema.xml") @@ -16,15 +16,19 @@ if(EXISTS "/usr/share/glib-2.0/schemas/com.ubuntu.sound.gschema.xml") endif() if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.SecurityPrivacy.xml") - set (HAVE_UT_ACCTSERVICE_PRIVACY_SETTINGS 1) + set (HAVE_UT_ACCTSERVICE_PRIVACY_SETTINGS ON) set (VALA_FILE_ACCTSERVICE_PRIVACY_SETTINGS "accounts-service-privacy-settings") set (VALA_DEFINE_ACCTSERVICE_PRIVACY_SETTINGS "--define=HAS_UT_ACCTSERVICE_PRIVACY_SETTINGS") +else() + set (HAVE_UT_ACCTSERVICE_PRIVACY_SETTINGS OFF) endif() if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.Sound.xml") - set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS 1) + set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS ON) set (VALA_FILE_ACCTSERVICE_SYSTEMSOUND_SETTINGS "accounts-service-system-sound-settings") set (VALA_DEFINE_ACCTSERVICE_SYSTEMSOUND_SETTINGS "--define=HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS") +else() + set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS OFF) endif() vapi_gen(accounts-service @@ -49,6 +53,7 @@ vala_init(ayatana-indicator-sound-service libpulse-mainloop-glib libnotify accounts-service + ${VALA_PKG_URLDISPATCHER} OPTIONS --ccode --thread @@ -56,7 +61,6 @@ vala_init(ayatana-indicator-sound-service --vapidir=${CMAKE_SOURCE_DIR}/vapi/ --vapidir=. --pkg=bus-watcher - ${VALA_PKG_URLDISPATCHER} ${VALA_DEFINE_URLDISPATCHER} ${VALA_DEFINE_UBUNTU_SOUND_SCHEMA} ${VALA_DEFINE_ACCTSERVICE_PRIVACY_SETTINGS} @@ -234,13 +238,13 @@ vala_add(ayatana-indicator-sound-service accounts-service-sound-settings.vala ) -if(HAVE_UT_ACCTSERVICE_PRIVACY_SETTINGS) +if(${HAVE_UT_ACCTSERVICE_PRIVACY_SETTINGS}) vala_add(ayatana-indicator-sound-service accounts-service-system-sound-settings.vala ) endif() -if(HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) +if(${HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS}) vala_add(ayatana-indicator-sound-service accounts-service-privacy-settings.vala ) @@ -294,6 +298,7 @@ add_library( target_link_libraries( indicator-sound-service-lib ${SOUNDSERVICE_LIBRARIES} + ${URLDISPATCHER_LIBRARIES} -lm ) |