upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/build_runtime.ps1
diff options
context:
space:
mode:
authorDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 17:20:07 +0000
committerDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 17:20:07 +0000
commit22bc8d44fa53bdf90b5ddfba9f9697824aed948b (patch)
tree6d9dde119242c5ea7a6afa7255da9ec94ea1595f /scripts/build_runtime.ps1
parent49475796c226c8511b9470bf97a4daf57b8af323 (diff)
build_runtime.ps1: the cl.exe fallback compiles shims/file_system.cpp (BUILD-680)
main.cpp calls rt::fs::configure (GAME: paths), but the direct-cl.exe fallback (VS Build Tools without the CMake component) left shims/file_system.cpp out of the launcher's sources, so gta6rt failed to link (LNK2019/LNK1120, found by @Ingenioeren). Added to $files. test_build_runtime_fallback: every .cpp in CMake's add_executable(gta6rt ...) must be in the fallback's launcher list, so the two can't drift apart again (fails before this change on shims\file_system.cpp). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/build_runtime.ps1')
-rw-r--r--scripts/build_runtime.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build_runtime.ps1 b/scripts/build_runtime.ps1
index b251a281c..5e8d72628 100644
--- a/scripts/build_runtime.ps1
+++ b/scripts/build_runtime.ps1
@@ -33,7 +33,7 @@ if ((Test-Path $cmake) -and (Test-Path $ninja)) {
33 Write-Warning "VS C++ CMake tools not found: building with cl.exe directly, without the GameInput shim (SDL3). Install the CMake tools component to get it." 33 Write-Warning "VS C++ CMake tools not found: building with cl.exe directly, without the GameInput shim (SDL3). Install the CMake tools component to get it."
34 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue" 34 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue"
35 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" } 35 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" }
36 $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" } 36 $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\file_system.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" }
37 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`"" 37 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`""
38 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" } 38 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" }
39 $body = @" 39 $body = @"