-
Notifications
You must be signed in to change notification settings - Fork 949
Modernize Windows build workflow and improve dependency resilience #8461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…grated to CMakePresets.
|
|
||
| * **Through GCC/WSL in Visual Studio** | ||
|
|
||
| 1. Ensure the WSL environment has the build pre-requisites for both devilutionX (see "Installing Dependencies on Debian and Ubuntu" under the "Linux" section above) and [WSL remote development](https://docs.microsoft.com/en-us/cpp/linux/connect-to-your-remote-linux-computer?view=msvc-160#connect-to-wsl). | ||
| 2. Select the `WSL-GCC-x64-Debug` configuration. | ||
| 3. Select `Build devilution` from the `Build` menu. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section should be removed because the configuration was dropped in the migration from CMakeSettings.json to CMakePresets.json.
|
I understand the issue with |
|
|
|
Seems like vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fmtlib/fmt
REF "${VERSION}"
SHA512 f0da82c545b01692e9fd30fdfb613dbb8dd9716983dcd0ff19ac2a8d36f74beb5540ef38072fdecc1e34191b3682a8542ecbf3a61ef287dbba0a2679d4e023f2
HEAD_REF master
)Actually, vcpkg_download_distfile(ARCHIVE
URLS "https://sourceware.org/pub/bzip2/bzip2-${VERSION}.tar.gz"
"https://www.mirrorservice.org/sites/sourceware.org/pub/bzip2/bzip2-${VERSION}.tar.gz"
FILENAME "bzip2-${VERSION}.tar.gz"
SHA512 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3
) |
| ### Compiling | ||
|
|
||
| * **Through Open->CMake in Visual Studio** | ||
| * **Through CMake Presets in Visual Studio (Recommended)** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it recommended? It's not how we do releases, it's mostly just for people that insist on using VS.
Summary
Migrated build configurations from the legacy CMakeSettings.json to the modern CMakePresets.json standard. This improves compatibility across IDEs (Visual Studio, VS Code, CLion) and command-line workflows.
Changes
How to use
In Visual Studio, simply open the project folder. The IDE will automatically detect the presets. Select your desired configuration from the dropdown (e.g., x64 Debug) and build.