mirror of
https://github.com/RetroDECK/RetroQUEST.git
synced 2025-04-21 01:24:06 +00:00
46 lines
1.8 KiB
C++
46 lines
1.8 KiB
C++
#pragma once
|
|
// This file is generated by cmake. Changes will be overwritten.
|
|
// clang-format off
|
|
|
|
#include <string_view>
|
|
|
|
// Creates a version number for use in macro comparisons.
|
|
//
|
|
// Example:
|
|
//
|
|
// // Check if the version is less than 2.1.0
|
|
// #if LIBRETROHOST_VERSION < LIBRETROHOST_VERSION_CHECK(2, 1, 0)
|
|
// // do stuff
|
|
// #endif
|
|
//
|
|
// Returns an integer which may be used in comparisons
|
|
#define LIBRETROHOST_VERSION_CHECK( major, minor, patch ) ( ((major)<<16) | ((minor)<<8) | (patch) )
|
|
|
|
#define LIBRETROHOST_VERSION_MAJOR 0
|
|
#define LIBRETROHOST_VERSION_MINOR 1
|
|
#define LIBRETROHOST_VERSION_PATCH 0
|
|
|
|
// The version number of this extension. Used for #if comparisons.
|
|
// This is generated using the version set in the CMake project macro.
|
|
#define LIBRETROHOST_VERSION LIBRETROHOST_VERSION_CHECK( 0, 1, 0 )
|
|
|
|
namespace VersionInfo {
|
|
// Project name and version as a string.
|
|
// This is generated using the project name from the cmake project macro and the current git commit information.
|
|
//
|
|
// It uses the form "<project name> <last tag>-<# commits since last tag>-<short commit hash>".
|
|
// If there are no commits since the last tag, only the tag is shown.
|
|
constexpr std::string_view VERSION_STR = "LibRetroHost 7ebbf84";
|
|
|
|
// The version information as a string.
|
|
// This is generated using the current git commit information.
|
|
//
|
|
// It uses the form "<last tag>-<# commits since last tag>-<short commit hash>".
|
|
// If there are no commits since the last tag, only the tag is shown.
|
|
constexpr std::string_view VERSION_SHORT_STR = "7ebbf84";
|
|
|
|
// The full git SHA1 hash as a string.
|
|
// This is generated using the current git commit information.
|
|
constexpr std::string_view GIT_SHA1_STR = "7ebbf840187f54466988c0b5b20524ad21ca1d58";
|
|
}
|