// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "WindowsServerTargetPlatformPrivatePCH.h" /** Holds the target platform singleton. */ static ITargetPlatform* Singleton = nullptr; /** * Module for the Windows target platform as a server. */ class FWindowsServerTargetPlatformModule : public ITargetPlatformModule { public: virtual ~FWindowsServerTargetPlatformModule( ) { Singleton = nullptr; } virtual ITargetPlatform* GetTargetPlatform( ) { if (Singleton == nullptr) { Singleton = new TGenericWindowsTargetPlatform(); } return Singleton; } }; IMPLEMENT_MODULE(FWindowsServerTargetPlatformModule, WindowsServerTargetPlatform);