-
-
Notifications
You must be signed in to change notification settings - Fork 8k
/
CMakeLists.txt
101 lines (91 loc) · 2.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
option(ENABLE_PLUGINS "Enable building OBS plugins" ON)
if(NOT ENABLE_PLUGINS)
message(STATUS "OBS: building with plugins disabled")
return()
endif()
function(check_obs_browser)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt)
add_subdirectory(obs-browser)
else()
message(FATAL_ERROR "OBS: obs-browser submodule not available")
endif()
endfunction()
function(check_obs_vst)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/obs-vst/CMakeLists.txt)
add_subdirectory(obs-vst)
else()
message(FATAL_ERROR "OBS: obs-vst submodule not available")
endif()
endfunction()
# APPLE/WIN32/UNIX are soft-deprecated:
# https://discourse.cmake.org/t/platform-id-vs-win32-vs-cmake-system-name/1226/2
if(OS_WINDOWS)
add_subdirectory(coreaudio-encoder)
add_subdirectory(win-wasapi)
add_subdirectory(win-dshow)
add_subdirectory(win-capture)
add_subdirectory(decklink)
add_subdirectory(win-mf)
add_subdirectory(obs-qsv11)
add_subdirectory(obs-text)
add_subdirectory(vlc-video)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/enc-amf/CMakeLists.txt")
add_subdirectory(enc-amf)
else()
message(WARNING "OBS: enc-amf plugin not found")
endif()
if(MSVC)
add_subdirectory(win-ivcam)
endif()
check_obs_browser()
check_obs_vst()
elseif(OS_MACOS)
add_subdirectory(coreaudio-encoder)
add_subdirectory(mac-avcapture)
add_subdirectory(mac-capture)
add_subdirectory(mac-vth264)
add_subdirectory(mac-syphon)
add_subdirectory(mac-virtualcam)
add_subdirectory(decklink)
add_subdirectory(vlc-video)
add_subdirectory(linux-jack)
check_obs_browser()
check_obs_vst()
elseif(OS_LINUX)
add_subdirectory(linux-capture)
add_subdirectory(linux-pulseaudio)
add_subdirectory(linux-v4l2)
add_subdirectory(linux-jack)
add_subdirectory(linux-alsa)
add_subdirectory(decklink)
add_subdirectory(vlc-video)
add_subdirectory(sndio)
check_obs_browser()
check_obs_vst()
elseif(OS_FREEBSD)
add_subdirectory(linux-capture)
add_subdirectory(linux-pulseaudio)
add_subdirectory(linux-v4l2)
add_subdirectory(linux-jack)
add_subdirectory(linux-alsa)
add_subdirectory(vlc-video)
add_subdirectory(oss-audio)
add_subdirectory(sndio)
message(STATUS "OBS: obs-browser plugin not available")
message(STATUS "OBS: obs-vst plugin not available")
elseif(OS_OPENBSD)
add_subdirectory(linux-capture)
add_subdirectory(sndio)
message(STATUS "OBS: obs-browser plugin not available")
message(STATUS "OBS: obs-vst plugin not available")
endif()
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)
add_subdirectory(rtmp-services)
add_subdirectory(text-freetype2)
add_subdirectory(aja)