| 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 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 deps = [ | 37 deps = [ |
| 38 "runtime/bin:dart", | 38 "runtime/bin:dart", |
| 39 "runtime/bin:dart_bootstrap($host_toolchain)", | 39 "runtime/bin:dart_bootstrap($host_toolchain)", |
| 40 "runtime/bin:process_test", | 40 "runtime/bin:process_test", |
| 41 "runtime/bin:run_vm_tests", | 41 "runtime/bin:run_vm_tests", |
| 42 "runtime/bin:sample_extension", | 42 "runtime/bin:sample_extension", |
| 43 "runtime/bin:test_extension", | 43 "runtime/bin:test_extension", |
| 44 "runtime/vm:patched_sdk", | 44 "runtime/vm:patched_sdk", |
| 45 ] | 45 ] |
| 46 | |
| 47 # TODO(28532): Enable on Windows. | |
| 48 # TODO(rmacnak): Link this into 'dart' | |
| 49 if (target_os != "windows") { | |
| 50 deps += [ "utils/kernel-service:kernel-service" ] | |
| 51 } | |
| 52 } | 46 } |
| 53 | 47 |
| 54 group("runtime_precompiled") { | 48 group("runtime_precompiled") { |
| 55 deps = [ | 49 deps = [ |
| 56 "runtime/bin:dart_bootstrap($host_toolchain)", | 50 "runtime/bin:dart_bootstrap($host_toolchain)", |
| 57 "runtime/bin:dart_precompiled_runtime", | 51 "runtime/bin:dart_precompiled_runtime", |
| 58 "runtime/bin:process_test", | 52 "runtime/bin:process_test", |
| 59 "runtime/vm:patched_sdk", | 53 "runtime/vm:patched_sdk", |
| 60 ] | 54 ] |
| 61 } | 55 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ] | 115 ] |
| 122 | 116 |
| 123 script = "tools/create_sdk.py" | 117 script = "tools/create_sdk.py" |
| 124 args = [ | 118 args = [ |
| 125 "--sdk_output_dir", | 119 "--sdk_output_dir", |
| 126 rebase_path("$root_out_dir/dart-sdk"), | 120 rebase_path("$root_out_dir/dart-sdk"), |
| 127 "--snapshot_location", | 121 "--snapshot_location", |
| 128 rebase_path("$root_gen_dir"), | 122 rebase_path("$root_gen_dir"), |
| 129 ] | 123 ] |
| 130 if (defined(is_fuchsia) && is_fuchsia_host) { | 124 if (defined(is_fuchsia) && is_fuchsia_host) { |
| 131 args += [ "--copy_libs" ] | 125 args += [ |
| 126 "--copy_libs" |
| 127 ] |
| 132 } | 128 } |
| 133 } | 129 } |
| 134 | 130 |
| 135 group("dart2js") { | 131 group("dart2js") { |
| 136 deps = [ | 132 deps = [ |
| 137 "utils/compiler:dart2js", | 133 "utils/compiler:dart2js", |
| 138 ] | 134 ] |
| 139 } | 135 } |
| 140 | 136 |
| 141 group("dartanalyzer") { | 137 group("dartanalyzer") { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 170 ":create_sdk", | 166 ":create_sdk", |
| 171 ] | 167 ] |
| 172 } | 168 } |
| 173 | 169 |
| 174 group("samples") { | 170 group("samples") { |
| 175 deps = [ | 171 deps = [ |
| 176 "runtime/bin:sample_extension", | 172 "runtime/bin:sample_extension", |
| 177 ] | 173 ] |
| 178 } | 174 } |
| 179 | 175 |
| 176 |
| 180 # The rules below build a qemu Fuchsia OS image that includes the Dart tree | 177 # The rules below build a qemu Fuchsia OS image that includes the Dart tree |
| 181 # under /system/test/dart. Building this image is gated by the GN argument | 178 # under /system/test/dart. Building this image is gated by the GN argument |
| 182 # 'dart_build_fuchsia_test_image' because building the image is slow. | 179 # 'dart_build_fuchsia_test_image' because building the image is slow. |
| 183 if (defined(is_fuchsia) && is_fuchsia) { | 180 if (defined(is_fuchsia) && (is_fuchsia)) { |
| 184 declare_args() { | 181 declare_args() { |
| 185 dart_build_fuchsia_test_image = false | 182 dart_build_fuchsia_test_image = false |
| 186 } | 183 } |
| 187 | 184 |
| 188 if (dart_build_fuchsia_test_image) { | 185 if (dart_build_fuchsia_test_image) { |
| 189 action("generate_dart_test_manifest") { | 186 action("generate_dart_test_manifest") { |
| 190 testonly = true | 187 testonly = true |
| 191 | 188 |
| 192 deps = [ | 189 deps = [ |
| 193 "//packages/gn:mkbootfs", | 190 "//packages/gn:mkbootfs", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 213 "-u", | 210 "-u", |
| 214 rebase_path(user_manifest), | 211 rebase_path(user_manifest), |
| 215 "-o", | 212 "-o", |
| 216 rebase_path(output_prefix), | 213 rebase_path(output_prefix), |
| 217 ] | 214 ] |
| 218 } | 215 } |
| 219 | 216 |
| 220 action("generate_dart_test_image") { | 217 action("generate_dart_test_image") { |
| 221 testonly = true | 218 testonly = true |
| 222 deps = [ | 219 deps = [ |
| 220 "runtime/bin:dart", |
| 221 "runtime/bin:run_vm_tests", |
| 222 "runtime/bin:process_test", |
| 223 ":generate_dart_test_manifest", | 223 ":generate_dart_test_manifest", |
| 224 "runtime/bin:dart", | |
| 225 "runtime/bin:process_test", | |
| 226 "runtime/bin:run_vm_tests", | |
| 227 ] | 224 ] |
| 228 | 225 |
| 229 input = "$target_gen_dir/dart_test_tree.manifest" | 226 input = "$target_gen_dir/dart_test_tree.manifest" |
| 230 inputs = [ | 227 inputs = [ |
| 231 input, | 228 input, |
| 232 ] | 229 ] |
| 233 | 230 |
| 234 output = "$root_out_dir/dart_test_tree.bin" | 231 output = "$root_out_dir/dart_test_tree.bin" |
| 235 outputs = [ | 232 outputs = [ |
| 236 output, | 233 output, |
| 237 ] | 234 ] |
| 238 | 235 |
| 239 script = "//packages/gn/make_bootfs.py" | 236 script = "//packages/gn/make_bootfs.py" |
| 240 args = [ | 237 args = [ |
| 241 "--manifest", | 238 "--manifest", |
| 242 rebase_path(input), | 239 rebase_path(input), |
| 243 "--output-file", | 240 "--output-file", |
| 244 rebase_path(output), | 241 rebase_path(output), |
| 245 "--build-id-map", | 242 "--build-id-map", |
| 246 rebase_path("$target_gen_dir/build_id_map"), | 243 rebase_path("$target_gen_dir/build_id_map"), |
| 247 "--compress", | 244 "--compress", |
| 248 ] | 245 ] |
| 249 } | 246 } |
| 250 } | 247 } |
| 251 } | 248 } |
| OLD | NEW |