Platform | Main branch | Development branch |
---|---|---|
Linux | ||
Windows |
-
git (required)
When working on Windows, use Git for Windows Portable if possible - bundled tools might be used in future.
https://git-scm.com/download/ -
cmake v3.12.4 (minimum required)
https://cmake.org/download/ -
Visual Studio 2010 (required)
https://visualstudio.microsoft.com/vs/older-downloads/ -
Visual Studio 2017 (optional)
https://visualstudio.microsoft.com/vs/
-
Update dependencies
git submodule update --init --recursive
-
Create a build directory; recommended: SDK*
This step can be skipped if using automated build- Windows
- Visual Studio 2010:
cmake -G "Visual Studio 10" Path/To/Main/Directory/
- Visual Studio 2017:
cmake -G "Visual Studio 15" -T v100 Path/To/Main/Directory/
Note that -T option informs cmake to generate solution which uses VS2010 toolchain.
Builds using Visual Studio 2017 toolchain (without -T switch) will NOT work.
- Visual Studio 2010:
- Windows
CMake-based script is provided to fully automate building process.
cmake -P Build.cmake
Included tasks:
-
Preparing files
-
Source formatting
-
Restoring files modification time (CI only)
This step is required for timestamps used in released files.
-
-
Preparing build directory/directories
-
When building on Windows, two different directories are created for two different scenarios:
SDK.VS2017.v100
, used to work with source on modern Visual Studio versionSDK.VS2017
, used to check if engine is ready for migration to VS2017
-
Other platforms are not supported currently
-
-
Building all targets
-
Preparing release package
All files are placed in [build.dir]/FOClassic-v[version]/ and compressed to FOClassic-v[version].zip