2020-11-14 22:58:55 +03:00
|
|
|
project(sndio)
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
option(ENABLE_SNDIO "Build OBS with sndio support" OFF)
|
|
|
|
if(NOT ENABLE_SNDIO)
|
2022-03-25 18:51:41 +01:00
|
|
|
obs_status(DISABLED "sndio")
|
2022-03-16 23:10:42 +01:00
|
|
|
return()
|
2020-11-14 22:58:55 +03:00
|
|
|
endif()
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
find_package(Sndio REQUIRED)
|
|
|
|
|
|
|
|
add_library(sndio MODULE)
|
|
|
|
add_library(OBS::sndio ALIAS sndio)
|
2020-11-14 22:58:55 +03:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_sources(sndio PRIVATE sndio.c sndio-input.c)
|
2020-11-14 22:58:55 +03:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_link_libraries(sndio PRIVATE OBS::libobs Sndio::Sndio)
|
2020-11-14 22:58:55 +03:00
|
|
|
|
|
|
|
set_target_properties(sndio PROPERTIES FOLDER "plugins")
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_plugin_target(sndio)
|