本文整理汇总了C#中CPPTargetPlatform.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# CPPTargetPlatform.ToString方法的具体用法?C# CPPTargetPlatform.ToString怎么用?C# CPPTargetPlatform.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPPTargetPlatform
的用法示例。
在下文中一共展示了CPPTargetPlatform.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterRemoteToolChain
protected void RegisterRemoteToolChain(UnrealTargetPlatform InPlatform, CPPTargetPlatform CPPPlatform)
{
RemoteToolChainPlatform = InPlatform;
// Register this tool chain for IOS
Log.TraceVerbose(" Registered for {0}", CPPPlatform.ToString());
UEToolChain.RegisterPlatformToolChain(CPPPlatform, this);
}
示例2: GetPlatformToolChain
public static IUEToolChain GetPlatformToolChain(CPPTargetPlatform InPlatform)
{
if (CPPToolChainDictionary.ContainsKey(InPlatform) == true)
{
return CPPToolChainDictionary[InPlatform];
}
throw new BuildException("GetPlatformToolChain: No tool chain found for {0}", InPlatform.ToString());
}
示例3: RegisterPlatformToolChain
public static void RegisterPlatformToolChain(CPPTargetPlatform InPlatform, IUEToolChain InToolChain)
{
if (CPPToolChainDictionary.ContainsKey(InPlatform) == true)
{
Log.TraceInformation("RegisterPlatformToolChain Warning: Registering tool chain {0} for {1} when it is already set to {2}",
InToolChain.ToString(), InPlatform.ToString(), CPPToolChainDictionary[InPlatform].ToString());
CPPToolChainDictionary[InPlatform] = InToolChain;
}
else
{
CPPToolChainDictionary.Add(InPlatform, InToolChain);
}
}
示例4: GetBuildPlatformForCPPTargetPlatform
/**
* Retrieve the IUEBuildPlatform instance for the given CPPTargetPlatform
*
* @param InPlatform The CPPTargetPlatform being built
* @param bInAllowFailure If true, do not throw an exception and return null
*
* @return UEBuildPlatform The instance of the build platform
*/
public static IUEBuildPlatform GetBuildPlatformForCPPTargetPlatform(CPPTargetPlatform InPlatform, bool bInAllowFailure = false)
{
UnrealTargetPlatform UTPlatform = UEBuildTarget.CPPTargetPlatformToUnrealTargetPlatform(InPlatform);
if (BuildPlatformDictionary.ContainsKey(UTPlatform) == true)
{
return BuildPlatformDictionary[UTPlatform];
}
if (bInAllowFailure == true)
{
return null;
}
throw new BuildException("UEBuildPlatform::GetBuildPlatformForCPPTargetPlatform: No BuildPlatform found for {0}", InPlatform.ToString());
}
示例5: CPPTargetPlatformToSTTargetPlatform
public static STTargetPlatform CPPTargetPlatformToSTTargetPlatform(CPPTargetPlatform InCPPPlatform)
{
switch (InCPPPlatform)
{
case CPPTargetPlatform.Win32: return STTargetPlatform.Win32;
case CPPTargetPlatform.Win64: return STTargetPlatform.Win64;
case CPPTargetPlatform.Mac: return STTargetPlatform.Mac;
case CPPTargetPlatform.XboxOne: return STTargetPlatform.XboxOne;
case CPPTargetPlatform.PS4: return STTargetPlatform.PS4;
case CPPTargetPlatform.Android: return STTargetPlatform.Android;
case CPPTargetPlatform.WinRT: return STTargetPlatform.WinRT;
case CPPTargetPlatform.WinRT_ARM: return STTargetPlatform.WinRT_ARM;
case CPPTargetPlatform.IOS: return STTargetPlatform.IOS;
case CPPTargetPlatform.HTML5: return STTargetPlatform.HTML5;
case CPPTargetPlatform.Linux: return STTargetPlatform.Linux;
}
throw new BuildException("CPPTargetPlatformToSTTargetPlatform: Unknown CPPTargetPlatform {0}", InCPPPlatform.ToString());
}