mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* Revert "Fix versions implementation (#7726)" This reverts commit 3c38dd342f53d39603d1c5b138b5e4d36d93720f. * Revert "Expose the Flutter engine, Dart and Skia versions to Dart. (#7634)" This reverts commit b94e759b256819fb33cb9d2b41565fc137cac733. * remove namespace shell stuff * fix format * fix licenses
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
# 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 = ""
|
|
}
|
|
|
|
if (engine_version == "") {
|
|
engine_version_lines =
|
|
exec_script("$flutter_root/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_root/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_root/build/git_revision.py",
|
|
[
|
|
"--repository",
|
|
rebase_path("//third_party/dart", "", flutter_root),
|
|
],
|
|
"list lines")
|
|
dart_version = dart_version_lines[0]
|
|
}
|