55 [string ] $deployment_launch_configuration = " one_worker_test.json" ,
66 [string ] $deployment_snapshot_path = " snapshots/FPS-Start_Small.snapshot" ,
77 [string ] $deployment_cluster_region = " eu" ,
8- [string ] $project_name = " unreal_gdk"
8+ [string ] $project_name = " unreal_gdk" ,
9+ [string ] $build_home = (Get-Item " $ ( $PSScriptRoot ) " ).parent.parent.FullName, # # The root of the entire build. Should ultimately resolve to "C:\b\<number>\".
10+ [string ] $unreal_engine_symlink_dir = " $build_home \UnrealEngine"
911)
1012
1113. " $PSScriptRoot \common.ps1"
@@ -50,19 +52,18 @@ pushd "$exampleproject_home"
5052 # Use the cached engine version or set it up if it has not been cached yet.
5153 Start-Event " set-up-engine" " build-unreal-gdk-example-project-:windows:"
5254
53- $engine_directory = " ${exampleproject_home} \UnrealEngine"
54- & " $ ( $gdk_home ) \ci\get-engine.ps1" - unreal_path " $engine_directory "
55+ & " $ ( $gdk_home ) \ci\get-engine.ps1" - unreal_path " $unreal_engine_symlink_dir "
5556
5657 Finish- Event " set-up-engine" " build-unreal-gdk-example-project-:windows:"
5758
5859 Start-Event " associate-uproject-with-engine" " build-unreal-gdk-example-project-:windows:"
59- pushd $engine_directory
60+ pushd $unreal_engine_symlink_dir
6061 $unreal_version_selector_path = " Engine\Binaries\Win64\UnrealVersionSelector.exe"
6162
6263 $find_engine_process = Start-Process - Wait - PassThru - NoNewWindow - FilePath $unreal_version_selector_path - ArgumentList @ (`
6364 " -switchversionsilent" , `
6465 " ${exampleproject_home} \Game\GDKShooter.uproject" , `
65- " $engine_directory "
66+ " $unreal_engine_symlink_dir "
6667 )
6768
6869 if ($find_engine_process.ExitCode -ne 0 ) {
@@ -97,7 +98,7 @@ pushd "$exampleproject_home"
9798
9899 # Invoke the GDK commandlet to generate schema and snapshot. Note: this needs to be run prior to cooking
99100 Start-Event " generate-schema" " build-unreal-gdk-example-project-:windows:"
100- pushd " UnrealEngine /Engine/Binaries/Win64"
101+ pushd " ${unreal_engine_symlink_dir} /Engine/Binaries/Win64"
101102 $schema_gen_proc = Start-Process - PassThru - NoNewWindow - FilePath ((Convert-Path .) + " \UE4Editor.exe" ) - ArgumentList @ (`
102103 " $ ( $exampleproject_home ) /Game/GDKShooter.uproject" , `
103104 " -run=GenerateSchemaAndSnapshots" , `
@@ -144,7 +145,7 @@ pushd "$exampleproject_home"
144145 Finish- Event " build-linux-worker" " build-unreal-gdk-example-project-:windows:"
145146
146147 Start-Event " build-android-client" " build-unreal-gdk-example-project-:windows:"
147- $unreal_uat_path = " ${exampleproject_home} \UnrealEngine \Engine\Build\BatchFiles\RunUAT.bat"
148+ $unreal_uat_path = " ${unreal_engine_symlink_dir} \Engine\Build\BatchFiles\RunUAT.bat"
148149 $build_server_proc = Start-Process - PassThru - NoNewWindow - FilePath $unreal_uat_path - ArgumentList @ (`
149150 " -ScriptsForProject=$ ( $exampleproject_home ) /Game/GDKShooter.uproject" , `
150151 " BuildCookRun" , `
@@ -157,7 +158,7 @@ pushd "$exampleproject_home"
157158 " -archivedirectory=$ ( $exampleproject_home ) /cooked-android" , `
158159 " -package" , `
159160 " -clientconfig=Development" , `
160- " -ue4exe=$ ( $exampleproject_home ) /UnrealEngine /Engine/Binaries/Win64/UE4Editor-Cmd.exe" , `
161+ " -ue4exe=$ ( $unreal_engine_symlink_dir ) /Engine/Binaries/Win64/UE4Editor-Cmd.exe" , `
161162 " -pak" , `
162163 " -prereqs" , `
163164 " -nodebuginfo" , `
0 commit comments