mirror of
https://github.com/dart-lang/sdk
synced 2024-07-08 12:06:26 +00:00
Include platform.dill files in sdk builds
R=zra@google.com Review-Url: https://codereview.chromium.org/2984243002 .
This commit is contained in:
parent
d6a39354ce
commit
de7e14436c
1
BUILD.gn
1
BUILD.gn
|
@ -111,7 +111,6 @@ group("analysis_server") {
|
|||
group("dart2js_bot") {
|
||||
deps = [
|
||||
":create_sdk",
|
||||
"utils/compiler:patched_dart2js_sdk",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
34
sdk/BUILD.gn
34
sdk/BUILD.gn
|
@ -65,6 +65,8 @@ if (is_fuchsia ||
|
|||
# ......_internal/
|
||||
#.........spec.sum
|
||||
#.........strong.sum
|
||||
#.........dart2js_platform.dill
|
||||
#.........vm_outline.dill
|
||||
#.........dev_compiler/
|
||||
# ......analysis_server/
|
||||
# ......analyzer/
|
||||
|
@ -444,6 +446,36 @@ copy("copy_analysis_summaries") {
|
|||
]
|
||||
}
|
||||
|
||||
# This rule copies vm's outline.dill file to lib/_internal
|
||||
copy("copy_vm_dill_files") {
|
||||
visibility = [ ":create_common_sdk" ]
|
||||
deps = [
|
||||
":copy_libraries",
|
||||
"../runtime/vm:patched_sdk",
|
||||
]
|
||||
sources = [
|
||||
"$root_out_dir/patched_sdk/outline.dill",
|
||||
]
|
||||
outputs = [
|
||||
"$root_out_dir/dart-sdk/lib/_internal/vm_outline.dill",
|
||||
]
|
||||
}
|
||||
|
||||
# This rule copies dart2js's platform.dill file to lib/_internal
|
||||
copy("copy_dart2js_dill_files") {
|
||||
visibility = [ ":create_full_sdk" ]
|
||||
deps = [
|
||||
":copy_libraries",
|
||||
"../utils/compiler:patched_dart2js_sdk",
|
||||
]
|
||||
sources = [
|
||||
"$root_out_dir/patched_dart2js_sdk/platform.dill",
|
||||
]
|
||||
outputs = [
|
||||
"$root_out_dir/dart-sdk/lib/_internal/dart2js_platform.dill",
|
||||
]
|
||||
}
|
||||
|
||||
# This rule copies ddc summaries to lib/_internal
|
||||
copy("copy_dev_compiler_summary") {
|
||||
visibility = [ ":copy_dev_compiler_sdk" ]
|
||||
|
@ -710,6 +742,7 @@ group("create_common_sdk") {
|
|||
":copy_platform_files",
|
||||
":copy_pub_assets",
|
||||
":copy_readme",
|
||||
":copy_vm_dill_files",
|
||||
":write_revision_file",
|
||||
":write_version_file",
|
||||
]
|
||||
|
@ -738,6 +771,7 @@ group("create_full_sdk") {
|
|||
]
|
||||
|
||||
deps = [
|
||||
":copy_dart2js_dill_files",
|
||||
":copy_dev_compiler_sdk",
|
||||
":copy_full_sdk_libraries",
|
||||
":copy_full_sdk_scripts",
|
||||
|
|
|
@ -43,8 +43,10 @@ template("generate_patched_sdk") {
|
|||
depfile = "$root_out_dir/${target_name}.d"
|
||||
|
||||
outputs = [
|
||||
# Instead of listing all outputs we list a single well-known one.
|
||||
# Instead of listing all outputs we list those consumed by
|
||||
# other BUILD rules.
|
||||
"$root_out_dir/${invoker.patched_sdk_dir}/platform.dill",
|
||||
"$root_out_dir/${invoker.patched_sdk_dir}/outline.dill",
|
||||
]
|
||||
|
||||
args = [ "--quiet" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user