Skip to content

build_guides

DevGeniusCode edited this page Mar 29, 2025 · 2 revisions

Build Guides

This page provides an overview of the official and community-supported build guides for TheSuperHackers project. It includes both the official build guides for the main repository and guides for community forks of the project. The guides cover different environments, configurations, and setups for building the project.

Build Configurations Overview

Before diving into the build guides, it's important to understand the different build configurations used in the project. These configurations dictate how the project is built, whether for debugging, profiling, release, or internal development purposes. Some common configurations include:

  • Release: Optimized for end-users, providing a smaller, faster executable with no debugging information.
  • Debug: Includes debugging information, making it easier to trace and debug the code, but without optimization to ensure ease of debugging.
  • Internal: Includes debugging information and optimizations, used primarily by developers for testing and internal purposes.
  • Profile: Used for performance profiling, with optimizations enabled and additional debugging options to collect profiling data.

Each configuration is designed for a different purpose, whether you're building for development, debugging, testing, or releasing the final product. You can find more details about the build configurations in the Build Configurations page.

Architectures and Toolchains

The project supports multiple architectures and toolchains, which is why there are various build guides tailored to different environments. An architecture refers to the target platform, such as x86 (32-bit) or x64 (64-bit), while a toolchain is the set of tools (compilers, linkers, etc.) used to build the project. Different toolchains may support different optimizations, libraries, or debugging features that influence how the build process is conducted.

Warning

The Wiki is under work in progress. The content is subject to change and may not be complete. Not all build guides are available yet, but you can contribute by adding new guides or updating existing ones.

CMake Overview

This CMake Guide provides an overview of how to configure and build Generals and its expansion Zero Hour using CMake via the command line. It covers the various options and flags defined in the CMake files that control the build process, allowing you to choose different components of the game and tools to build.

Official Build Guides

These are the official guides provided by TheSuperHackers for building the project using various toolchains and environments.

Visual Studio 6 Guides

  1. Using pure Visual Studio 6 (x86) (Windows)

  2. Using Cmake & Visual Studio 6 (x86) (Windows)

    Sub-guides

    • CLion & VC6 Toolchain
    • Docker & VC6
      • A guide for setting up Docker with the Visual Studio 6 (VC6) toolchain for building the project in a containerized environment. Build with Docker & VC6

Visual Studio 2022 Guides

  1. Using Cmake (x86) (Windows)

  2. Using Cmake (Linux)

Community Forks Build Guides

These are the guides provided for community-supported forks of TheSuperHackers project. These forks are customized versions of the original repository and may have unique build setups.

  1. MSVC22 (x64) Generals Only (Windows)