From e2574cc1f48c8c7a105c68e7c0ed0e304d529a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20G=C3=BCnzler?= Date: Fri, 22 Oct 2021 15:38:04 +0200 Subject: [PATCH] cmake: allow disabling pulse and alsa on linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 964d59f61..907917a80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)