Exemplo n.º 1
0
	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);
	}
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 public SharedCookedBuild(FileReference ProjectFile, IEnumerable <string> TargetPlatforms, SharedCookType BuildType)
 {
     SharedCookedBuildConstructor(ProjectFile, TargetPlatforms, BuildType);
 }