summaryrefslogtreecommitdiff
path: root/src/common/version.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-08 19:25:03 -0400
committerGravatar bunnei2014-04-08 19:25:03 -0400
commit63e46abdb8764bc97e91bae862c8d461e61b1965 (patch)
treee73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/common/version.cpp
parentfixed some license headers that I missed (diff)
downloadyuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.gz
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.xz
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.zip
got rid of 'src' folders in each sub-project
Diffstat (limited to 'src/common/version.cpp')
-rw-r--r--src/common/version.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/common/version.cpp b/src/common/version.cpp
new file mode 100644
index 000000000..01890dbb6
--- /dev/null
+++ b/src/common/version.cpp
@@ -0,0 +1,45 @@
1// Copyright 2013 Dolphin Emulator Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#include "common.h"
6#include "scm_rev.h"
7
8#ifdef _DEBUG
9 #define BUILD_TYPE_STR "Debug "
10#elif defined DEBUGFAST
11 #define BUILD_TYPE_STR "DebugFast "
12#else
13 #define BUILD_TYPE_STR ""
14#endif
15
16const char *scm_rev_str = "emu "
17#if !SCM_IS_MASTER
18 "[" SCM_BRANCH_STR "] "
19#endif
20
21#ifdef __INTEL_COMPILER
22 BUILD_TYPE_STR SCM_DESC_STR "-ICC";
23#else
24 BUILD_TYPE_STR SCM_DESC_STR;
25#endif
26
27#ifdef _M_X64
28#define NP_ARCH "x64"
29#else
30#ifdef _M_ARM
31#define NP_ARCH "ARM"
32#else
33#define NP_ARCH "x86"
34#endif
35#endif
36
37#ifdef _WIN32
38const char *netplay_dolphin_ver = SCM_DESC_STR " W" NP_ARCH;
39#elif __APPLE__
40const char *netplay_dolphin_ver = SCM_DESC_STR " M" NP_ARCH;
41#else
42const char *netplay_dolphin_ver = SCM_DESC_STR " L" NP_ARCH;
43#endif
44
45const char *scm_rev_git_str = SCM_REV_STR;