1 // Copyright 2008 Dolphin Emulator Project
2 // Licensed under GPLv2+
3 // Refer to the license.txt file included.
4 
5 #include "Common/Version.h"
6 
7 #include <string>
8 
9 #include "Common/scmrev.h"
10 
11 namespace Common
12 {
13 #ifdef _DEBUG
14 #define BUILD_TYPE_STR "Debug "
15 #elif defined DEBUGFAST
16 #define BUILD_TYPE_STR "DebugFast "
17 #else
18 #define BUILD_TYPE_STR ""
19 #endif
20 
21 const std::string scm_rev_str = "Dolphin "
22 #if !SCM_IS_MASTER
23                                 "[" SCM_BRANCH_STR "] "
24 #endif
25 
26 #ifdef __INTEL_COMPILER
27     BUILD_TYPE_STR SCM_DESC_STR "-ICC";
28 #else
29     BUILD_TYPE_STR SCM_DESC_STR;
30 #endif
31 
32 const std::string scm_rev_git_str = SCM_REV_STR;
33 const std::string scm_desc_str = SCM_DESC_STR;
34 const std::string scm_branch_str = SCM_BRANCH_STR;
35 const std::string scm_distributor_str = SCM_DISTRIBUTOR_STR;
36 
37 #ifdef _WIN32
38 const std::string netplay_dolphin_ver = SCM_DESC_STR " Win";
39 #elif __APPLE__
40 const std::string netplay_dolphin_ver = SCM_DESC_STR " Mac";
41 #else
42 const std::string netplay_dolphin_ver = SCM_DESC_STR " Lin";
43 #endif
44 }  // namespace Common
45