1:1 source port of the engine and game code; Windows build and system layer; docs. No game files or SDK headers.

This commit is contained in:
CRTkafa 2026-10-22 16:30:40 +08:00
parent c3b032a45a
commit 0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions

View file

@ -0,0 +1,15 @@
# Windows system layer (task 9), not 1:1: toolchain file for the 32-bit Windows build (i686, llvm-mingw, UCRT).
# The shipped game is a 32-bit (ILP32) binary; building i686 keeps pointer/long/size_t widths identical, so the
# ported structs keep the layouts of the original (see docs/port/windows.md).
# LLVM_MINGW_ROOT (env or -D) = the llvm-mingw directory (contains bin/i686-w64-mingw32-clang++.exe).
if(NOT LLVM_MINGW_ROOT)
set(LLVM_MINGW_ROOT "$ENV{LLVM_MINGW_ROOT}")
endif()
file(TO_CMAKE_PATH "${LLVM_MINGW_ROOT}" LLVM_MINGW_ROOT)
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR i686)
set(CMAKE_C_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-clang.exe")
set(CMAKE_CXX_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-clang++.exe")
set(CMAKE_RC_COMPILER "${LLVM_MINGW_ROOT}/bin/i686-w64-mingw32-windres.exe")
set(CMAKE_AR "${LLVM_MINGW_ROOT}/bin/llvm-ar.exe" CACHE FILEPATH "")
set(CMAKE_RANLIB "${LLVM_MINGW_ROOT}/bin/llvm-ranlib.exe" CACHE FILEPATH "")