aae3a6a466
Status output related to OBS configuration is prefixed with the string "OBS" and added padding for enabled and disabled features. This padding was not aligned between platforms. By moving the padding and prefix decoration into its own function, both elements are controlled in a single place. CMake scripts were changed to use this new function `obs_status` instead of using CMake's `message` function directly.
26 lines
746 B
CMake
26 lines
746 B
CMake
project(linux-pulseaudio)
|
|
|
|
option(ENABLE_PULSEAUDIO "Enable PulseAudio support" ON)
|
|
|
|
if(NOT ENABLE_PULSEAUDIO)
|
|
obs_status(DISABLED "linux-pulseaudio")
|
|
return()
|
|
endif()
|
|
|
|
find_package(PulseAudio REQUIRED)
|
|
|
|
add_library(linux-pulseaudio MODULE)
|
|
add_library(OBS::pulseaudio ALIAS linux-pulseaudio)
|
|
|
|
target_sources(linux-pulseaudio PRIVATE linux-pulseaudio.c pulse-wrapper.c
|
|
pulse-input.c)
|
|
|
|
target_include_directories(linux-pulseaudio PRIVATE ${PULSEAUDIO_INCLUDE_DIR})
|
|
|
|
target_link_libraries(linux-pulseaudio PRIVATE OBS::libobs
|
|
${PULSEAUDIO_LIBRARY})
|
|
|
|
set_target_properties(linux-pulseaudio PROPERTIES FOLDER "plugins")
|
|
|
|
setup_plugin_target(linux-pulseaudio)
|