aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/scm_rev.cpp.in
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-23 18:43:57 -0700
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-23 18:43:57 -0700
commit4405a53cf3b669e84b1d953d35e89ec29b916293 (patch)
treef6d4370cfce75d9922e75d99c82e1935c6b723c9 /src/common/scm_rev.cpp.in
parent7a136b8a84f9b21e120efe734f86725c46b8531b (diff)
added scm rev generation on Linux/cmake
Diffstat (limited to 'src/common/scm_rev.cpp.in')
-rw-r--r--src/common/scm_rev.cpp.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common/scm_rev.cpp.in b/src/common/scm_rev.cpp.in
new file mode 100644
index 00000000..9e2bcfdd
--- /dev/null
+++ b/src/common/scm_rev.cpp.in
@@ -0,0 +1,18 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include "common/scm_rev.h"
+
+#define GIT_REV "@GIT_REV@"
+#define GIT_REF_SPEC "@GIT_REF_SPEC@"
+#define GIT_DESC "@GIT_DESC@"
+
+namespace Common {
+
+const char g_scm_rev[] = GIT_REV;
+const char g_scm_ref_spec[] = GIT_REF_SPEC;
+const char g_scm_desc[] = GIT_DESC;
+
+} // namespace
+