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.
21 lines
474 B
CMake
21 lines
474 B
CMake
project(linux-alsa)
|
|
|
|
option(ENABLE_ALSA "Build OBS with ALSA support" ON)
|
|
if(NOT ENABLE_ALSA)
|
|
obs_status(DISABLED "linux-alsa")
|
|
return()
|
|
endif()
|
|
|
|
find_package(ALSA REQUIRED)
|
|
|
|
add_library(linux-alsa MODULE)
|
|
add_library(OBS::alsa ALIAS linux-alsa)
|
|
|
|
target_sources(linux-alsa PRIVATE linux-alsa.c alsa-input.c)
|
|
|
|
target_link_libraries(linux-alsa PRIVATE OBS::libobs ALSA::ALSA)
|
|
|
|
set_target_properties(linux-alsa PROPERTIES FOLDER "plugins")
|
|
|
|
setup_plugin_target(linux-alsa)
|