1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 21:07:45 +00:00
astra/BUILDING.md
2023-09-16 17:32:38 -04:00

1.4 KiB

Building Astra

Dependencies

Required

All of these packages are required for Astra to build with a minimal set of features.

  • Linux
    • Windows, macOS and other systems may work but are currently unsupported.
  • CMake 3.25 or later
  • Qt 6.5 or later
  • KDE Frameworks 6
    • Extra CMake Modules, Kirigami, I18n, Config, and CoreAddons.
  • Rust
  • unshield
  • QtKeychain 5
  • QuaZip 5

Optional

  • Steamworks SDK
    • You must specify STEAMWORKS_INCLUDE_DIRS and STEAMWORKS_LIBRARIES yourself.
  • Gamemode
  • Tesseract

Configuring

Note: Some dependencies will automatically be downloaded from the Internet if not found on your system. This functionality may change in the future.

When configuring Astra, there are several optional features you may want to enable or disable:

  • ENABLE_WATCHDOG: Watchdog support, requires Tesseract and X11.
  • ENABLE_STEAM: Steam integration, requires the Steamworks SDK.
  • ENABLE_GAMEMODE: Gamemode integration, reqires Gamemode.

To configure, run cmake in the source directory:

$ cd astra
$ cmake -S . -B build

This command will create a new build directory and configure the source directory (.). If you want to enable more options, pass the mnow:

$ cmake -S . -B build -DENABLE_STEAM=ON

Building

Now begin building the project:

$ cmake --build build

If the build was successful, an astra binary will be found in ./build/bin/astra.