Porting to linux
This commit is contained in:
@@ -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
|
9
Engine/Source/Runtime/Core/StartingPoint/premake5.lua
Normal file
9
Engine/Source/Runtime/Core/StartingPoint/premake5.lua
Normal 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
|
@@ -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
|
@@ -0,0 +1 @@
|
||||
#include "Core/StartingPoint/StartingPointPCH.h"
|
Reference in New Issue
Block a user