Enable PulseAudio by default on Linux, disable by default on FreeBSD,

but allow configuration via CMake flag.
This commit is contained in:
casey langen 2017-12-27 15:46:53 -08:00
parent dc91063a1f
commit 9d935c248e

View File

@ -104,10 +104,14 @@ add_dependencies(taglibreader taglib)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(src/plugins/alsaout)
add_subdirectory(src/plugins/pulseout)
if (NOT ${ENABLE_PULSEAUDIO} MATCHES "false") # enabled by default
add_subdirectory(src/plugins/pulseout)
endif()
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
add_subdirectory(src/plugins/sndioout)
add_subdirectory(src/plugins/pulseout)
if (${ENABLE_PULSEAUDIO} MATCHES "true")
add_subdirectory(src/plugins/pulseout) # disabled by default
endif()
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
add_subdirectory(src/plugins/coreaudioout)
endif()