cmake: Move frontend plugins into main plugins dir

Frontend plugins should not require being placed in the frontend
directory to be built successfully. Indeed they should only depend
on libobs and the obs-frontend-api and thus their source tree should
be able to exist anywhere (even standalone) and the plugin should still
compile successfully (just like any 3rd party plugin).

Thus moving those plugins into the main plugin directory ensures that
they don't require on any "special sauce" within the source tree to
compile.
This commit is contained in:
PatTheMav
2026-06-05 16:00:18 -04:00
committed by Ryan Foster
parent 35c7a5a173
commit 1829492e6b
188 changed files with 19 additions and 9 deletions
-2
View File
@@ -64,8 +64,6 @@ include(cmake/feature-youtube.cmake)
include(cmake/feature-whatsnew.cmake)
include(cmake/feature-idian-playground.cmake)
add_subdirectory(plugins)
configure_file(cmake/templates/ui-config.h.in ui-config.h)
target_sources(
-4
View File
@@ -1,4 +0,0 @@
add_subdirectory(aja-output-ui)
add_subdirectory(decklink-captions)
add_subdirectory(decklink-output-ui)
add_subdirectory(frontend-tools)
+16
View File
@@ -36,12 +36,28 @@ add_obs_plugin(
PLATFORMS WINDOWS MACOS LINUX
WITH_MESSAGE
)
add_obs_plugin(aja-output-ui PLATFORMS WINDOWS MACOS LINUX WITH_MESSAGE)
add_obs_plugin(coreaudio-encoder PLATFORMS WINDOWS MACOS)
add_obs_plugin(
decklink
PLATFORMS WINDOWS MACOS LINUX
WITH_MESSAGE
)
add_obs_plugin(
decklink-captions
PLATFORMS WINDOWS MACOS LINUX
WITH_MESSAGE
)
add_obs_plugin(
decklink-output-ui
PLATFORMS WINDOWS MACOS LINUX
WITH_MESSAGE
)
add_obs_plugin(
frontend-tools
PLATFORMS WINDOWS MACOS LINUX
WITH_MESSAGE
)
add_obs_plugin(image-source)
add_obs_plugin(linux-alsa PLATFORMS LINUX FREEBSD OPENBSD)
add_obs_plugin(linux-capture PLATFORMS LINUX FREEBSD OPENBSD)
@@ -58,7 +58,7 @@ endif()
set_target_properties_obs(
aja-output-ui
PROPERTIES FOLDER frontend
PROPERTIES FOLDER plugins/aja
PREFIX ""
AUTOMOC ON
AUTOUIC ON
@@ -47,7 +47,7 @@ endif()
set_target_properties_obs(
decklink-output-ui
PROPERTIES FOLDER frontend
PROPERTIES FOLDER plugins/decklink
PREFIX ""
AUTOMOC ON
AUTOUIC ON
@@ -83,7 +83,7 @@ endif()
set_target_properties_obs(
frontend-tools
PROPERTIES FOLDER frontend
PROPERTIES FOLDER plugins/frontend-tools
PREFIX ""
AUTOMOC ON
AUTOUIC ON

Some files were not shown because too many files have changed in this diff Show More