Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
version_in.cc
Go to the documentation of this file.
1// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#include "vm/version.h"
6
7#include "vm/globals.h"
8
9namespace dart {
10
11const char* Version::String() {
12 return str_;
13}
14
16 return snapshot_hash_;
17}
18
19const char* Version::CommitString() {
20 return commit_;
21}
22
23const char* Version::SdkHash() {
24 return git_short_hash_;
25}
26
27const char* Version::snapshot_hash_ = "{{SNAPSHOT_HASH}}";
28const char* Version::str_ =
29 "{{VERSION_STR}} ({{CHANNEL}}) ({{COMMIT_TIME}})"
30 " on \"" kHostOperatingSystemName
31 "_"
32#if defined(USING_SIMULATOR)
33 "sim"
34#endif
35 kTargetArchitectureName "\"";
36const char* Version::commit_ = "{{VERSION_STR}}";
37const char* Version::git_short_hash_ = "{{GIT_HASH}}";
38
39} // namespace dart
static const char * SdkHash()
Definition version_in.cc:23
static const char * CommitString()
Definition version_in.cc:19
static const char * String()
Definition version_in.cc:11
static const char * SnapshotString()
Definition version_in.cc:15