refactor: flatten directory structure
	
		
			
	
		
	
	
		
	
		
			Some checks reported errors
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build was killed
				
			
		
		
	
	
				
					
				
			
		
			Some checks reported errors
		
		
	
	continuous-integration/drone/push Build was killed
				
			This commit is contained in:
		
							parent
							
								
									2b27f5d82b
								
							
						
					
					
						commit
						cd886aa8c9
					
				
					 164 changed files with 111 additions and 52 deletions
				
			
		|  | @ -2,18 +2,18 @@ | |||
| #include <app/layer.hpp> | ||||
| #include <app/layer_stack.hpp> | ||||
| #include <asset_manager/asset_manager.hpp> | ||||
| #include <debug/assertions.hpp> | ||||
| #include <input/events/event.hpp> | ||||
| #include <input/events/keyboard.hpp> | ||||
| #include <input/events/window.hpp> | ||||
| #include <input/input.hpp> | ||||
| #include <lt_debug/assertions.hpp> | ||||
| #include <ranges> | ||||
| #include <renderer/blender.hpp> | ||||
| #include <renderer/graphics_context.hpp> | ||||
| #include <renderer/render_command.hpp> | ||||
| #include <renderer/renderer.hpp> | ||||
| #include <ui/ui.hpp> | ||||
| #include <window/linux/window.hpp> | ||||
| #include <window/window.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
|  | @ -1,5 +1,5 @@ | |||
| add_executable_module( | ||||
|     asset_baker baker.cpp | ||||
|     asset_baker entrypoint/baker.cpp | ||||
| ) | ||||
| 
 | ||||
| target_link_libraries( | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <asset_parser/compressors/compressors.hpp> | ||||
| #include <asset_parser/parser.hpp> | ||||
| #include <compressors/compressors.hpp> | ||||
| #include <cstdint> | ||||
| #include <filesystem> | ||||
| #include <fstream> | ||||
|  | @ -1,7 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <asset_parser/compressors/compressors.hpp> | ||||
| #include <asset_parser/parser.hpp> | ||||
| #include <compressors/compressors.hpp> | ||||
| #include <cstdint> | ||||
| #include <filesystem> | ||||
| #include <fstream> | ||||
|  | @ -1,6 +1,6 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <compressors/compressors.hpp> | ||||
| #include <asset_parser/compressors/compressors.hpp> | ||||
| #include <cstdint> | ||||
| #include <filesystem> | ||||
| #include <fstream> | ||||
|  | @ -1,3 +1,2 @@ | |||
| add_library_module(base) | ||||
| 
 | ||||
| target_precompile_headers(base INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/src/pch.hpp) | ||||
| target_precompile_headers(base INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/private/pch.hpp) | ||||
|  |  | |||
|  | @ -1,3 +1,3 @@ | |||
| add_library_module(lt_debug instrumentor.cpp) | ||||
| target_link_libraries(lt_debug PUBLIC logger) | ||||
| target_precompile_headers(lt_debug PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/pch.hpp) | ||||
| target_precompile_headers(lt_debug PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/private/pch.hpp) | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| #include <debug/instrumentor.hpp> | ||||
| #include <logger/logger.hpp> | ||||
| #include <lt_debug/instrumentor.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
							
								
								
									
										3
									
								
								modules/debug/private/pch.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								modules/debug/private/pch.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <lt_debug/assertions.hpp> | ||||
|  | @ -1,3 +0,0 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <debug/assertions.hpp> | ||||
|  | @ -1,16 +1,24 @@ | |||
| add_executable_module(mirror  | ||||
|     editor_layer.cpp | ||||
|     mirror.cpp | ||||
|     panel/asset_browser.cpp | ||||
|     panel/properties.cpp | ||||
|     panel/scene_hierarchy.cpp | ||||
| add_library_module(libmirror  | ||||
|     layers/editor_layer.cpp | ||||
|     panels/asset_browser.cpp | ||||
|     panels/properties.cpp | ||||
|     panels/scene_hierarchy.cpp | ||||
| ) | ||||
| 
 | ||||
| target_link_libraries( | ||||
|   mirror | ||||
|   libmirror | ||||
|   PUBLIC app | ||||
|   PUBLIC opengl::opengl | ||||
|   PUBLIC ui | ||||
|   PUBLIC imgui | ||||
|   PUBLIC input | ||||
| ) | ||||
| 
 | ||||
| add_test_module(libmirror  | ||||
|     layers/editor_layer.test.cpp | ||||
|     panels/asset_browser.test.cpp | ||||
|     panels/properties.test.cpp | ||||
|     panels/scene_hierarchy.test.cpp | ||||
| ) | ||||
| 
 | ||||
| add_executable_module(mirror entrypoint/mirror.cpp) | ||||
| target_link_libraries(mirror PRIVATE libmirror) | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| #include <app/entrypoint.hpp> | ||||
| #include <app/layer_stack.hpp> | ||||
| #include <math/vec2.hpp> | ||||
| #include <mirror/editor_layer.hpp> | ||||
| #include <mirror/layers/editor_layer.hpp> | ||||
| #include <window/window.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
|  | @ -7,7 +7,7 @@ | |||
| #include <input/input.hpp> | ||||
| #include <input/key_codes.hpp> | ||||
| #include <math/vec4.hpp> | ||||
| #include <mirror/editor_layer.hpp> | ||||
| #include <mirror/layers/editor_layer.hpp> | ||||
| #include <renderer/framebuffer.hpp> | ||||
| #include <renderer/graphics_context.hpp> | ||||
| #include <renderer/texture.hpp> | ||||
|  | @ -2,7 +2,7 @@ | |||
| #include <ecs/scene.hpp> | ||||
| #include <ecs/serializer.hpp> | ||||
| #include <imgui.h> | ||||
| #include <mirror/panel/asset_browser.hpp> | ||||
| #include <mirror/panels/asset_browser.hpp> | ||||
| #include <renderer/texture.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
|  | @ -4,7 +4,7 @@ | |||
| #include <imgui.h> | ||||
| #include <imgui_internal.h> | ||||
| #include <math/trig.hpp> | ||||
| #include <mirror/panel/properties.hpp> | ||||
| #include <mirror/panels/properties.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
|  | @ -1,8 +1,8 @@ | |||
| #include <ecs/components.hpp> | ||||
| #include <entt/entt.hpp> | ||||
| #include <imgui.h> | ||||
| #include <mirror/panel/properties.hpp> | ||||
| #include <mirror/panel/scene_hierarchy.hpp> | ||||
| #include <mirror/panels/properties.hpp> | ||||
| #include <mirror/panels/scene_hierarchy.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
							
								
								
									
										0
									
								
								modules/mirror/private/panels/scene_hierarchy.test.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/mirror/private/panels/scene_hierarchy.test.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -3,9 +3,9 @@ | |||
| #include <app/layer.hpp> | ||||
| #include <imgui.h> | ||||
| #include <math/vec2.hpp> | ||||
| #include <mirror/panel/asset_browser.hpp> | ||||
| #include <mirror/panel/properties.hpp> | ||||
| #include <mirror/panel/scene_hierarchy.hpp> | ||||
| #include <mirror/panels/asset_browser.hpp> | ||||
| #include <mirror/panels/properties.hpp> | ||||
| #include <mirror/panels/scene_hierarchy.hpp> | ||||
| #include <renderer/texture.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
|  | @ -1,7 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <filesystem> | ||||
| #include <mirror/panel/panel.hpp> | ||||
| #include <mirror/panels/panel.hpp> | ||||
| #include <renderer/texture.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| #include <ecs/entity.hpp> | ||||
| #include <math/vec3.hpp> | ||||
| #include <mirror/panel/panel.hpp> | ||||
| #include <mirror/panels/panel.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
|  | @ -1,9 +1,8 @@ | |||
| #pragma once | ||||
| 
 | ||||
| 
 | ||||
| #include <ecs/entity.hpp> | ||||
| #include <ecs/scene.hpp> | ||||
| #include <mirror/panel/panel.hpp> | ||||
| #include <mirror/panels/panel.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
| 
 | ||||
|  | @ -1,4 +1,4 @@ | |||
| #include <debug/assertions.hpp> | ||||
| #include <lt_debug/assertions.hpp> | ||||
| #include <renderer/buffers.hpp> | ||||
| #include <renderer/gl/buffers.hpp> | ||||
| #include <renderer/shared_context.hpp> | ||||
|  | @ -1,6 +1,6 @@ | |||
| #include <asset_parser/assets/texture.hpp> | ||||
| #include <debug/assertions.hpp> | ||||
| #include <glad/gl.h> | ||||
| #include <lt_debug/assertions.hpp> | ||||
| #include <renderer/gl/texture.hpp> | ||||
| 
 | ||||
| namespace lt { | ||||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
	Add table
		
		Reference in a new issue