|
2 | 2 | # Use of this source code is governed by a BSD-style license that can be
|
3 | 3 | # found in the LICENSE file.
|
4 | 4 |
|
5 |
| -_dart_sdk_libraries = [ |
6 |
| - "_chrome", |
7 |
| - "async", |
8 |
| - "core", |
9 |
| - "html", |
10 |
| - "isolate", |
11 |
| - "math", |
12 |
| - "typed_data", |
13 |
| - "_http", |
14 |
| - "cli", |
15 |
| - #"dev_compiler", |
16 |
| - "indexed_db", |
17 |
| - "js", |
18 |
| - "mirrors", |
19 |
| - "web_audio", |
20 |
| - #"_internal", Manually copy certain files from internal to avoid collisions. |
21 |
| - "collection", |
22 |
| - "developer", |
23 |
| - "internal", |
24 |
| - "js_util", |
25 |
| - "profiler", |
26 |
| - "web_gl", |
27 |
| - "convert", |
28 |
| - "ffi", |
29 |
| - "io", |
30 |
| - "svg", |
31 |
| - "web_sql", |
32 |
| -] |
33 |
| - |
34 | 5 | group("web_sdk") {
|
35 | 6 | sdk_copy_deps = []
|
36 |
| - foreach(library, _dart_sdk_libraries) { |
37 |
| - sdk_copy_deps += [ ":copy_flutter_${library}" ] |
38 |
| - } |
39 | 7 |
|
40 | 8 | deps = [
|
41 | 9 | ":web_ui_sources",
|
42 | 10 | ":web_libraries_json",
|
43 | 11 | ":dart_sdk_internal",
|
44 |
| - ":web_compiler_snapshots", |
45 | 12 | ] + sdk_copy_deps
|
46 | 13 | }
|
47 | 14 |
|
48 |
| -foreach(library, _dart_sdk_libraries) { |
49 |
| - copy("copy_flutter_${library}") { |
50 |
| - deps = [ |
51 |
| - "//third_party/dart:create_sdk" |
52 |
| - ] |
53 |
| - sources = exec_script("//third_party/dart/tools/list_dart_files.py", |
54 |
| - [ |
55 |
| - "absolute", |
56 |
| - rebase_path("//third_party/dart/sdk/lib/${library}/"), |
57 |
| - ], |
58 |
| - "list lines") |
59 |
| - |
60 |
| - outputs = [ |
61 |
| - "$root_out_dir/flutter_web_sdk/lib/${library}/{{source_file_part}}", |
62 |
| - ] |
63 |
| - } |
64 |
| -} |
65 |
| - |
66 |
| -copy("web_compiler_snapshots") { |
67 |
| - sources= [ |
68 |
| - "$root_out_dir/dart-sdk/bin/snapshots/dart2js.dart.snapshot", |
69 |
| - "$root_out_dir/dart-sdk/bin/snapshots/dartdevc.dart.snapshot", |
70 |
| - ] |
71 |
| - |
72 |
| - outputs = [ |
73 |
| - "$root_out_dir/flutter_web_sdk/bin/snapshots/{{source_file_part}}" |
74 |
| - ] |
75 |
| - |
76 |
| - deps = [ |
77 |
| - "//third_party/dart:create_sdk" |
78 |
| - ] |
79 |
| -} |
80 |
| - |
81 |
| - |
82 | 15 | copy("web_ui_sources") {
|
83 | 16 | sources = [
|
84 | 17 | "$flutter_root/lib/stub_ui/compositing.dart",
|
@@ -113,7 +46,6 @@ copy("web_libraries_json") {
|
113 | 46 | ]
|
114 | 47 | }
|
115 | 48 |
|
116 |
| - |
117 | 49 | copy("dart_sdk_internal") {
|
118 | 50 | deps = [
|
119 | 51 | "//third_party/dart:create_sdk"
|
|
0 commit comments