@@ -8,6 +8,7 @@ import("//flutter/lib/ui/dart_ui.gni")
88import (" //third_party/dart/sdk/lib/_http/http_sources.gni" )
99import (
1010 " //third_party/dart/sdk/lib/_internal/js_runtime/interceptors_sources.gni" )
11+ import (" //third_party/dart/sdk/lib/_internal/js_shared/js_types_sources.gni" )
1112import (" //third_party/dart/sdk/lib/async/async_sources.gni" )
1213import (" //third_party/dart/sdk/lib/collection/collection_sources.gni" )
1314import (" //third_party/dart/sdk/lib/convert/convert_sources.gni" )
@@ -18,6 +19,7 @@ import("//third_party/dart/sdk/lib/html/html_sources.gni")
1819import (" //third_party/dart/sdk/lib/internal/internal_sources.gni" )
1920import (" //third_party/dart/sdk/lib/io/io_sources.gni" )
2021import (" //third_party/dart/sdk/lib/isolate/isolate_sources.gni" )
22+ import (" //third_party/dart/sdk/lib/js/js_annotations_sources.gni" )
2123import (" //third_party/dart/sdk/lib/js/js_sources.gni" )
2224import (" //third_party/dart/sdk/lib/js_interop/js_interop_sources.gni" )
2325import (" //third_party/dart/sdk/lib/js_util/js_util_sources.gni" )
@@ -86,6 +88,19 @@ copy("_interceptors") {
8688 ]
8789}
8890
91+ copy (" _js_annotations" ) {
92+ lib_path = rebase_path (" js" , " " , dart_sdk_lib_path )
93+ sources = rebase_path (js_annotations_sdk_sources , " " , lib_path )
94+ outputs = [ " $root_gen_dir /dart-pkg/sky_engine/lib/_js_annotations/{{source_file_part}}" ]
95+ }
96+
97+ copy (" _js_types" ) {
98+ lib_path = rebase_path (" _internal/js_shared" , " " , dart_sdk_lib_path )
99+ sources = rebase_path (js_types_sdk_sources , " " , lib_path )
100+ outputs =
101+ [ " $root_gen_dir /dart-pkg/sky_engine/lib/_js_types/{{source_file_part}}" ]
102+ }
103+
89104copy (" internal" ) {
90105 lib_path = rebase_path (" internal" , " " , dart_sdk_lib_path )
91106 sources = rebase_path (internal_sdk_sources , " " , lib_path )
@@ -180,6 +195,8 @@ group("copy_dart_sdk") {
180195 deps = [
181196 " :_http" ,
182197 " :_interceptors" ,
198+ " :_js_annotations" ,
199+ " :_js_types" ,
183200 " :async" ,
184201 " :collection" ,
185202 " :convert" ,
@@ -230,6 +247,10 @@ generated_file("_embedder_yaml") {
230247 " # public API, e.g. List being Iterable by virtue of implementing" ,
231248 " # EfficientLengthIterable. Not including this library yields analysis errors." ,
232249 " \" dart:_internal\" : \" internal/internal.dart\" " ,
250+ " # The _js_annotations library is also needed for the same reasons as _internal." ,
251+ " \" dart:_js_annotations\" : \" _js_annotations/_js_annotations.dart\" " ,
252+ " # The _js_types library is also needed for the same reasons as _internal." ,
253+ " \" dart:_js_types\" : \" _js_types/js_types.dart\" " ,
233254 " \" dart:nativewrappers\" : \" _empty.dart\" " ,
234255 ]
235256}
0 commit comments