Commit 24777524 authored by Nicolas Fella's avatar Nicolas Fella

Make PulseAudioQt optional

Hopefully keeps those Pulseaudio deniers out pf my inbox
parent 7034cf5c
......@@ -48,7 +48,7 @@ else()
endif()
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
if(NOT WIN32 AND NOT APPLE)
find_package(KF5PulseAudioQt REQUIRED)
find_package(KF5PulseAudioQt)
endif()
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS -DQT_NO_CAST_FROM_ASCII)
endif()
......
......@@ -7,7 +7,6 @@ add_subdirectory(battery)
add_subdirectory(sendnotifications)
add_subdirectory(mpriscontrol)
add_subdirectory(photo)
add_subdirectory(systemvolume)
add_subdirectory(remotecommands)
add_subdirectory(mprisremote)
add_subdirectory(remotecontrol)
......@@ -31,12 +30,19 @@ if(NOT SAILFISHOS)
endif()
if(NOT WIN32 AND NOT APPLE)
add_subdirectory(sftp)
endif()
if(KF5PulseAudioQt_FOUND)
add_subdirectory(pausemusic)
endif()
if(Qt5Multimedia_FOUND AND KF5PulseAudioQt_FOUND)
add_subdirectory(findthisdevice)
endif()
if (WIN32 OR APPLE OR KF5PulseAudioQt_FOUND)
add_subdirectory(systemvolume)
endif()
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment