Commit Graph

9 Commits

Author SHA1 Message Date
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
Ankit Khare
d2ec18b95e UEPLAT-794 Emit compressed javascript from HTML5 packaging .
- big build products which are sent over the wire are now compressed.
  - modfied HTML5Launcher to serve compressed files. Added this to the final packaged game too because python simple http server does not handle compressed files.
  - combined various javascript utlity files into one.

#codereview josh.adams, james.moran

[CL 2577658 by Ankit Khare in Main branch]
2015-06-04 17:21:16 -04:00
Ankit Khare
79542f541b Allow HTML5 to download maps on the fly.
UPLAT-685 (Remove Virtual File System to reduce run-time memory overhead and allow for larger worlds in HTML5)

#codereview josh.adams, james.moran

[CL 2505577 by Ankit Khare in Main branch]
2015-04-08 14:53:36 -04:00
Michael Trepka
98dc0aa5fe Removed conditional inclusion of most platform files in UBT project so the same project can be used in Visual Studio and Mono Develop/Xamarin Studio, removed _Mono UBT and UAT projects, updated automation scripts to be compatible with Mono 3.10
[CL 2388812 by Michael Trepka in Main branch]
2014-12-15 15:28:22 -05:00
James Moran
b9307c8123 Launch On fix for HTML5/Chrome. #ttp 349166
Chrome spawns a subprocess for html5 webpage, run command will now attach to that page and not kill the http server immediately.

[CL 2332764 by James Moran in Main branch]
2014-10-17 04:21:41 -04:00
Dmitry Rekman
e1b8fc1d03 Minor fixes to UAT projects (PR #492).
- Android/HTML5 automation projects reference OneSky, UAT compiled for AnyCPU platform.
- contributed by amigo.

[CL 2324466 by Dmitry Rekman in Main branch]
2014-10-09 17:15:41 -04:00
Robert Manuszewski
1033c721b5 AutomationTool: Trying to work around exceptions when loading assemblies (possibly due to .Net 4.0 bug). Cleaning up referenced assemblies, better logging.
[CL 2191847 by Robert Manuszewski in Main branch]
2014-07-11 11:40:08 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00