Porting to linux

This commit is contained in:
Thorben Höhne
2025-02-19 19:30:16 +01:00
parent 0da9755ae6
commit d00448a422
40 changed files with 416 additions and 216 deletions

View File

@@ -3,21 +3,6 @@
#if defined(P_LINUX_BUILD)
extern Phanes::Core::Application::PhanesProject* Phanes::Core::Application::CreatePhanesGame();
int main(int argc, char** argv)
{
Phanes::Core::Logging::Logger::Init();
PENGINE_LOG_INFO("Logger initialized!");
PENGINE_LOG_INFO("Welcome to PhanesEngine!");
auto phanes_game = Phanes::Core::Application::CreatePhanesGame();
phanes_game->Run();
delete phanes_game;
return 0;
}
int main();
#endif

View File

@@ -0,0 +1,9 @@
function includeStartingPoint()
files {
PhanesRuntime .. "/Core/StartingPoint/**.h",
PhanesRuntime .. "/Core/StartingPoint/**.cpp",
}
pchheader (PhanesRuntime .. "/Core/StartingPoint/StartingPointPCH.h")
pchsource (PhanesRuntime .. "/Core/StartingPoint/private/StartingPointPCH.cpp")
end

View File

@@ -0,0 +1,22 @@
#include "Core/Include.h"
#if defined(P_LINUX_BUILD)
extern Phanes::Core::Application::PhanesProject* Phanes::Core::Application::CreatePhanesGame();
int main()
{
Phanes::Core::Logging::Logger::Init();
PENGINE_LOG_INFO("Logger initialized!");
PENGINE_LOG_INFO("Welcome to PhanesEngine!");
auto phanes_game = Phanes::Core::Application::CreatePhanesGame();
phanes_game->Run();
delete phanes_game;
return 0;
}
#endif

View File

@@ -0,0 +1 @@
#include "Core/StartingPoint/StartingPointPCH.h"