From 02a5961f39673be403fda3edbf6fb1265bd93477 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Tue, 17 Mar 2026 21:39:22 +0000 Subject: Move project to CMake (#781) * Move to cmake * Move sources to source_groups and ditch more old VS files * Add BuildVer.h generation * Break out cmake source lists to platforms * Don't copy swf files * Revert audio changes from merge * Add platform defines * Match MSBuild flags * Move BuildVer.h to common include and fix rebuild issue * Seperate projects properly * Exclude more files and make sure GameHDD exists * Missing line * Remove remaining VS project files * Update readme and actions * Use incremental LTCG * Update workflows * Update build workflows and output folder * Disable vcpkg checks * Force MSVC * Use precompiled headers * Only use PCH for cpp * Exclude compat_shims from PCH * Handle per-platform source includes * Copy only current platform media * Define Iggy libs per platform * Fix EnsureGameHDD check * Only set WIN32_EXECUTABLE on Windows * Correct Iggy libs path * Remove include of terrain_MipmapLevel * Correct path to xsb/xwb * Implement copilot suggestions * Add clang flags (untested) * Fix robocopy error checking * Update documentation * Drop CMakePresets.json version as we dont use v6 features * Always cleanup artifacts in nightly even if some builds fail * Re-work compiler target options * Move newer iggy dll into redist and cleanup * Fix typos * Remove 'Source Files' from all source groups * Remove old ps1 build scripts --- Minecraft.Client/postbuild.ps1 | 43 ------------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 Minecraft.Client/postbuild.ps1 (limited to 'Minecraft.Client/postbuild.ps1') diff --git a/Minecraft.Client/postbuild.ps1 b/Minecraft.Client/postbuild.ps1 deleted file mode 100644 index 8ffc9b98..00000000 --- a/Minecraft.Client/postbuild.ps1 +++ /dev/null @@ -1,43 +0,0 @@ -param( - [string]$OutDir, - [string]$ProjectDir -) - -Write-Host "Post-build script started. Output Directory: $OutDir, Project Directory: $ProjectDir" - -$directories = @( - "music", - "Windows64\GameHDD", - "Common\Media", - "Common\res", - "Common\Trial", - "Common\Tutorial", - "Windows64Media" -) - -foreach ($dir in $directories) { - New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null -} - -$copies = @( - @{ Source = "music"; Dest = "music" }, - @{ Source = "Common\Media"; Dest = "Common\Media" }, - @{ Source = "Common\res"; Dest = "Common\res" }, - @{ Source = "Common\Trial"; Dest = "Common\Trial" }, - @{ Source = "Common\Tutorial"; Dest = "Common\Tutorial" }, - @{ Source = "Windows64\GameHDD"; Dest = "Windows64\GameHDD" }, - @{ Source = "Windows64\Sound"; Dest = "Windows64\Sound" }, - @{ Source = "Windows64Media"; Dest = "Windows64Media" } -) - -foreach ($copy in $copies) { - $src = Join-Path $ProjectDir $copy.Source - $dst = Join-Path $OutDir $copy.Dest - - if (Test-Path $src) { - # Copy the files using xcopy, forcing overwrite and suppressing errors, and only copying if the source is newer than the destination - xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null - } -} - -git restore "**/BuildVer.h" \ No newline at end of file -- cgit v1.2.3