From 65e91fbbc440d4fdac8abd9559eaa85a9860ec4b Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 30 Sep 2023 01:10:08 +0200 Subject: [PATCH] mirror: Move into its own component Soon to be replaced by Spout/Sink --- CMakeLists.txt | 21 ------------------- components/mirror/CMakeLists.txt | 8 +++++++ .../mirror/source}/sources/source-mirror.cpp | 0 .../mirror/source}/sources/source-mirror.hpp | 0 4 files changed, 8 insertions(+), 21 deletions(-) create mode 100644 components/mirror/CMakeLists.txt rename {source => components/mirror/source}/sources/source-mirror.cpp (100%) rename {source => components/mirror/source}/sources/source-mirror.hpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5eebe388..dc44e7c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,9 +298,6 @@ set(${PREFIX}ENABLE_FILTER_UPSCALING_NVIDIA ${FEATURE_EXPERIMENTAL} CACHE BOOL " set(${PREFIX}ENABLE_FILTER_VIRTUAL_GREENSCREEN ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable Virtual Greenscreen Filter") set(${PREFIX}ENABLE_FILTER_VIRTUAL_GREENSCREEN_NVIDIA ${FEATURE_EXPERIMENTAL} CACHE BOOL "Enable NVIDIA provider(s) for Virtual Greenscreen Filter") -## Sources -set(${PREFIX}ENABLE_SOURCE_MIRROR ${FEATURE_DEPRECATED} CACHE BOOL "Enable Mirror Source") - ## FrontEnd & UI set(${PREFIX}ENABLE_FRONTEND ON CACHE BOOL "Enable Frontend code.") set(${PREFIX}ENABLE_UPDATER ON CACHE BOOL "Enable automatic update checks.") @@ -517,10 +514,6 @@ function(feature_filter_virtual_greenscreen RESOLVE) endif() endfunction() -function(feature_source_mirror RESOLVE) - is_feature_enabled(SOURCE_MIRROR T_CHECK) -endfunction() - function(feature_frontend RESOLVE) is_feature_enabled(FRONTEND T_CHECK) if(RESOLVE AND T_CHECK) @@ -563,7 +556,6 @@ feature_filter_denoising(OFF) feature_filter_sdf_effects(OFF) feature_filter_upscaling(OFF) feature_filter_virtual_greenscreen(OFF) -feature_source_mirror(OFF) feature_frontend(OFF) feature_updater(OFF) @@ -693,7 +685,6 @@ feature_filter_denoising(ON) feature_filter_sdf_effects(ON) feature_filter_upscaling(ON) feature_filter_virtual_greenscreen(ON) -feature_source_mirror(ON) feature_frontend(ON) feature_updater(ON) @@ -1052,18 +1043,6 @@ if(T_CHECK) endif() endif() -# Source/Mirror -is_feature_enabled(SOURCE_MIRROR T_CHECK) -if(T_CHECK) - list(APPEND PROJECT_PRIVATE_SOURCE - "source/sources/source-mirror.hpp" - "source/sources/source-mirror.cpp" - ) - list(APPEND PROJECT_DEFINITIONS - ENABLE_SOURCE_MIRROR - ) -endif() - # Profiling is_feature_enabled(PROFILING T_CHECK) if(T_CHECK) diff --git a/components/mirror/CMakeLists.txt b/components/mirror/CMakeLists.txt new file mode 100644 index 00000000..159d8112 --- /dev/null +++ b/components/mirror/CMakeLists.txt @@ -0,0 +1,8 @@ +## AUTOGENERATED COPYRIGHT HEADER START +# Copyright (C) NaN-NaN undefined +# AUTOGENERATED COPYRIGHT HEADER END +cmake_minimum_required(VERSION 3.26) +project("Mirror") +list(APPEND CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}] ") + +streamfx_add_component("Mirror") diff --git a/source/sources/source-mirror.cpp b/components/mirror/source/sources/source-mirror.cpp similarity index 100% rename from source/sources/source-mirror.cpp rename to components/mirror/source/sources/source-mirror.cpp diff --git a/source/sources/source-mirror.hpp b/components/mirror/source/sources/source-mirror.hpp similarity index 100% rename from source/sources/source-mirror.hpp rename to components/mirror/source/sources/source-mirror.hpp