mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This was only necessary when the Engine had to build in multiple buildroots where the sources where checked out at different paths relative to the buildroot. This is no longer the case and there are already cases GN rules have been written that mix and match variable usage with the direct specification of the path to the Flutter sources relative to the sole buildroot.
47 lines
1.2 KiB
Plaintext
47 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 = ""
|
|
}
|
|
|
|
_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]
|
|
}
|