Make PulseAudioQt optional

Hopefully keeps those Pulseaudio deniers out pf my inbox
This commit is contained in:
Nicolas Fella 2019-08-01 13:56:19 +02:00
parent 7034cf5cbd
commit 24777524ad
2 changed files with 8 additions and 2 deletions

View file

@ -48,7 +48,7 @@ else()
endif() endif()
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED) find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
if(NOT WIN32 AND NOT APPLE) if(NOT WIN32 AND NOT APPLE)
find_package(KF5PulseAudioQt REQUIRED) find_package(KF5PulseAudioQt)
endif() endif()
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS -DQT_NO_CAST_FROM_ASCII) add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS -DQT_NO_CAST_FROM_ASCII)
endif() endif()

View file

@ -7,7 +7,6 @@ add_subdirectory(battery)
add_subdirectory(sendnotifications) add_subdirectory(sendnotifications)
add_subdirectory(mpriscontrol) add_subdirectory(mpriscontrol)
add_subdirectory(photo) add_subdirectory(photo)
add_subdirectory(systemvolume)
add_subdirectory(remotecommands) add_subdirectory(remotecommands)
add_subdirectory(mprisremote) add_subdirectory(mprisremote)
add_subdirectory(remotecontrol) add_subdirectory(remotecontrol)
@ -31,12 +30,19 @@ if(NOT SAILFISHOS)
endif() endif()
if(NOT WIN32 AND NOT APPLE) if(NOT WIN32 AND NOT APPLE)
add_subdirectory(sftp) add_subdirectory(sftp)
endif()
if(KF5PulseAudioQt_FOUND)
add_subdirectory(pausemusic) add_subdirectory(pausemusic)
endif() endif()
if(Qt5Multimedia_FOUND AND KF5PulseAudioQt_FOUND) if(Qt5Multimedia_FOUND AND KF5PulseAudioQt_FOUND)
add_subdirectory(findthisdevice) add_subdirectory(findthisdevice)
endif() endif()
if (WIN32 OR APPLE OR KF5PulseAudioQt_FOUND)
add_subdirectory(systemvolume)
endif()
endif() endif()