Browse Source

obs-browser: Add browser plugin as a submodule

jp9000 9 years ago
parent
commit
677ae3798d
3 changed files with 15 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 11 0
      plugins/CMakeLists.txt
  3. 1 0
      plugins/obs-browser

+ 3 - 0
.gitmodules

@@ -8,3 +8,6 @@
 [submodule "plugins/enc-amf"]
 	path = plugins/enc-amf
 	url = https://github.com/Xaymar/OBS-AMD-Advanced-Media-Framework.git
+[submodule "plugins/obs-browser"]
+	path = plugins/obs-browser
+	url = https://github.com/kc5nra/obs-browser.git

+ 11 - 0
plugins/CMakeLists.txt

@@ -43,6 +43,17 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
 	add_subdirectory(linux-jack)
 endif()
 
+if(WIN32 OR APPLE)
+	option(BUILD_BROWSER "Build browser plugin" OFF)
+	if (BUILD_BROWSER)
+		if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt")
+			add_subdirectory(obs-browser)
+		else()
+			message(STATUS "obs-browser submodule not found!  Please fetch submodules.  obs-browser plugin disabled.")
+		endif()
+	endif()
+endif()
+
 add_subdirectory(image-source)
 add_subdirectory(obs-x264)
 add_subdirectory(obs-libfdk)

+ 1 - 0
plugins/obs-browser

@@ -0,0 +1 @@
+Subproject commit 2eaf69f7a3d2ac98a45d5cc96124ab7c666bfa2f