Skip to content

Commit

Permalink
[fuchsia] Remove dead package file generation from core snapshots. (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacnak-google authored Apr 24, 2018
1 parent 79b9ffb commit a20fd83
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions lib/snapshot/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,6 @@ copy("generate_dart_ui") {
]
}

if (is_fuchsia) {
dart_library("generate_package_map") {
# The sole purpose of this target is to generate a .packages file.
sources = []

infer_package_name = true

disable_analysis = true

deps = [
"//topaz/public/dart/fuchsia",
"//topaz/public/dart/zircon",
]
}
}

action("generate_snapshot_bin") {
if (is_fuchsia) {
snapshot_dart = "snapshot_fuchsia.dart"
Expand Down Expand Up @@ -68,7 +52,6 @@ action("generate_snapshot_bin") {
snapshot_dart,
] + dart_ui_files
if (is_fuchsia) {
deps += [ ":generate_package_map" ]
inputs += [ "fuchsia_compilation_trace.txt" ]
}

Expand Down Expand Up @@ -129,20 +112,14 @@ action("generate_snapshot_bin") {
}

if (is_fuchsia) {
package_gen_dir =
get_label_info(":bogus($dart_toolchain)", "target_gen_dir")
package_file = "$package_gen_dir/generate_package_map.packages"
inputs +=
zircon_sdk_ext_files + mozart_dart_sdk_ext_files + [ package_file ]
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files
zircon_path = rebase_path(zircon_sdk_ext_lib)
fuchsia_path = rebase_path(fuchsia_sdk_ext_lib)
mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib)
args += [
"--url_mapping=dart:zircon,$zircon_path",
"--url_mapping=dart:fuchsia,$fuchsia_path",
"--url_mapping=dart:mozart.internal,$mozart_internal_path",
"--packages",
rebase_path(package_file),
"--load_compilation_trace",
rebase_path("fuchsia_compilation_trace.txt"),
]
Expand Down

0 comments on commit a20fd83

Please sign in to comment.