Files
UnrealEngineUWP/Engine/Source/Developer/Linux/LinuxClientTargetPlatform/Private/LinuxClientTargetPlatformModule.cpp
Michael Sartain a65c919c15 Add LinuxAArch64 platform and Linux platform group
#jira none
#rb Brandon.Schaefer, Arciel.Rekman, Ben.Marsh

[CL 8175700 by Michael Sartain in Dev-Rendering branch]
2019-08-21 11:42:07 -04:00

48 lines
1.2 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
LinuxClientTargetPlatformModule.cpp: Implements the FLinuxClientTargetPlatformModule class.
=============================================================================*/
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/ITargetPlatformModule.h"
#include "LinuxTargetDevice.h"
#include "LinuxTargetPlatform.h"
/**
* Holds the target platform singleton.
*/
static ITargetPlatform* Singleton = NULL;
/**
* Module for the Linux target platform (without editor).
*/
class FLinuxClientTargetPlatformModule
: public ITargetPlatformModule
{
public:
virtual ~FLinuxClientTargetPlatformModule( )
{
Singleton = NULL;
}
virtual ITargetPlatform* GetTargetPlatform( )
{
if (Singleton == NULL && TLinuxTargetPlatform<FLinuxPlatformProperties<false, false, true, false> >::IsUsable())
{
Singleton = new TLinuxTargetPlatform<FLinuxPlatformProperties<false, false, true, false> >();
}
return Singleton;
}
};
//
IMPLEMENT_MODULE(FLinuxClientTargetPlatformModule, LinuxClientTargetPlatform);