From 9d316de15a2051be613eefd1931039ffef934e91 Mon Sep 17 00:00:00 2001 From: Brenno Lemos Date: Sun, 15 Oct 2023 18:12:31 -0300 Subject: [PATCH] fix: avoid compiling audio_backend if pulse is not available --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 656cac98..b06786ba 100644 --- a/meson.build +++ b/meson.build @@ -179,8 +179,7 @@ src_files = files( 'src/util/sanitize_str.cpp', 'src/util/rewrite_string.cpp', 'src/util/gtk_icon.cpp', - 'src/util/regex_collection.cpp', - 'src/util/audio_backend.cpp' + 'src/util/regex_collection.cpp' ) inc_dirs = ['include'] @@ -276,6 +275,7 @@ if libpulse.found() add_project_arguments('-DHAVE_LIBPULSE', language: 'cpp') src_files += 'src/modules/pulseaudio.cpp' src_files += 'src/modules/pulseaudio_slider.cpp' + src_files += 'src/util/audio_backend.cpp' endif if libjack.found()