File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,9 @@ else()
157157 set_target_properties (${target} PROPERTIES INSTALL_RPATH
158158 "$ORIGIN:$ORIGIN/.." )
159159 endif ()
160- message (STATUS "ADVSS: ENABLED PLUGIN ${target} " )
160+ get_filename_component (_plugin_dir_name "${CMAKE_CURRENT_SOURCE_DIR } " NAME )
161+ set_property (GLOBAL APPEND PROPERTY ADVSS_PLUGINS_ENABLED
162+ ${_plugin_dir_name} )
161163 endfunction ()
162164
163165 function (install_advss_plugin_dependency_target target dep )
Original file line number Diff line number Diff line change 11macro (add_plugin plugin )
22 option (ENABLE_${plugin}_PLUGIN "Enable the ${plugin} plugin" ON )
33 if (ENABLE_${plugin} _PLUGIN)
4+ set_property (GLOBAL APPEND PROPERTY ADVSS_PLUGINS_PENDING ${plugin} )
45 add_subdirectory (${plugin} )
6+ else ()
7+ set_property (GLOBAL APPEND PROPERTY ADVSS_PLUGINS_DISABLED_BY_OPTION
8+ ${plugin} )
59 endif ()
610endmacro ()
711
@@ -37,3 +41,32 @@ add_plugin(stream-deck)
3741add_plugin (twitch )
3842add_plugin (usb )
3943add_plugin (video )
44+
45+ # ---------------------------------------------------------------------------- #
46+
47+ # Print plugin summary
48+ get_property (_advss_enabled GLOBAL PROPERTY ADVSS_PLUGINS_ENABLED)
49+ get_property (_advss_pending GLOBAL PROPERTY ADVSS_PLUGINS_PENDING)
50+ get_property (_advss_disabled_opt GLOBAL
51+ PROPERTY ADVSS_PLUGINS_DISABLED_BY_OPTION)
52+
53+ set (_advss_disabled_deps)
54+ foreach (_p ${_advss_pending} )
55+ if (NOT _p IN_LIST _advss_enabled)
56+ list (APPEND _advss_disabled_deps ${_p} )
57+ endif ()
58+ endforeach ()
59+
60+ message (STATUS "" )
61+ message (STATUS "ADVSS Plugin Summary" )
62+ message (STATUS "====================" )
63+ foreach (_p ${_advss_enabled} )
64+ message (STATUS " ENABLED: ${_p} " )
65+ endforeach ()
66+ foreach (_p ${_advss_disabled_deps} )
67+ message (STATUS " DISABLED: ${_p} (missing dependencies)" )
68+ endforeach ()
69+ foreach (_p ${_advss_disabled_opt} )
70+ message (STATUS " DISABLED: ${_p} (ENABLE_${_p} _PLUGIN=OFF)" )
71+ endforeach ()
72+ message (STATUS "" )
You can’t perform that action at this time.
0 commit comments