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 --- .gitignore | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 40a690b0..10e49ddb 100644 --- a/.gitignore +++ b/.gitignore @@ -407,39 +407,10 @@ enc_temp_folder/ Minecraft.Client/Schematics/ Minecraft.Client/Windows64/GameHDD/ -# Intermediate build files (per-project) -Minecraft.Client/x64/ -Minecraft.Client/Debug/ -Minecraft.Client/x64_Debug/ -Minecraft.Client/Release/ -Minecraft.Client/x64_Release/ - -Minecraft.World/x64/ -Minecraft.World/Debug/ -Minecraft.World/x64_Debug/ -Minecraft.World/Release/ -Minecraft.World/x64_Release/ - -Minecraft.Server/x64/ -Minecraft.Server/Debug/ -Minecraft.Server/x64_Debug/ -Minecraft.Server/Release/ -Minecraft.Server/x64_Release/ - -build/* - -# Existing build output files -!x64/**/Effects.msscmp -!x64/**/iggy_w64.dll -!x64/**/mss64.dll -!x64/**/redist64/ - -# Local saves -Minecraft.Client/Saves/ +# CMake build output +build/ +# Server data tmp*/ _server_asset_probe/ server-data/ -# Visual Studio Per-User Config -*.user -/out -- cgit v1.2.3