forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.gni
46 lines (39 loc) · 1.23 KB
/
version.gni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
engine_version = ""
skia_version = ""
dart_version = ""
}
_flutter_root = "//flutter"
if (engine_version == "") {
engine_version_lines =
exec_script("//flutter/build/git_revision.py",
[
"--repository",
rebase_path(_flutter_root, "", _flutter_root),
],
"list lines")
engine_version = engine_version_lines[0]
}
if (skia_version == "") {
skia_version_lines =
exec_script("//flutter/build/git_revision.py",
[
"--repository",
rebase_path("//third_party/skia", "", _flutter_root),
],
"list lines")
skia_version = skia_version_lines[0]
}
if (dart_version == "") {
dart_version_lines =
exec_script("//flutter/build/git_revision.py",
[
"--repository",
rebase_path("//third_party/dart", "", _flutter_root),
],
"list lines")
dart_version = dart_version_lines[0]
}