-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flutter GPU] Upload flutter_gpu.zip upon successful completion of ci…
…/android_debug.
- Loading branch information
Showing
4 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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. | ||
|
||
import("//flutter/build/zip_bundle.gni") | ||
|
||
# Similar to `sky_engine`, zip up the `flutter_gpu` Dart package and upload | ||
# it to GCS for distribution. This is only done during Android builds on CI. | ||
# | ||
# Then, the Flutter tool downloads and extracts `flutter_gpu.zip` into the | ||
# package cache (`bin/cache/pkg`) during artifact initialization. | ||
# | ||
# Note that unlike with `sky_engine`, the `lib/gpu` directory is already a | ||
# complete Dart package. So no additional build steps are necessary beyond | ||
# zipping it up. | ||
|
||
if (is_android) { | ||
zip_bundle("zip") { | ||
output = "$android_zip_archive_dir/flutter_gpu.zip" | ||
files = [ | ||
{ | ||
source = "//flutter/lib/gpu" | ||
destination = "flutter_gpu" | ||
}, | ||
] | ||
} | ||
|
||
zip_bundle("zip_old_location") { | ||
# TODO: remove after we migrate the tool to use the new location. | ||
# Bug: https://github.com/flutter/flutter/issues/105351 | ||
output = "flutter_gpu.zip" | ||
files = [ | ||
{ | ||
source = "//flutter/lib/gpu" | ||
destination = "flutter_gpu" | ||
}, | ||
] | ||
} | ||
} | ||
|
||
group("dist") { | ||
if (is_android) { | ||
deps = [ ":zip" ] | ||
} | ||
} |