public SharedCookedBuild(ProjectParams Params) { List<string> Platforms = new List<string>(); foreach (TargetPlatformDescriptor ClientPlatform in Params.ClientTargetPlatforms) { TargetPlatformDescriptor DataPlatformDesc = Params.GetCookedDataPlatformForClientTarget(ClientPlatform); Platforms.Add(Platform.Platforms[DataPlatformDesc].GetCookPlatform(false, Params.Client)); } SharedCookType BuildType = (SharedCookType)Enum.Parse(typeof(SharedCookType), Params.IterateSharedCookedBuild, true); SharedCookedBuildConstructor(Params.RawProjectPath, Platforms, BuildType); }
private static bool IsValidCL(int CL, SharedCookType BuildType, BuildVersion Version) { if (BuildType == SharedCookType.Exact && CL == Version.Changelist) { return(true); } else if (BuildType == SharedCookType.Content && CL >= Version.EffectiveCompatibleChangelist && CL <= Version.Changelist) { return(true); } else if (BuildType == SharedCookType.Any && CL <= Version.Changelist) { return(true); } return(false); }
private void SharedCookedBuildConstructor(FileReference ProjectFile, IEnumerable <string> Platforms, SharedCookType BuildType) { TargetPlatforms = new HashSet <string>(); CandidateBuilds = new List <ISharedCookedBuild>(); this.ProjectFile = ProjectFile; this.BuildType = BuildType; InstallPath = DirectoryReference.Combine(ProjectFile.Directory, "Saved", "SharedIterativeBuild"); LocalSync = GetLocalSync(); foreach (string Platform in Platforms) { TargetPlatforms.Add(Platform); } }
public SharedCookedBuild(FileReference ProjectFile, IEnumerable <string> TargetPlatforms, SharedCookType BuildType) { SharedCookedBuildConstructor(ProjectFile, TargetPlatforms, BuildType); }