mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
696e1b40b5
Ideally Common.h wouldn't be a header in the Common library, and instead be renamed to something else, like PlatformCompatibility.h or something, but even then, there's still some things in the header that don't really fall under that label This moves the version strings out to their own version header that doesn't dump a bunch of other unrelated things into scope, like what Common.h was doing. This also places them into the Common namespace, as opposed to letting them sit in the global namespace.
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "Common/Version.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Common/scmrev.h"
|
|
|
|
namespace Common
|
|
{
|
|
#ifdef _DEBUG
|
|
#define BUILD_TYPE_STR "Debug "
|
|
#elif defined DEBUGFAST
|
|
#define BUILD_TYPE_STR "DebugFast "
|
|
#else
|
|
#define BUILD_TYPE_STR ""
|
|
#endif
|
|
|
|
const std::string scm_rev_str = "Dolphin "
|
|
#if !SCM_IS_MASTER
|
|
"[" SCM_BRANCH_STR "] "
|
|
#endif
|
|
|
|
#ifdef __INTEL_COMPILER
|
|
BUILD_TYPE_STR SCM_DESC_STR "-ICC";
|
|
#else
|
|
BUILD_TYPE_STR SCM_DESC_STR;
|
|
#endif
|
|
|
|
const std::string scm_rev_git_str = SCM_REV_STR;
|
|
const std::string scm_desc_str = SCM_DESC_STR;
|
|
const std::string scm_branch_str = SCM_BRANCH_STR;
|
|
const std::string scm_distributor_str = SCM_DISTRIBUTOR_STR;
|
|
|
|
#ifdef _WIN32
|
|
const std::string netplay_dolphin_ver = SCM_DESC_STR " Win";
|
|
#elif __APPLE__
|
|
const std::string netplay_dolphin_ver = SCM_DESC_STR " Mac";
|
|
#else
|
|
const std::string netplay_dolphin_ver = SCM_DESC_STR " Lin";
|
|
#endif
|
|
} // namespace Common
|