project: Restructure of the file system
The number of files in the source directory was a little bit much and just made file naming more complex than it had to be. Therefore all files were moved into subdirectories where it matters. Filters now reside in source/filters/, Sources in source/sources/, OBS Wrappers in obs/, OBS GS Wrappers in obs/gs/, Transitions will reside in source/transitions, Graphics Helpers will be in gfx/.
This commit is contained in:
		
							parent
							
								
									3e4930e6e0
								
							
						
					
					
						commit
						3bf1333c84
					
				
							
								
								
									
										142
									
								
								CMakeLists.txt
								
								
								
								
							
							
						
						
									
										142
									
								
								CMakeLists.txt
								
								
								
								
							|  | @ -236,64 +236,28 @@ SET(PROJECT_DATA_EFFECTS | |||
| ) | ||||
| SET(PROJECT_DATA_SHADERS | ||||
| #	"${PROJECT_SOURCE_DIR}/data/shaders/name.effect" | ||||
| ) | ||||
| SET(PROJECT_DATA_SHADERS_FILTER | ||||
| 	"${PROJECT_SOURCE_DIR}/data/shaders/filter/example.effect" | ||||
| ) | ||||
| SET(PROJECT_LIBRARIES | ||||
| ) | ||||
| SET(PROJECT_PUBLIC | ||||
| ) | ||||
| SET(PROJECT_PRIVATE | ||||
| SET(PROJECT_DATA | ||||
| 	${PROJECT_DATA_LOCALE} | ||||
| 	${PROJECT_DATA_EFFECTS} | ||||
| 	${PROJECT_DATA_SHADERS} | ||||
| 	${PROJECT_DATA_SHADERS_FILTER} | ||||
| ) | ||||
| 
 | ||||
| SET(PROJECT_LIBRARIES | ||||
| ) | ||||
| 
 | ||||
| SET(PROJECT_PUBLIC | ||||
| ) | ||||
| SET(PROJECT_PRIVATE_GENERATED | ||||
| 	"${PROJECT_BINARY_DIR}/source/module.cpp" | ||||
| 	"${PROJECT_BINARY_DIR}/source/version.hpp" | ||||
| ) | ||||
| SET(PROJECT_PRIVATE_SOURCE | ||||
| 
 | ||||
| 	# Plugin | ||||
| 	"${PROJECT_SOURCE_DIR}/source/plugin.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/plugin.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-displacement.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-displacement.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-blur.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-blur.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-sdf-effects.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-sdf-effects.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-shape.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-shape.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-transform.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-transform.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-custom-shader.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filter-custom-shader.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/source-mirror.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/source-mirror.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx-effect-source.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx-effect-source.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx-source-texture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx-source-texture.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-helper.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-helper.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-effect.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-effect.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-indexbuffer.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-indexbuffer.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-limits.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-mipmapper.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-mipmapper.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-rendertarget.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-rendertarget.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-sampler.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-sampler.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-texture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-texture.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-vertex.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-vertex.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-vertexbuffer.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gs-vertexbuffer.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-audio-capture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-audio-capture.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-tools.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-tools.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/strings.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/utility.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/utility.cpp" | ||||
|  | @ -303,16 +267,80 @@ SET(PROJECT_PRIVATE | |||
| 	"${PROJECT_SOURCE_DIR}/source/util-math.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/util-memory.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/util-memory.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-source.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-source.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-source-tracker.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs-source-tracker.cpp" | ||||
| 	 | ||||
| 	# Graphics | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx/gfx-effect-source.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx/gfx-effect-source.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx/gfx-source-texture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/gfx/gfx-source-texture.cpp" | ||||
| 
 | ||||
| 	# OBS | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-helper.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-helper.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-effect.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-effect.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-indexbuffer.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-indexbuffer.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-limits.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-mipmapper.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-mipmapper.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-rendertarget.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-rendertarget.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-sampler.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-sampler.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-texture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-texture.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-vertex.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-vertex.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-vertexbuffer.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/gs/gs-vertexbuffer.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-audio-capture.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-audio-capture.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-tools.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-tools.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-source.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-source.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-source-tracker.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/obs/obs-source-tracker.cpp" | ||||
| 	 | ||||
| 	# Sources | ||||
| 	"${PROJECT_SOURCE_DIR}/source/sources/source-mirror.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/sources/source-mirror.cpp" | ||||
| 
 | ||||
| 	# Filters | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-displacement.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-displacement.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-blur.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-blur.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-sdf-effects.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-sdf-effects.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-shape.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-shape.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-transform.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-transform.cpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-custom-shader.hpp" | ||||
| 	"${PROJECT_SOURCE_DIR}/source/filters/filter-custom-shader.cpp" | ||||
| 
 | ||||
| 	# Transitions | ||||
| ) | ||||
| set(PROJECT_PRIVATE | ||||
| 	${PROJECT_DATA} | ||||
| 	${PROJECT_PRIVATE_GENERATED} | ||||
| 	${PROJECT_PRIVATE_SOURCE} | ||||
| ) | ||||
| 
 | ||||
| source_group("Data Files\\Locale" FILES ${PROJECT_DATA_LOCALE}) | ||||
| source_group("Data Files\\Effects" FILES ${PROJECT_DATA_EFFECTS}) | ||||
| source_group("Data Files\\Shaders" FILES ${PROJECT_DATA_SHADERS}) | ||||
| source_group("Data Files\\Shaders\\Filter" FILES ${PROJECT_DATA_SHADERS_FILTER}) | ||||
| source_group(TREE "${PROJECT_SOURCE_DIR}/data" PREFIX "Data Files" FILES ${PROJECT_DATA}) | ||||
| source_group(TREE "${PROJECT_BINARY_DIR}/source" PREFIX "Generated Files" FILES ${PROJECT_PRIVATE_GENERATED}) | ||||
| 
 | ||||
| # Filter Sources | ||||
| set(_TMP_SOURCE ${PROJECT_PRIVATE_SOURCE}) | ||||
| list(FILTER _TMP_SOURCE INCLUDE REGEX "\.(c|cpp)$") | ||||
| source_group(TREE "${PROJECT_SOURCE_DIR}/source" PREFIX "Source Files" FILES ${_TMP_SOURCE}) | ||||
| 
 | ||||
| # Filter Headers | ||||
| set(_TMP_HEADER ${PROJECT_PRIVATE_SOURCE}) | ||||
| list(FILTER _TMP_HEADER INCLUDE REGEX "\.(h|hpp)$") | ||||
| source_group(TREE "${PROJECT_SOURCE_DIR}/source" PREFIX "Header Files" FILES ${_TMP_HEADER}) | ||||
| 
 | ||||
| ################################################################################ | ||||
| # Target | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ | |||
| #include <cinttypes> | ||||
| #include <cmath> | ||||
| #include <map> | ||||
| #include "obs-source-tracker.hpp" | ||||
| #include "obs/obs-source-tracker.hpp" | ||||
| #include "strings.hpp" | ||||
| #include "util-math.hpp" | ||||
| 
 | ||||
|  | @ -23,11 +23,11 @@ | |||
| #include <list> | ||||
| #include <map> | ||||
| #include <memory> | ||||
| #include "gfx-source-texture.hpp" | ||||
| #include "gs-effect.hpp" | ||||
| #include "gs-helper.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-texture.hpp" | ||||
| #include "gfx/gfx-source-texture.hpp" | ||||
| #include "obs/gs/gs-effect.hpp" | ||||
| #include "obs/gs/gs-helper.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-texture.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
|  | @ -21,9 +21,9 @@ | |||
| #include <cinttypes> | ||||
| #include <list> | ||||
| #include <vector> | ||||
| #include "gfx-effect-source.hpp" | ||||
| #include "gs-effect.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gfx/gfx-effect-source.hpp" | ||||
| #include "obs/gs/gs-effect.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| namespace filter { | ||||
|  | @ -20,7 +20,7 @@ | |||
| #pragma once | ||||
| #include <memory> | ||||
| #include <string> | ||||
| #include "gs-effect.hpp" | ||||
| #include "obs/gs/gs-effect.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
|  | @ -19,11 +19,11 @@ | |||
| 
 | ||||
| #pragma once | ||||
| #include <memory> | ||||
| #include "gs-effect.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-sampler.hpp" | ||||
| #include "gs-texture.hpp" | ||||
| #include "gs-vertexbuffer.hpp" | ||||
| #include "obs/gs/gs-effect.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-sampler.hpp" | ||||
| #include "obs/gs/gs-texture.hpp" | ||||
| #include "obs/gs/gs-vertexbuffer.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
|  | @ -18,7 +18,7 @@ | |||
|  */ | ||||
| 
 | ||||
| #pragma once | ||||
| #include "gs-vertexbuffer.hpp" | ||||
| #include "obs/gs/gs-vertexbuffer.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| #define P_SHAPE "Shape" | ||||
|  | @ -20,10 +20,10 @@ | |||
| #pragma once | ||||
| #include <memory> | ||||
| #include <vector> | ||||
| #include "gs-mipmapper.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-texture.hpp" | ||||
| #include "gs-vertexbuffer.hpp" | ||||
| #include "obs/gs/gs-mipmapper.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-texture.hpp" | ||||
| #include "obs/gs/gs-vertexbuffer.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| namespace filter { | ||||
|  | @ -22,11 +22,11 @@ | |||
| #include <utility> | ||||
| #include <vector> | ||||
| #include "gfx-source-texture.hpp" | ||||
| #include "gs-effect.hpp" | ||||
| #include "gs-mipmapper.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-texture.hpp" | ||||
| #include "gs-vertexbuffer.hpp" | ||||
| #include "obs/gs/gs-effect.hpp" | ||||
| #include "obs/gs/gs-mipmapper.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-texture.hpp" | ||||
| #include "obs/gs/gs-vertexbuffer.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
| #ifdef _MSC_VER | ||||
|  | @ -18,9 +18,9 @@ | |||
| #pragma once | ||||
| #include <memory> | ||||
| #include <string> | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-texture.hpp" | ||||
| #include "obs-source.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-texture.hpp" | ||||
| #include "obs/obs-source.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
| #ifdef _MSC_VER | ||||
|  | @ -18,11 +18,7 @@ | |||
| */ | ||||
| 
 | ||||
| #include "plugin.hpp" | ||||
| #include "filter-blur.hpp" | ||||
| #include "filter-displacement.hpp" | ||||
| #include "filter-shape.hpp" | ||||
| #include "filter-transform.hpp" | ||||
| #include "obs-source-tracker.hpp" | ||||
| #include "obs/obs-source-tracker.hpp" | ||||
| 
 | ||||
| std::list<std::function<void()>> initializerFunctions; | ||||
| std::list<std::function<void()>> finalizerFunctions; | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ | |||
| #include <functional> | ||||
| #include <memory> | ||||
| #include <vector> | ||||
| #include "obs-tools.hpp" | ||||
| #include "obs/obs-tools.hpp" | ||||
| #include "strings.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
|  | @ -23,11 +23,11 @@ | |||
| #include <mutex> | ||||
| #include <thread> | ||||
| #include <vector> | ||||
| #include "gfx-source-texture.hpp" | ||||
| #include "gs-rendertarget.hpp" | ||||
| #include "gs-sampler.hpp" | ||||
| #include "obs-audio-capture.hpp" | ||||
| #include "obs-source.hpp" | ||||
| #include "gfx/gfx-source-texture.hpp" | ||||
| #include "obs/gs/gs-rendertarget.hpp" | ||||
| #include "obs/gs/gs-sampler.hpp" | ||||
| #include "obs/obs-audio-capture.hpp" | ||||
| #include "obs/obs-source.hpp" | ||||
| #include "plugin.hpp" | ||||
| 
 | ||||
| // OBS
 | ||||
		Loading…
	
		Reference in New Issue