fix: avoid compiling audio_backend if pulse is not available

This commit is contained in:
Brenno Lemos 2023-10-15 18:12:31 -03:00
parent ecbcf242d5
commit 9d316de15a
1 changed files with 2 additions and 2 deletions

View File

@ -179,8 +179,7 @@ src_files = files(
'src/util/sanitize_str.cpp', 'src/util/sanitize_str.cpp',
'src/util/rewrite_string.cpp', 'src/util/rewrite_string.cpp',
'src/util/gtk_icon.cpp', 'src/util/gtk_icon.cpp',
'src/util/regex_collection.cpp', 'src/util/regex_collection.cpp'
'src/util/audio_backend.cpp'
) )
inc_dirs = ['include'] inc_dirs = ['include']
@ -276,6 +275,7 @@ if libpulse.found()
add_project_arguments('-DHAVE_LIBPULSE', language: 'cpp') add_project_arguments('-DHAVE_LIBPULSE', language: 'cpp')
src_files += 'src/modules/pulseaudio.cpp' src_files += 'src/modules/pulseaudio.cpp'
src_files += 'src/modules/pulseaudio_slider.cpp' src_files += 'src/modules/pulseaudio_slider.cpp'
src_files += 'src/util/audio_backend.cpp'
endif endif
if libjack.found() if libjack.found()