This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -283,7 +283,10 @@ if (build_engine_artifacts) {
283283group (" dist" ) {
284284 testonly = true
285285
286- deps = [ " //flutter/sky/dist" ]
286+ deps = [
287+ " //flutter/lib/gpu/dist" ,
288+ " //flutter/sky/dist" ,
289+ ]
287290}
288291
289292if (is_fuchsia && enable_unittests ) {
Original file line number Diff line number Diff line change @@ -87,10 +87,6 @@ if (build_engine_artifacts && !is_android) {
8787 source = " //flutter/impeller/compiler/shader_lib"
8888 destination = " shader_lib"
8989 },
90- {
91- source = " //flutter/lib/gpu"
92- destination = " flutter_gpu"
93- },
9490 {
9591 source = " $root_out_dir /${ lib_prefix } path_ops$dll "
9692 destination = " ${ lib_prefix } path_ops$dll "
Original file line number Diff line number Diff line change 6868 " out/ci/android_debug/zip_archives/android-arm/symbols.zip" ,
6969 " out/ci/android_debug/zip_archives/download.flutter.io" ,
7070 " out/ci/android_debug/zip_archives/sky_engine.zip" ,
71- " out/ci/android_debug/zip_archives/android-javadoc.zip"
71+ " out/ci/android_debug/zip_archives/android-javadoc.zip" ,
72+ " out/ci/android_debug/zip_archives/flutter_gpu.zip"
7273 ],
7374 "realm" : " production"
7475 }
9697 "targets" : [
9798 " flutter" ,
9899 " flutter/sky/dist:zip_old_location" ,
100+ " flutter/lib/gpu/dist:zip_old_location" ,
99101 " flutter/shell/platform/android:embedding_jars" ,
100102 " flutter/shell/platform/android:abi_jars" ,
101103 " flutter/shell/platform/android:robolectric_tests"
Original file line number Diff line number Diff line change 1+ # Copyright 2013 The Flutter Authors. All rights reserved.
2+ # Use of this source code is governed by a BSD-style license that can be
3+ # found in the LICENSE file.
4+
5+ import (" //flutter/build/zip_bundle.gni" )
6+
7+ # Similar to `sky_engine`, zip up the `flutter_gpu` Dart package and upload
8+ # it to GCS for distribution. This is only done during Android builds on CI.
9+ #
10+ # Then, the Flutter tool downloads and extracts `flutter_gpu.zip` into the
11+ # package cache (`bin/cache/pkg`) during artifact initialization.
12+ #
13+ # Note that unlike with `sky_engine`, the `lib/gpu` directory is already a
14+ # complete Dart package. So no additional build steps are necessary beyond
15+ # zipping it up.
16+
17+ if (is_android ) {
18+ zip_bundle (" zip" ) {
19+ output = " $android_zip_archive_dir /flutter_gpu.zip"
20+ files = [
21+ {
22+ source = " //flutter/lib/gpu"
23+ destination = " flutter_gpu"
24+ },
25+ ]
26+ }
27+
28+ zip_bundle (" zip_old_location" ) {
29+ # TODO: remove after we migrate the tool to use the new location.
30+ # Bug: https://github.com/flutter/flutter/issues/105351
31+ output = " flutter_gpu.zip"
32+ files = [
33+ {
34+ source = " //flutter/lib/gpu"
35+ destination = " flutter_gpu"
36+ },
37+ ]
38+ }
39+ }
40+
41+ group (" dist" ) {
42+ if (is_android ) {
43+ deps = [ " :zip" ]
44+ }
45+ }
You can’t perform that action at this time.
0 commit comments