2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "WindowsServerTargetPlatformPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
|
2014-08-20 21:10:29 -04:00
|
|
|
/** Holds the target platform singleton. */
|
|
|
|
|
static ITargetPlatform* Singleton = nullptr;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Module for the Windows target platform as a server.
|
|
|
|
|
*/
|
|
|
|
|
class FWindowsServerTargetPlatformModule
|
|
|
|
|
: public ITargetPlatformModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
virtual ~FWindowsServerTargetPlatformModule( )
|
|
|
|
|
{
|
2014-08-20 21:10:29 -04:00
|
|
|
Singleton = nullptr;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual ITargetPlatform* GetTargetPlatform( )
|
|
|
|
|
{
|
2014-08-20 21:10:29 -04:00
|
|
|
if (Singleton == nullptr)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
Singleton = new TGenericWindowsTargetPlatform<false, true, false>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Singleton;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2014-08-20 21:10:29 -04:00
|
|
|
IMPLEMENT_MODULE(FWindowsServerTargetPlatformModule, WindowsServerTargetPlatform);
|