Skip to content

Commit

Permalink
remove extra source files (flutter#8052)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Mar 6, 2019
1 parent 4773375 commit 57c120a
Showing 1 changed file with 0 additions and 80 deletions.
80 changes: 0 additions & 80 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@
import("$flutter_root/common/config.gni")
import("//third_party/dart/build/dart/dart_action.gni")

# Temporary snapshot copy rules until we can use the full SDK.
_flutter_sdk_snapshots = [
[
"dart2js",
"//third_party/dart/utils/compiler:dart2js",
],
[
"kernel_worker",
"//third_party/dart/utils/bazel:kernel_worker",
],
]

group("flutter") {
testonly = true

Expand All @@ -37,12 +25,7 @@ group("flutter") {
"$flutter_root/frontend_server",
"//third_party/dart:create_sdk",
"$flutter_root/lib/stub_ui:stub_ui",
":dart2js_platform_files",
":flutter_dartdevc_kernel_sdk",
]
foreach(snapshot, _flutter_sdk_snapshots) {
public_deps += [ ":copy_flutter_${snapshot[0]}_snapshot" ]
}
}
}

Expand Down Expand Up @@ -81,66 +64,3 @@ group("dist") {
"$flutter_root/sky/dist",
]
}

foreach(snapshot, _flutter_sdk_snapshots) {
copy("copy_flutter_${snapshot[0]}_snapshot") {
deps = [
snapshot[1],
]
sources = [
"$root_gen_dir/${snapshot[0]}.dart.snapshot",
]
outputs = [
"$root_out_dir/dart-sdk/bin/snapshots/flutter_{{source_file_part}}",
]
}
}

copy("dart2js_platform_files") {
deps = [
"//third_party/dart/utils/compiler:compile_dart2js_platform"
]

sources = [
"$root_out_dir/dart2js_outline.dill",
"$root_out_dir/dart2js_platform.dill",
]

outputs = [
"$root_out_dir/flutter_patched_sdk/{{source_file_part}}",
]
}


prebuilt_dart_action("flutter_dartdevc_kernel_sdk") {
deps = [
"//third_party/dart:create_sdk",
]

packages = "//third_party/dart/.packages"

script = "//third_party/dart/pkg/dev_compiler/tool/kernel_sdk.dart"

inputs = [
"//third_party/dart/pkg/dev_compiler/tool/kernel_sdk.dart",
]

outputs = [
"$target_gen_dir/kernel/amd/dart_sdk.js",
"$target_gen_dir/kernel/amd/dart_sdk.js.map",
"$target_gen_dir/kernel/common/dart_sdk.js",
"$target_gen_dir/kernel/common/dart_sdk.js.map",
"$target_gen_dir/kernel/es6/dart_sdk.js",
"$target_gen_dir/kernel/es6/dart_sdk.js.map",
"$target_gen_dir/kernel/legacy/dart_sdk.js",
"$target_gen_dir/kernel/legacy/dart_sdk.js.map",
]

libraries_path = rebase_path("$flutter_root/lib/snapshot/libraries.json")
output_path = rebase_path("$target_gen_dir/kernel/flutter_ddc_sdk.dill")

args = [
"--output=$output_path",
"--libraries=$libraries_path",
]
}

0 comments on commit 57c120a

Please sign in to comment.