upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build_runtime.ps12
-rw-r--r--scripts/vs_input_survey.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build_runtime.ps1 b/scripts/build_runtime.ps1
index 03b922e81..abc8c3f05 100644
--- a/scripts/build_runtime.ps1
+++ b/scripts/build_runtime.ps1
@@ -35,7 +35,7 @@ if ((Test-Path $cmake) -and (Test-Path $ninja)) {
35 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." 35 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."
36 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue" 36 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue"
37 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" } 37 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" }
38 $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\$_`"" } 38 $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\winhttp_offline.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" }
39 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`"" 39 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`""
40 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" } 40 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" }
41 $body = @" 41 $body = @"
diff --git a/scripts/vs_input_survey.py b/scripts/vs_input_survey.py
index e1da657ff..89e648364 100644
--- a/scripts/vs_input_survey.py
+++ b/scripts/vs_input_survey.py
@@ -125,10 +125,14 @@ def main():
125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt")) 125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt"))
126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout") 126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout")
127 if a.json: 127 if a.json:
128 with open(a.json, "w", encoding="utf-8") as f: 128 with open(a.json, "w", encoding="utf-8", newline="\n") as f:
129 json.dump(r, f, indent=1) 129 json.dump(r, f, indent=1)
130 return 0 130 return 0
131 131
132 132
133if __name__ == "__main__": 133if __name__ == "__main__":
134 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
135 sys.stdout.reconfigure(errors="replace")
136 except (AttributeError, ValueError, OSError):
137 pass
134 sys.exit(main()) 138 sys.exit(main())