Maintenance

- Removed change log (was horrible idea D:)
- Fixed some premake mistakes
- Fixed a typo
- Enabled MultiProcessorCompile for windows builds
This commit is contained in:
Light 2021-07-23 11:22:01 +04:30
parent 0d28451010
commit ffc29bec77
7 changed files with 23 additions and 63 deletions

View file

@ -22,6 +22,6 @@ include "../Sandbox/build.lua"
-- Dependencies -- -- Dependencies --
group "Dependencies" group "Dependencies"
include "../Dependencies/GLFW/" include "../Dependencies/GLFW/build.lua"
include "../Dependencies/GLAD/" include "../Dependencies/GLAD/build.lua"
include "../Dependencies/imgui/" include "../Dependencies/imgui/build.lua"

View file

@ -16,7 +16,7 @@ project "GLAD"
"**.c", "**.c",
"**.h", "**.h",
"premake5.lua" "build.lua"
} }
-- Dependencies -- -- Dependencies --
@ -36,6 +36,8 @@ project "GLAD"
"_CRT_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_WARNINGS",
} }
flags { "MultiProcessorCompile" }
-- debug -- debug
filter "configurations:Debug" filter "configurations:Debug"
runtime "Debug" runtime "Debug"

View file

@ -26,7 +26,7 @@ project "Engine"
"%{prj.location}/src/**.cpp", "%{prj.location}/src/**.cpp",
-- premake -- premake
"%{prj.location}/preake5*.lua", "%{prj.location}/build.lua",
"%{prj.location}/dxgidebug.dll", -- :#todo "%{prj.location}/dxgidebug.dll", -- :#todo
@ -73,6 +73,8 @@ project "Engine"
"dxguid.lib" , "dxguid.lib" ,
"D3DCompiler.lib" , "D3DCompiler.lib" ,
} }
flags { "MultiProcessorCompile" }
filter { "system:windows", "files:src/Platform/OS/Linux/**.**" } filter { "system:windows", "files:src/Platform/OS/Linux/**.**" }
flags { "ExcludeFromBuild" } flags { "ExcludeFromBuild" }

View file

@ -9,58 +9,6 @@
#include <memory> #include <memory>
// version
#define LT_VERSION "0.7.5b"
///*** [ CHANGE_LOG ] ***///
// --------------------------------------------------------------------
// Note: change log starts from 2021-07-21, the starting version is 0.7.0a:
// projects: 'Engine', 'Sandbox', 'Mirror' [+0.3]
// graphics apis: 'OpenGL', 'DirectX11' [+0.2]
// platforms: 'Windows', 'Linux' [+0.2]
// --------------------------------------------------------------------
//
//
// 0.7.0a: started the change log
//
// 0.7.1a: [ LT_BREAK ]
// - Added the 'LT_BERAK' macro, a portable debug-trap
//
// 0.7.2a: [ Failed engine/client assertion ]
// - Separated 'FailedAssertion' into 'FailedEngineAssertion' and 'FailedClientAssertion'
// - Minor adjustment to the change log
//
// 0.7.3a: [ Layer Improvements ]
// - Added 'Layer::OnEvent()', 'Layer' now handles an event by itself and doesn't need another class to determine the event's type
//
// - Added reverse iterators 'rend()' and 'rbegin()' to 'LayerStack'
//
// - Removed 'LayerStack::On*()', 'LayerStack'
//
// - 'Layer::On*Event()' are now protected and called by 'Layer::OnEvent()'
//
// - 'Application' now handles iterating through the 'Layer's and calling the update / on * functions
//
// - Fixed a typo where in 'Mirror' where the name of the 'MirrorLayer' was "SandboxLayer" instead of "MirrorLayer"
//
// 0.7.4a: [ Input ]
// - Added 'Input'
// - - Added <InputCodes>
// - The 'MirrorLayer''s ImGuiWindow, "GameView" will not receive/react to input events if the window is not focused
//
// 0.7.4b [ Maintenance ]
// - Added 'Get*Ref()' to 'dxSharedContext'
//
// - Fixed 'dxFramebuffer::Resize' not resizing : /
// - Fixed 'dxFrameBuffer::BindAsTarget' not setting the viewport
// - Fixed 'dxRenderCommand::SetViewport()' not resizing the swapchain's buffer
//
// - Improved 'dxGraphicsContext''s debug interface
//
// - Removed most of the 'ComPtr's in 'dxGraphicsContext', they can be accessed with the 'm_SharedContext'
//
///*** [ CHANGE_LOG ] ***///
// platform // platform
#define LT_WIN(x) // windows #define LT_WIN(x) // windows
#define LT_LIN(x) // linux #define LT_LIN(x) // linux
@ -88,9 +36,13 @@
// assertions // assertions
// #todo: log to file in distribution builds // #todo: log to file in distribution builds
#define LT_ENGINE_ASSERT(x, ...) { if(!(x)) { LT_ENGINE_CRITICAL(__VA_ARGS__); LT_BREAK(); throw ::Light::FailedEngineAssertion(__FILE__, __LINE__); } } #if defined(LIGHT_DIST)
#define LT_CLIENT_ASSERT(x, ...) { if(!(x)) { LT_CLIENT_CRITICAL(__VA_ARGS__); LT_BREAK(); throw ::Light::FailedClientAssertion(__FILE__, __LINE__); } } } #define LT_ENGINE_ASSERT(x, ...) { if(!(x)) { LT_FILE_CRITICAL(__VA_ARGS__); throw ::Light::FailedEngineAssertion(__FILE__, __LINE__); } }
#define LT_CLIENT_ASSERT(x, ...) { if(!(x)) { LT_FILE_CRITICAL(__VA_ARGS__); throw ::Light::FailedClientAssertion(__FILE__, __LINE__); } }
#else
#define LT_ENGINE_ASSERT(x, ...) { if(!(x)) { LT_ENGINE_CRITICAL(__VA_ARGS__); LT_BREAK(); throw ::Light::FailedEngineAssertion(__FILE__, __LINE__); } }
#define LT_CLIENT_ASSERT(x, ...) { if(!(x)) { LT_CLIENT_CRITICAL(__VA_ARGS__); LT_BREAK(); throw ::Light::FailedClientAssertion(__FILE__, __LINE__); } }
#endif
///*** [ PORTABLES ] ***/// ///*** [ PORTABLES ] ***///
//** PORTABLE_DEBUG_BREAK **// //** PORTABLE_DEBUG_BREAK **//

View file

@ -36,7 +36,7 @@
#include "Utility/ResourceManager.h" #include "Utility/ResourceManager.h"
//** TIME **// //** TIME **//
#include "TIme/Timer.h" #include "Time/Timer.h"
//** BASE **// //** BASE **//
#include "Base.h" #include "Base.h"

View file

@ -17,7 +17,7 @@ project "Mirror"
"%{prj.location}/src/**.h", "%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp", "%{prj.location}/src/**.cpp",
"%{prj.location}/premake5.lua", "%{prj.location}/build.lua",
} }
-- Dependencies -- -- Dependencies --
@ -50,6 +50,8 @@ project "Mirror"
defines "LIGHT_PLATFORM_WINDOWS" defines "LIGHT_PLATFORM_WINDOWS"
systemversion "latest" systemversion "latest"
staticruntime "On" staticruntime "On"
flags { "MultiProcessorCompile" }
-- linux -- linux
filter "system:linux" filter "system:linux"

View file

@ -17,7 +17,7 @@ project "Sandbox"
"%{prj.location}/src/**.h", "%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp", "%{prj.location}/src/**.cpp",
"%{prj.location}/premake5.lua", "%{prj.location}/build.lua",
} }
-- Dependencies -- -- Dependencies --
@ -51,6 +51,8 @@ project "Sandbox"
systemversion "latest" systemversion "latest"
staticruntime "On" staticruntime "On"
flags { "MultiProcessorCompile" }
-- linux -- linux
filter "system:linux" filter "system:linux"
defines "LIGHT_PLATFORM_LINUX" defines "LIGHT_PLATFORM_LINUX"