2018-02-19 19:54:37 +00:00
|
|
|
option(DISABLE_PLUGINS "Disable building of OBS plugins" OFF)
|
|
|
|
if(DISABLE_PLUGINS)
|
|
|
|
message(STATUS "DISABLE_PLUGINS is set; building of plugins is disabled.")
|
|
|
|
return()
|
|
|
|
endif()
|
2016-02-23 23:16:51 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
option(BUILD_CA_ENCODER "Build CoreAudio encoder module" ON)
|
|
|
|
if (BUILD_CA_ENCODER)
|
|
|
|
add_subdirectory(coreaudio-encoder)
|
|
|
|
endif()
|
|
|
|
add_subdirectory(win-wasapi)
|
|
|
|
add_subdirectory(win-dshow)
|
|
|
|
add_subdirectory(win-capture)
|
|
|
|
add_subdirectory(decklink/win)
|
|
|
|
add_subdirectory(win-mf)
|
2016-05-24 19:53:01 +00:00
|
|
|
add_subdirectory(obs-qsv11)
|
2016-08-28 12:07:43 +00:00
|
|
|
add_subdirectory(vlc-video)
|
2018-02-19 19:54:37 +00:00
|
|
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/enc-amf/CMakeLists.txt")
|
|
|
|
add_subdirectory(enc-amf)
|
|
|
|
else()
|
|
|
|
message(STATUS "enc-amf submodule not found! Please fetch submodules. enc-amf plugin disabled.")
|
2016-10-10 19:01:40 +00:00
|
|
|
endif()
|
2017-04-19 19:54:15 +00:00
|
|
|
if (MSVC)
|
|
|
|
add_subdirectory(win-ivcam)
|
|
|
|
endif()
|
2016-02-23 23:16:51 +00:00
|
|
|
elseif(APPLE)
|
|
|
|
add_subdirectory(coreaudio-encoder)
|
|
|
|
add_subdirectory(mac-avcapture)
|
|
|
|
add_subdirectory(mac-capture)
|
|
|
|
add_subdirectory(mac-vth264)
|
|
|
|
add_subdirectory(mac-syphon)
|
|
|
|
add_subdirectory(decklink/mac)
|
2016-08-28 12:07:43 +00:00
|
|
|
add_subdirectory(vlc-video)
|
2016-10-10 19:01:40 +00:00
|
|
|
add_subdirectory(linux-jack)
|
2016-02-23 23:16:51 +00:00
|
|
|
elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
|
|
|
add_subdirectory(linux-capture)
|
|
|
|
add_subdirectory(linux-pulseaudio)
|
|
|
|
add_subdirectory(linux-v4l2)
|
|
|
|
add_subdirectory(linux-jack)
|
2016-05-24 19:53:01 +00:00
|
|
|
add_subdirectory(linux-alsa)
|
2016-02-23 23:16:51 +00:00
|
|
|
add_subdirectory(decklink/linux)
|
2016-08-28 12:07:43 +00:00
|
|
|
add_subdirectory(vlc-video)
|
2016-02-23 23:16:51 +00:00
|
|
|
elseif("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
|
|
|
|
add_subdirectory(linux-capture)
|
|
|
|
add_subdirectory(linux-pulseaudio)
|
|
|
|
add_subdirectory(linux-v4l2)
|
|
|
|
add_subdirectory(linux-jack)
|
|
|
|
endif()
|
|
|
|
|
2020-03-25 08:07:22 +00:00
|
|
|
option(BUILD_BROWSER "Build browser plugin" OFF)
|
|
|
|
if (BUILD_BROWSER)
|
|
|
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt")
|
|
|
|
add_subdirectory(obs-browser)
|
|
|
|
set(BROWSER_AVAILABLE_INTERNAL ON CACHE BOOL "Internal global cmake variable" FORCE)
|
2019-07-27 12:47:10 +00:00
|
|
|
else()
|
2020-03-25 08:07:22 +00:00
|
|
|
message(STATUS "obs-browser submodule not found! Please fetch submodules. obs-browser plugin disabled.")
|
|
|
|
set(BROWSER_AVAILABLE_INTERNAL OFF CACHE BOOL "Internal global cmake variable" FORCE)
|
2016-10-10 19:01:40 +00:00
|
|
|
endif()
|
2020-03-25 08:07:22 +00:00
|
|
|
else()
|
|
|
|
set(BROWSER_AVAILABLE_INTERNAL OFF CACHE BOOL "Internal global cmake variable" FORCE)
|
|
|
|
endif()
|
2017-04-19 19:54:15 +00:00
|
|
|
|
2020-03-25 08:07:22 +00:00
|
|
|
if(WIN32 OR APPLE)
|
2017-04-19 19:54:15 +00:00
|
|
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-vst/CMakeLists.txt")
|
|
|
|
add_subdirectory(obs-vst)
|
|
|
|
else()
|
|
|
|
message(STATUS "obs-vst submodule not found! Please fetch/update submodules. obs-vst plugin disabled.")
|
|
|
|
endif()
|
2016-10-10 19:01:40 +00:00
|
|
|
endif()
|
|
|
|
|
2016-02-23 23:16:51 +00:00
|
|
|
add_subdirectory(image-source)
|
|
|
|
add_subdirectory(obs-x264)
|
|
|
|
add_subdirectory(obs-libfdk)
|
|
|
|
add_subdirectory(obs-ffmpeg)
|
|
|
|
add_subdirectory(obs-outputs)
|
|
|
|
add_subdirectory(obs-filters)
|
|
|
|
add_subdirectory(obs-transitions)
|
2016-10-10 19:01:40 +00:00
|
|
|
add_subdirectory(obs-text)
|
2016-02-23 23:16:51 +00:00
|
|
|
add_subdirectory(rtmp-services)
|
|
|
|
add_subdirectory(text-freetype2)
|