diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-02 06:15:29 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 06:15:29 +0700 |
| commit | 1d9eb31a699929ef49506c3ec3e9f73bf448f789 (patch) | |
| tree | 6766bb4a008096b675ef0352344f256b2e347317 /Compile.md | |
| parent | 4576e46e7ff0dcc985d38943d371badc6c332449 (diff) | |
| parent | 661caf704a622220c9af7be5c626144773346e21 (diff) | |
Merge pull request #85 from BetaZay/main
Add optional CMake build support for Windows x64, runtime asset/DLL copy, and unified compile docs
Diffstat (limited to 'Compile.md')
| -rw-r--r-- | Compile.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Compile.md b/Compile.md new file mode 100644 index 00000000..8947cecb --- /dev/null +++ b/Compile.md @@ -0,0 +1,45 @@ +# Compile Instructions + +## Visual Studio (`.sln`) + +1. Open `MinecraftConsoles.sln` in Visual Studio 2022. +2. Set `Minecraft.Client` as the Startup Project. +3. Select configuration: + - `Debug` (recommended), or + - `Release` +4. Select platform: `Windows64`. +5. Build and run: + - `Build > Build Solution` (or `Ctrl+Shift+B`) + - Start debugging with `F5`. + +## CMake (Windows x64) + +Configure (use your VS Community instance explicitly): + +```powershell +cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_INSTANCE="C:/Program Files/Microsoft Visual Studio/2022/Community" +``` + +Build Debug: + +```powershell +cmake --build build --config Debug --target MinecraftClient +``` + +Build Release: + +```powershell +cmake --build build --config Release --target MinecraftClient +``` + +Run executable: + +```powershell +cd .\build\Debug +.\MinecraftClient.exe +``` + +Notes: +- The CMake build is Windows-only and x64-only. +- Post-build asset copy is automatic for `MinecraftClient` in CMake (Debug and Release variants). +- The game relies on relative paths (for example `Common\Media\...`), so launching from the output directory is required. |
