/// <summary> /// Configures project generator based on command-line options /// </summary> /// <param name="Arguments">Arguments passed into the program</param> /// <param name="IncludeAllPlatforms">True if all platforms should be included</param> protected override void ConfigureProjectFileGeneration(string[] Arguments, ref bool IncludeAllPlatforms) { // Call parent implementation first base.ConfigureProjectFileGeneration(Arguments, ref IncludeAllPlatforms); ProjectFilePlatform = IncludeAllPlatforms ? XcodeProjectFilePlatform.All : XcodeProjectFilePlatform.Mac; foreach (var CurArgument in Arguments) { if (CurArgument.StartsWith("-iOSDeployOnly", StringComparison.InvariantCultureIgnoreCase)) { bGeneratingRunIOSProject = true; break; } if (CurArgument.StartsWith("-tvOSDeployOnly", StringComparison.InvariantCultureIgnoreCase)) { bGeneratingRunTVOSProject = true; break; } } if (bGeneratingGameProjectFiles) { IncludeEngineSource = true; } }
/// <summary> /// Configures project generator based on command-line options /// </summary> /// <param name="Arguments">Arguments passed into the program</param> /// <param name="IncludeAllPlatforms">True if all platforms should be included</param> protected override void ConfigureProjectFileGeneration(String[] Arguments, ref bool IncludeAllPlatforms) { // Call parent implementation first base.ConfigureProjectFileGeneration(Arguments, ref IncludeAllPlatforms); // Default the project file format to whatever UBT is using { switch (WindowsPlatform.Compiler) { case WindowsCompiler.VisualStudio2012: ProjectFileFormat = VCProjectFileFormat.VisualStudio2012; break; case WindowsCompiler.VisualStudio2013: ProjectFileFormat = VCProjectFileFormat.VisualStudio2013; break; } } foreach (var CurArgument in Arguments) { switch (CurArgument.ToUpperInvariant()) { case "-2012": ProjectFileFormat = VCProjectFileFormat.VisualStudio2012; break; case "-2013": ProjectFileFormat = VCProjectFileFormat.VisualStudio2013; break; } } }
protected override void ConfigureProjectFileGeneration(String[] Arguments, ref bool IncludeAllPlatforms) { base.ConfigureProjectFileGeneration(Arguments, ref IncludeAllPlatforms); // Check for minimal build targets to speed up cmake processing foreach (string CurArgument in Arguments) { switch (CurArgument.ToUpperInvariant()) { case "-CMAKEMINIMALTARGETS": // To speed things up bIncludeDocumentation = false; bIncludeShaderSource = true; bIncludeTemplateFiles = false; bIncludeConfigFiles = true; // We want to filter out sets of targets to speed up builds via cmake bCmakeMinimalTargets = true; break; } } }