|
| 1 | +import("//flutter/build/zip_bundle.gni") |
| 2 | + |
| 3 | +zip_bundle("artifacts") { |
| 4 | + output = "$host_os-$target_cpu/artifacts.zip" |
| 5 | + deps = [ |
| 6 | + "//flutter/flutter_frontend_server:frontend_server", |
| 7 | + "//flutter/lib/snapshot:generate_snapshot_bin", |
| 8 | + "//flutter/shell/testing:testing", |
| 9 | + ] |
| 10 | + files = [ |
| 11 | + { |
| 12 | + source = "//third_party/icu/flutter/icudtl.dat" |
| 13 | + destination = "icudtl.dat" |
| 14 | + }, |
| 15 | + { |
| 16 | + source = "$root_out_dir/gen/flutter/lib/snapshot/isolate_snapshot.bin" |
| 17 | + destination = "isolate_snapshot.bin" |
| 18 | + }, |
| 19 | + { |
| 20 | + source = "$root_gen_dir/flutter/lib/snapshot/vm_isolate_snapshot.bin" |
| 21 | + destination = "vm_isolate_snapshot.bin" |
| 22 | + }, |
| 23 | + { |
| 24 | + source = "$root_gen_dir/frontend_server.dart.snapshot" |
| 25 | + destination = "frontend_server.dart.snapshot" |
| 26 | + }, |
| 27 | + ] |
| 28 | + if (host_os == "win") { |
| 29 | + files += [ |
| 30 | + { |
| 31 | + source = "$root_out_dir/flutter_tester.exe" |
| 32 | + destination = "flutter_tester" |
| 33 | + }, |
| 34 | + ] |
| 35 | + } else { |
| 36 | + files += [ |
| 37 | + { |
| 38 | + source = "$root_out_dir/flutter_tester" |
| 39 | + destination = "flutter_tester" |
| 40 | + }, |
| 41 | + ] |
| 42 | + } |
| 43 | +} |
| 44 | + |
| 45 | +if (host_os == "linux") { |
| 46 | + group("linux-embedder") { |
| 47 | + deps = [ "//flutter/shell/platform/embedder:linux-embedder-archive" ] |
| 48 | + } |
| 49 | +} |
| 50 | + |
| 51 | +zip_bundle("flutter_patched_sdk") { |
| 52 | + output = "flutter_patched_sdk.zip" |
| 53 | + deps = [ "//flutter/lib/snapshot:strong_platform" ] |
| 54 | + files = [ |
| 55 | + { |
| 56 | + source = "$root_out_dir/flutter_patched_sdk/vm_outline_strong.dill" |
| 57 | + destination = "vm_outline_strong.dill" |
| 58 | + }, |
| 59 | + { |
| 60 | + source = "$root_out_dir/flutter_patched_sdk/platform_strong.dill" |
| 61 | + destination = "platform_strong.dill" |
| 62 | + }, |
| 63 | + ] |
| 64 | +} |
0 commit comments