fix: avoid compiling audio_backend if pulse is not available
parent
ecbcf242d5
commit
9d316de15a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue