Commit Graph

10 Commits

Author SHA1 Message Date
Wes Hunt
14b5318a8c Get UAT running as a 64-bit process again.
* As of .NET 4.5, the default for Any CPU is to "prefer 32-bit process", and you need to explicitly turn this off to require the process be run as 64-bit.
* See http://blogs.microsoft.co.il/sasha/2012/04/04/what-anycpu-really-means-as-of-net-45-and-visual-studio-11/ for details.
* UAT will now assert when Environment.Is64BitProcess is false on startup, as we essentially require 64-bit for certain scripts, and that's how we ran it before upgrading to .NET4.5.
* Also set default optimization options for the project, which were changed at some point.
* Finally, rolled back CL#2633880, which was trying to work around the fact that UAT was running 32-bit.
#codereview:richard.fawcett, ben.marsh

[CL 2634273 by Wes Hunt in Main branch]
2015-07-27 14:40:30 -04:00
Wes Hunt
7fa290bb33 Summary: running UAT from VS is simpler and faster.
UEB-261 - Ensure that compiling AutomationTool in VS will compile all other Automation Projects
* Just set AutomationTool as your startup project and pass the command to execute.
* VS will build the script modules at build time, instead of every time at runtime.
* To make this happen, "UBT.exe -ProjectFiles" now generates a companion AutomationTool.csproj.References that make AutomationTool depend on all Automation modules.
* AutomationTool.exe defaults to not building script modules at runtime. Pass -compile if you want to dynamically build them.
* Without the .references file, AutomationTool will only build itself and you will need to pass -compile.
* RunUAT.bat still works that same, defaulting to runtime compilation and supporting -nocompile flag. It then passes -compile (or nothing) to AutomationTool.

Other
* All Automation projects target .Net 4.5. Some already were and had hard dependencies on them (Rocket and SyncGithub -> Octokit). Now that AutomationTool directly depends on them, everything had to use .Net 4.5.
* Decoupled logic for -NoCompile and -NoCompileEditor. The flags are still confusing, but -NoCompile is no longer linked to -NoCompileEditor.
* Had to leave in stub support in UAT for -NoCompile else RunUAT.bat passes it along and UAT complains that it doesn't understand it.
* Added a CommandUtils.Run option to support run command, but still output the run duration.
* Reduced the verbosity when UAT.proj is run from dozens of lines per module to a single Module -> Output line. It was looking like there were problems, but it was just msbuild spew.
#codereview:ben.marsh

[CL 2615060 by Wes Hunt in Main branch]
2015-07-09 10:15:37 -04:00
Wes Hunt
506f7e64a4 UEB-260 - Break AutomationTool into AutomationUtils that all automation projects depend on, and AutomationTool, which essentially only contains the startup code.
* Remove ErrorReporter.Error, replace with AutomationException with Error Code.
* Move ErrorCodes to AutomationException.
* Don't return exit codes. Solely rely on exceptions to propagate exit codes.
* Remove MainProc delegate
* Remove setting of Environment.ExitCode as it is ignored when main returns an int.
* ShutdownLogging is nothrow, as all exceptions would be ignored anyway.
* Wrap all shutdown steps so further ones get a chance to run.
* Move HostPlatform.Initialize into the global try/catch block
#codereview:ben.marsh

[CL 2605826 by Wes Hunt in Main branch]
2015-06-30 11:40:05 -04:00
Ben Marsh
d4307d5c6e Move TempStorage into the GUBP project.
[CL 2597696 by Ben Marsh in Main branch]
2015-06-23 15:40:30 -04:00
Ben Marsh
35849c8329 Move FileFilter into AutomationTool project, so it can be used elsewhere.
[CL 2453952 by Ben Marsh in Main branch]
2015-02-20 16:27:50 -05:00
Dmitry Rekman
3dd3dc494f Linux host platform for UAT.
- Note: target framework for UAT (mono project) is upped to 4.5 to match UBT.

#codereview Josh.Adams, Michael.Trepka, Kellan.Carr, Gil.Gribb

[CL 2285233 by Dmitry Rekman in Main branch]
2014-09-04 17:31:34 -04:00
Robert Manuszewski
c15b65025f Force UAT scripts to be built in Development config (just like UAT).
Disabled UAT code optimizations (shouldn't affect performance but should improve debugging in Development config)

[CL 2281484 by Robert Manuszewski in Main branch]
2014-09-02 10:20:38 -04:00
Robert Manuszewski
c488b52089 Making sure all dependencies of UAT build with the same config.
#change AutomationTool, AutomationToolLauncher and DotNETUtilities will always compile in Development in the sln to avoid situations where one of UAT dependencies is built with diffrerent config which results in UAT failing to compile scripts in Debug due to outdated dependencies of UAT.

[CL 2281268 by Robert Manuszewski in Main branch]
2014-09-02 06:54:47 -04:00
UnrealBot
db494a6e69 Engine source (Main branch up to CL 2037954) 2014-04-02 18:09:23 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00