mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Enable PulseAudio by default on Linux, disable by default on FreeBSD,
but allow configuration via CMake flag.
This commit is contained in:
parent
dc91063a1f
commit
9d935c248e
@ -104,10 +104,14 @@ add_dependencies(taglibreader taglib)
|
|||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
add_subdirectory(src/plugins/alsaout)
|
add_subdirectory(src/plugins/alsaout)
|
||||||
|
if (NOT ${ENABLE_PULSEAUDIO} MATCHES "false") # enabled by default
|
||||||
add_subdirectory(src/plugins/pulseout)
|
add_subdirectory(src/plugins/pulseout)
|
||||||
|
endif()
|
||||||
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
add_subdirectory(src/plugins/sndioout)
|
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")
|
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
add_subdirectory(src/plugins/coreaudioout)
|
add_subdirectory(src/plugins/coreaudioout)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user