You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(WARNING "USE_VCPKG=${USE_VCPKG} but ENV{VCPKG_ROOT} not set; will use system-provided libraries. Did you forget to set VCPKG_ROOT in your environment?")
20
+
endif()
21
+
endif()
22
+
3
23
# set default cmake build type to Debug (None Debug Release RelWithDebInfo MinSizeRel)
@@ -92,17 +92,24 @@ The milestone needs testing on all platforms. Please report issues when found.
92
92
- D3 Open Source compiles level scripts in their own hogfiles. Make sure you copy and overwrite `d3-{platform}.hog`.
93
93
94
94
## Building
95
+
#### Dependencies
96
+
The build process uses [**CMake**](https://cmake.org/) and, by default, [**Ninja**](https://ninja-build.org/). You must install these; the project cannot locate them for you. The source code depends on [**SDL2**](https://github.com/libsdl-org/SDL) and [**zlib**](https://github.com/madler/zlib). You can supply these dependencies yourself via your system's library management tools, or the build system can locate the dependencies for you using [**vcpkg**](https://github.com/microsoft/vcpkg), a cross-platform dependency-management system developed by Microsoft. The official builds source their dependencies from **vcpkg**.
97
+
98
+
#### Installing and using **vcpkg**
99
+
* When building for Windows, **vcpkg** is already installed and configured when using the Developer Tools Command Prompt.
100
+
* For Android, Linux or Mac (or non-standard-Windows) configurations, you will need to install **vcpkg** locally by cloning https://github.com/microsoft/vcpkg and setting your `VCPKG_ROOT` env var to the repository location. With this environment variable set, the build will automatically locate its dependencies.
101
+
95
102
#### Building - Windows
96
-
1.Make sure that you have Git and Visual Studio 2022 with the “Desktop development with C++” workload and the “C++ MFC for latest v143 build tools (x86 & x64)” component. If you don’t already have those installed or you aren’t sure, then open an elevated Command Prompt and run:
103
+
1.Install the prerequisite build tools.
97
104
105
+
Make sure that you have Git and Visual Studio 2022 with the “Desktop development with C++” workload and the “C++ MFC for latest v143 build tools (x86 & x64)” component. If you don’t already have those installed or you aren’t sure, then open an elevated Command Prompt and run:
98
106
<!--
99
107
The following code block specifies the full path to the Visual Studio Installer because the Visual Studio Installer doesn’t add itself to the user’s Path. The installer is guaranteed to be in a specific location on 64-bit systems [1]. The installer will be in a different location on 32-bit systems [2], but Visual Studio 2022 doesn’t support 32-bit systems [3] so we can ignore that detail.
* `ENABLE_LOGGER` - Enable logging to the terminal. Default OFF.
241
+
* `ENABLE_MEM_RTL` - Enable Real-time library memory management functions (disable to verbose memory allocations). Default ON.
242
+
* `FORCE_COLORED_OUTPUT` - Always produce ANSI-colored compiler warnings/errors (GCC/Clang only; esp. useful with Ninja). Default OFF.
243
+
* `FORCE_PORTABLE_INSTALL` - Install all files into local directory defined by `CMAKE_INSTALL_PREFIX`. Default ON.
244
+
* `USE_VCPKG` - Explicitly control whether or not to use **vcpkg** for dependency resolution. ON requires `VCPKG_ROOT` environment variable set. Default behavior is determined by the existence of `VCPKG_ROOT` in the environment: If it exists, **vcpkg** is used.
245
+
173
246
## Contributing
174
247
Anyone can contribute! We have an active Discord presence at [Descent Developer Network](https://discord.gg/GNy5CUQ). If you are interested in maintaining the project on a regular basis, please contact Kevin Bentley.
0 commit comments