private static string GetMsDevExe(WindowsCompiler Version) { DirectoryReference VSPath; // It's not fatal if VS2013 isn't installed for VS2015 builds (for example, so don't crash here) if (WindowsExports.TryGetVSInstallDir(Version, out VSPath)) { return(FileReference.Combine(VSPath, "Common7", "IDE", "Devenv.com").FullName); } return(null); }
public override void Package(ProjectParams Params, DeploymentContext SC, int WorkingCL) { List <FileReference> ExeNames = GetExecutableNames(SC); // Select target configurations based on the exe list returned from GetExecutableNames List <UnrealTargetConfiguration> TargetConfigs = SC.StageTargetConfigurations.GetRange(0, ExeNames.Count); WindowsExports.PrepForUATPackageOrDeploy(Params.RawProjectPath, Params.ShortProjectName, SC.ProjectRoot, TargetConfigs, ExeNames, SC.EngineRoot); // package up the program, potentially with an installer for Windows PrintRunTime(); }
public override void Package(ProjectParams Params, DeploymentContext SC, int WorkingCL) { // package up the program, potentially with an installer for Windows string CookFlavor = SC.FinalCookPlatform.IndexOf("_") > 0 ? SC.FinalCookPlatform.Substring(SC.FinalCookPlatform.IndexOf("_")) : ""; List <string> ExeNames = GetExecutableNames(SC); // Select target configurations based on the exe list returned from GetExecutableNames List <UnrealTargetConfiguration> TargetConfigs = SC.StageTargetConfigurations.GetRange(0, ExeNames.Count); WindowsExports.PrepForUATPackageOrDeploy(Params.RawProjectPath, Params.ShortProjectName, SC.ProjectRoot, TargetConfigs, ExeNames, SC.LocalRoot + "/Engine", Params.Distribution, CookFlavor, false); // package up the program, potentially with an installer for Windows PrintRunTime(); }
/// <summary> /// Try to get the PDBSTR.EXE path from the Windows SDK /// </summary> /// <returns>Path to PDBSTR.EXE</returns> public static FileReference GetPdbStrExe() { List <KeyValuePair <string, DirectoryReference> > WindowsSdkDirs = WindowsExports.GetWindowsSdkDirs(); foreach (DirectoryReference WindowsSdkDir in WindowsSdkDirs.Select(x => x.Value)) { FileReference CheckPdbStrExe64 = FileReference.Combine(WindowsSdkDir, "Debuggers", "x64", "SrcSrv", "PdbStr.exe"); if (FileReference.Exists(CheckPdbStrExe64)) { return(CheckPdbStrExe64); } FileReference CheckPdbStrExe32 = FileReference.Combine(WindowsSdkDir, "Debuggers", "x86", "SrcSrv", "PdbStr.exe"); if (FileReference.Exists(CheckPdbStrExe32)) { return(CheckPdbStrExe32); } } throw new AutomationException("Unable to find a Windows SDK installation containing PDBSTR.EXE"); }
public static bool TryGetPdbCopyLocation(out FileReference OutLocation) { // Try to find an installation of the Windows 10 SDK List <KeyValuePair <string, DirectoryReference> > WindowsSdkDirs = WindowsExports.GetWindowsSdkDirs(); foreach (DirectoryReference WindowsSdkDir in WindowsSdkDirs.Select(x => x.Value)) { FileReference PdbCopyExe = FileReference.Combine(WindowsSdkDir, "Debuggers", "x64", "PdbCopy.exe"); if (FileReference.Exists(PdbCopyExe)) { OutLocation = PdbCopyExe; return(true); } } // Look for an installation of the MSBuild 14 FileReference LocationMsBuild14 = FileReference.Combine(DirectoryReference.GetSpecialFolder(Environment.SpecialFolder.ProgramFilesX86), "MSBuild", "Microsoft", "VisualStudio", "v14.0", "AppxPackage", "PDBCopy.exe"); if (FileReference.Exists(LocationMsBuild14)) { OutLocation = LocationMsBuild14; return(true); } // Look for an installation of the MSBuild 12 FileReference LocationMsBuild12 = FileReference.Combine(DirectoryReference.GetSpecialFolder(Environment.SpecialFolder.ProgramFilesX86), "MSBuild", "Microsoft", "VisualStudio", "v12.0", "AppxPackage", "PDBCopy.exe"); if (FileReference.Exists(LocationMsBuild12)) { OutLocation = LocationMsBuild12; return(true); } // Otherwise fail OutLocation = null; return(false); }
public override string GetMsBuildExe() { return(WindowsExports.GetMSBuildToolPath()); }