CONAMAN's tech log

Unreal Engine 4 build command-line arguments

Build command

RunUAT.bat
AutomationToolLauncher.exe
AutomationTool.exe 

RunUAT.bat

Path

Engine\Build\BatchFiles/RunUAT.bat

Arguments

Actions

  1. Find platform extension source code that UBT will need when compiling platform extension automation projects
    • Make Engine/Intermediate\ProjectFiles\UnrealBuildTool.csproj.References file.
  2. Get MSBuild.exe path
  3. Build Source\Programs\AutomationToolLauncher\AutomationToolLauncher.csproj
  4. Build Source\Programs\AutomationTool\AutomationTool.csproj
  5. Launch AutomationTool.exe by AutomationToolLauncher.exe
     AutomationToolLauncher.exe arguments
    

AutomationToolLauncher.exe

Path

Engine\Binaries\DotNET\AutomationToolLauncher.exe

Actions

  1. Create Domain for AutomationTool.exe
  2. Execute the assembly.

AutomationTool.exe

Path

Engine\Binaries\DotNET\AutomationTool.exe

Arguments

Global command line parameters

Legacy command line parameters

This command is LEGACY because we used to run UAT.exe to compile scripts by default.
Now we only compile by default when run via RunUAT.bat, which still understands -nocompile.
However, the batch file simply passes on all arguments, so UAT will choke when encountering -nocompile.
Keep this CommandLineArg around so that doesn't happen.

Key=Value Style

Other Key=Value Style

BuildCommand : Argument without ‘-‘

RunUAT BuildCookRun -help

BuildCookRun