How to Build

How to Build: Environment

Important

Requirements for building and using the Dagor Engine toolkit:

  • Windows 10 (x64)

  • 16 GB of RAM

  • 200 GB of HDD/SSD space

  1. Install Git: https://git-scm.com/download/win.

  2. Install 7-Zip: https://www.7-zip.org/.

  3. Install Python 3.

  4. If you plan to use the FMOD sound library, also install FMOD Studio SDK 2.02.15.

  5. Create a project directory at the root of any drive.

    Note

    The directory name should not contain spaces or non-Latin characters.

    md X:\develop
    cd X:\develop
    
  6. Clone the Dagor Engine source code and samples:

    git clone https://github.com/GaijinEntertainment/DagorEngine.git
    cd DagorEngine
    
  7. Run the make_devtools.py script.

    This script will download, install, and configure the build toolkit. You should provide the path to the build toolkit directory as an argument, and the script will create this directory if it doesn’t exist.

    python3 make_devtools.py X:\develop\devtools
    

    After the script completes its work, the X:\develop\devtools directory will be configured with the following SDKs and tools:

    • FidelityFX_SC: a library for image quality enhancement

    • fmod-studio-2.xx.xx [optional]: FMOD sound library

    • LLVM-15.0.7: C/C++ compiler and libraries (Clang)

    • nasm: assembler

    • max2024.sdk: 3ds Max 2004 SDK

    • openxr-1.0.16: library for AR/VR

    • vc2019_16.10.3: C/C++ compiler and libraries (MSVC)

    • win.sdk.100: Windows 10 SDK

    • win.sdk.81: Windows 8.1 SDK

    • ducible.exe: a tool to make builds of Portable Executables (PEs) and PDBs reproducible

    • pdbdump.exe: a tool for dumping the content of PDB files

    • jam.exe: a small build tool that can be used as a replacement for Make

  8. Restart the command line console to make the new environment variables available.

How to Build: Prebuilt Binaries

Download and extract additional binary files from the repository https://github.com/GaijinEntertainment/DagorEngine/releases into the X:\develop\DagorEngine directory:

  • samples-base.7z: contains initial assets that will be compiled into binary files that will be loaded the game.

  • samples-prebuilt-game.7z: contains precompiled assets.

  • tools-prebuilt.7z: contains the prebuilt engine toolkit.

The directory structure should look like this:

X:\develop\DagorEngine\tools\...

X:\develop\DagorEngine\samples\skiesSample\game
                              \skiesSample\develop
                              \skiesSample\prog

X:\develop\DagorEngine\samples\testGI\game
                              \testGI\develop
                              \testGI\prog

where

  • prog/: contains game source code.

  • develop/: contains initial assets.

  • game/: directory where assets are placed after building and game executable files are located.

    See also

    For more information, see Directory Structure Overview.

How to Build: Build from Source Code

To build the testGI sample:

  1. Navigate to the X:\develop\DagorEngine\samples\testGI\prog directory.

  2. Run the jam command.

    After building, the executable file will be placed in the testGI\game directory.

  3. Run DagorEngine/build_all.cmd to build the entire project toolkit from the source code. This process may take a considerable amount of time.