cmake: allow disabling pulse and alsa on linux

Since https://github.com/clangen/musikcube/pull/421 I can use pipewire
directly, which itself interfaces with ALSA and replaces pulseaudio.
Allow dropping both at build time, previously they were hard-selected
when on Linux.

Signed-off-by: Robert Günzler <r@gnzler.io>
This commit is contained in:
Robert Günzler 2021-10-22 15:38:04 +02:00
parent 51275f35ba
commit e2574cc1f4
No known key found for this signature in database
GPG Key ID: 2143BD2AAB94BCC4

View File

@ -174,8 +174,12 @@ add_dependencies(musikcube musikcore taglibreader nullout server httpdatastream
add_dependencies(musikcubed musikcube)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(src/plugins/alsaout)
add_subdirectory(src/plugins/pulseout)
if (${ENABLE_ALSA} MATCHES "true")
add_subdirectory(src/plugins/alsaout)
endif()
if (${ENABLE_PULSEAUDIO} MATCHES "true")
add_subdirectory(src/plugins/pulseout)
endif()
if (${ENABLE_PIPEWIRE} MATCHES "true")
add_subdirectory(src/plugins/pipewireout)
add_dependencies(musikcube pipewireout)