OLD | NEW |
1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # This target will be built if no target is specified when invoking ninja. | 5 # This target will be built if no target is specified when invoking ninja. |
6 group("default") { | 6 group("default") { |
7 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { | 7 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { |
8 # Fuchsia has run_vm_tests marked testonly. | 8 # Fuchsia has run_vm_tests marked testonly. |
9 testonly = true | 9 testonly = true |
10 } | 10 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 group("runtime_precompiled") { | 61 group("runtime_precompiled") { |
62 deps = [ | 62 deps = [ |
63 "runtime/bin:dart_bootstrap($host_toolchain)", | 63 "runtime/bin:dart_bootstrap($host_toolchain)", |
64 "runtime/bin:dart_precompiled_runtime", | 64 "runtime/bin:dart_precompiled_runtime", |
65 "runtime/bin:process_test", | 65 "runtime/bin:process_test", |
66 "runtime/vm:patched_sdk", | 66 "runtime/vm:patched_sdk", |
67 ] | 67 ] |
68 } | 68 } |
69 | 69 |
70 action("create_sdk") { | 70 group("create_sdk") { |
71 deps = [ | 71 deps = [ |
72 "runtime/bin:dart", | 72 "sdk:create_sdk", |
73 "utils/analysis_server", | |
74 "utils/compiler:dart2js", | |
75 "utils/compiler:utils_wrapper", | |
76 "utils/dartanalyzer:generate_dartanalyzer_snapshot", | |
77 "utils/dartanalyzer:generate_summary_spec", | |
78 "utils/dartanalyzer:generate_summary_strong", | |
79 "utils/dartdevc", | |
80 "utils/dartdoc", | |
81 "utils/dartfmt", | |
82 "utils/pub", | |
83 ] | 73 ] |
84 | |
85 sdk_lib_files = exec_script("tools/list_dart_files.py", | |
86 [ | |
87 "absolute", | |
88 rebase_path("sdk/lib"), | |
89 ], | |
90 "list lines") | |
91 | |
92 preamble_files = | |
93 exec_script("tools/list_files.py", | |
94 [ | |
95 "absolute", | |
96 "", | |
97 rebase_path("sdk/lib/_internal/js_runtime/lib/preambles"), | |
98 ], | |
99 "list lines") | |
100 | |
101 sdk_bin_files = exec_script("tools/list_files.py", | |
102 [ | |
103 "absolute", | |
104 "", | |
105 rebase_path("sdk/bin"), | |
106 ], | |
107 "list lines") | |
108 | |
109 inputs = sdk_lib_files + preamble_files + sdk_bin_files + [ | |
110 "sdk/lib/dart_client.platform", | |
111 "sdk/lib/dart_server.platform", | |
112 "sdk/lib/dart_shared.platform", | |
113 "$root_gen_dir/dart2js.dart.snapshot", | |
114 "$root_gen_dir/utils_wrapper.dart.snapshot", | |
115 "$root_gen_dir/pub.dart.snapshot", | |
116 "$root_gen_dir/dartanalyzer.dart.snapshot", | |
117 "$root_gen_dir/dartdevc.dart.snapshot", | |
118 "$root_gen_dir/dartfmt.dart.snapshot", | |
119 "$root_gen_dir/analysis_server.dart.snapshot", | |
120 "$root_gen_dir/dartdoc.dart.snapshot", | |
121 "$root_gen_dir/spec.sum", | |
122 "$root_gen_dir/strong.sum", | |
123 "tools/VERSION", | |
124 ] | |
125 | |
126 outputs = [ | |
127 "$root_out_dir/dart-sdk/README", | |
128 ] | |
129 | |
130 script = "tools/create_sdk.py" | |
131 args = [ | |
132 "--sdk_output_dir", | |
133 rebase_path("$root_out_dir/dart-sdk"), | |
134 "--snapshot_location", | |
135 rebase_path("$root_gen_dir"), | |
136 ] | |
137 if (defined(is_fuchsia) && is_fuchsia_host) { | |
138 args += [ "--copy_libs" ] | |
139 } | |
140 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { | |
141 # The binaries are already stripped. | |
142 args += [ "--disable_stripping" ] | |
143 } | |
144 } | 74 } |
145 | 75 |
146 group("dart2js") { | 76 group("dart2js") { |
147 deps = [ | 77 deps = [ |
148 "utils/compiler:dart2js", | 78 "utils/compiler:dart2js", |
149 ] | 79 ] |
150 } | 80 } |
151 | 81 |
152 group("dartanalyzer") { | 82 group("dartanalyzer") { |
153 deps = [ | 83 deps = [ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 "--output-file", | 196 "--output-file", |
267 rebase_path(output), | 197 rebase_path(output), |
268 "--build-id-map", | 198 "--build-id-map", |
269 rebase_path("$target_gen_dir/build_id_map"), | 199 rebase_path("$target_gen_dir/build_id_map"), |
270 "--pre-binaries", | 200 "--pre-binaries", |
271 rebase_path(magenta_bootdata), | 201 rebase_path(magenta_bootdata), |
272 ] | 202 ] |
273 } | 203 } |
274 } | 204 } |
275 } | 205 } |
OLD | NEW |