/// <summary> /// Determine the platform name (Win32/64 becomes Windows, Mac is Mac, the rest we don't currently understand) /// </summary> public static UnrealTargetPlatform FromMCPPlatform(MCPPlatform TargetPlatform) { if (TargetPlatform != MCPPlatform.Windows && TargetPlatform != MCPPlatform.Mac) { throw new AutomationException("Platform {0} is not properly supported by the MCP backend yet", TargetPlatform); } return (TargetPlatform == MCPPlatform.Windows) ? UnrealTargetPlatform.Win64 : UnrealTargetPlatform.Mac; }
/// <summary> /// Basic constructor with staging dir suffix override, basically to avoid having platform concatenated /// </summary> public BuildPatchToolStagingInfo(BuildCommand InOwnerCommand, string InAppName, string InMcpConfigKey, int InAppID, string InBuildVersion, MCPPlatform platform, string stagingDirRelativePath, string stagingDirSuffix) { OwnerCommand = InOwnerCommand; AppName = InAppName; McpConfigKey = InMcpConfigKey; AppID = InAppID; BuildVersion = InBuildVersion; Platform = platform; var BuildRootPath = GetBuildRootPath(); StagingDir = CommandUtils.CombinePaths(BuildRootPath, stagingDirRelativePath, BuildVersion, stagingDirSuffix); CloudDirRelativePath = CommandUtils.CombinePaths(stagingDirRelativePath, "CloudDir"); CloudDir = CommandUtils.CombinePaths(BuildRootPath, CloudDirRelativePath); }
/// <summary> /// Basic constructor with staging dir suffix override, basically to avoid having platform concatenated /// </summary> public BuildPatchToolStagingInfo(BuildCommand InOwnerCommand, string InAppName, string InMcpConfigKey, int InAppID, string InBuildVersion, MCPPlatform platform, string stagingDirRelativePath, string stagingDirSuffix, string InManifestFilename) { OwnerCommand = InOwnerCommand; AppName = InAppName; _ManifestFilename = InManifestFilename; McpConfigKey = InMcpConfigKey; AppID = InAppID; BuildVersion = InBuildVersion; Platform = platform; var BuildRootPath = GetBuildRootPath(); StagingDir = CommandUtils.CombinePaths(BuildRootPath, stagingDirRelativePath, BuildVersion, stagingDirSuffix); CloudDirRelativePath = CommandUtils.CombinePaths(stagingDirRelativePath, "CloudDir"); CloudDir = CommandUtils.CombinePaths(BuildRootPath, CloudDirRelativePath); }
/// <summary> /// Get a label string for the specific Platform requested. /// </summary> /// <param name="DestinationLabel">Base of label</param> /// <param name="Platform">Platform to add to base label.</param> public abstract string GetLabelWithPlatform(string DestinationLabel, MCPPlatform Platform);
/// <summary> /// Get a label string for the specific Platform requested. /// </summary> /// <param name="DestinationLabel">Base of label</param> /// <param name="Platform">Platform to add to base label.</param> abstract public string GetLabelWithPlatform(string DestinationLabel, MCPPlatform Platform);