aboutsummaryrefslogtreecommitdiff
path: root/core/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'core/init.cc')
-rw-r--r--core/init.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/init.cc b/core/init.cc
index 3f38eb80..01991df8 100644
--- a/core/init.cc
+++ b/core/init.cc
@@ -18,10 +18,15 @@
#include "chre/core/event_loop_manager.h"
#include "chre/platform/system_time.h"
-#include "chre/platform/version.h"
#include "chre/util/singleton.h"
-static const char *kChreVersionString = chre::getChreVersionString();
+#ifndef CHRE_VERSION_STRING
+#define CHRE_VERSION_STRING "undefined"
+#endif // CHRE_VERSION_STRING
+
+//! The CHRE version string. Placed in a variable in the global namespace for
+//! easy access with debugging tools.
+static const char kChreVersionString[] = CHRE_VERSION_STRING;
namespace chre {