2015-01-17 00:01:50 +01:00
|
|
|
project(linux-jack)
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
option(ENABLE_JACK "Build OBS with JACK support" OFF)
|
|
|
|
if(NOT ENABLE_JACK)
|
2022-03-25 18:51:41 +01:00
|
|
|
obs_status(DISABLED "linux-jack")
|
2022-03-16 23:10:42 +01:00
|
|
|
return()
|
2015-01-17 00:01:50 +01:00
|
|
|
endif()
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
find_package(Jack REQUIRED)
|
|
|
|
|
|
|
|
add_library(linux-jack MODULE)
|
|
|
|
add_library(OBS::jack ALIAS linux-jack)
|
2015-01-17 00:01:50 +01:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_sources(linux-jack PRIVATE linux-jack.c jack-wrapper.c jack-input.c)
|
2015-01-17 00:01:50 +01:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_link_libraries(linux-jack PRIVATE OBS::libobs Jack::Jack)
|
2015-01-17 00:01:50 +01:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
set_target_properties(linux-jack PROPERTIES FOLDER "plugins" PROJECT_LABEL
|
|
|
|
"JACK Audio")
|
2015-01-17 00:01:50 +01:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_plugin_target(linux-jack)
|