summaryrefslogtreecommitdiffstats
path: root/src/core/version.cc.in
blob: d7911496ad7f8b5f06d5c37da5558c09d819c821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: version.cc.in
// Description: Version template

#include "core/pch.hh"

#include "core/version.hh"

// clang-format off
const unsigned short version::major = ${PROJECT_VERSION_MAJOR};
const unsigned short version::minor = ${PROJECT_VERSION_MINOR};
const unsigned short version::patch = ${PROJECT_VERSION_PATCH};
// clang-format on

const std::string_view version::commit = "${GIT_COMMIT}";
const std::string_view version::branch = "${GIT_BRANCH}";
const std::string_view version::triplet = "${PROJECT_VERSION}";

const std::string_view version::full = "${PROJECT_VERSION}-${GIT_COMMIT}";