Chromium Code Reviews| 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 import("../application_snapshot.gni") | 5 import("../application_snapshot.gni") |
| 6 import("../create_timestamp.gni") | |
| 6 | 7 |
| 7 application_snapshot("dartdevc") { | 8 application_snapshot("dartdevc") { |
| 8 main_dart = "../../pkg/dev_compiler/bin/dartdevc.dart" | 9 main_dart = "../../pkg/dev_compiler/bin/dartdevc.dart" |
| 9 training_args = [ | 10 training_args = [ |
| 10 "--dart-sdk", | 11 "--dart-sdk", |
| 11 rebase_path("../../sdk"), | 12 rebase_path("../../sdk"), |
| 12 "--dart-sdk-summary", | 13 "--dart-sdk-summary", |
| 13 rebase_path("../../pkg/dev_compiler/lib/sdk/ddc_sdk.sum"), | 14 rebase_path("../../pkg/dev_compiler/lib/sdk/ddc_sdk.sum"), |
| 14 "--library-root", | 15 "--library-root", |
| 15 rebase_path("../../pkg/dev_compiler"), | 16 rebase_path("../../pkg/dev_compiler"), |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 72 |
| 72 dart2js_compile("dartdevc_web") { | 73 dart2js_compile("dartdevc_web") { |
| 73 main = rebase_path("../../pkg/dev_compiler/web/main.dart") | 74 main = rebase_path("../../pkg/dev_compiler/web/main.dart") |
| 74 out = "$root_out_dir/dev_compiler/build/web/ddc_web_compiler.js" | 75 out = "$root_out_dir/dev_compiler/build/web/ddc_web_compiler.js" |
| 75 } | 76 } |
| 76 | 77 |
| 77 dart2js_compile("stack_trace_mapper") { | 78 dart2js_compile("stack_trace_mapper") { |
| 78 main = rebase_path("../../pkg/dev_compiler/web/stack_trace_mapper.dart") | 79 main = rebase_path("../../pkg/dev_compiler/web/stack_trace_mapper.dart") |
| 79 out = "$root_out_dir/dev_compiler/build/web/dart_stack_trace_mapper.js" | 80 out = "$root_out_dir/dev_compiler/build/web/dart_stack_trace_mapper.js" |
| 80 } | 81 } |
| 82 | |
| 83 # Builds everything needed to run dartdevc tests using test.dart. | |
| 84 group("dartdevc_test") { | |
| 85 deps = [ | |
| 86 "../../sdk:create_sdk", | |
| 87 ":dartdevc", | |
|
zra
2017/06/23 05:00:38
deps from the current file should come first.
Bob Nystrom
2017/06/24 00:29:36
Done.
| |
| 88 ":dartdevc_test_pkg", | |
| 89 ] | |
| 90 } | |
| 91 | |
| 92 create_timestamp_file("dartdevc_files_stamp") { | |
| 93 path = rebase_path("../../pkg/dev_compiler/lib") | |
| 94 output = "$target_gen_dir/dartdevc_files.stamp" | |
| 95 } | |
| 96 | |
| 97 # Compiles the packages used by the tests to JS with dartdevc so that they are | |
| 98 # available for loading by the tests. | |
| 99 compiled_action("dartdevc_test_pkg") { | |
| 100 tool = "../../runtime/bin:dart" | |
| 101 | |
| 102 deps = [ | |
| 103 ":dartdevc_files_stamp", | |
| 104 "../../pkg:pkg_files_stamp", | |
| 105 ] | |
| 106 | |
| 107 inputs = [ | |
| 108 "$target_gen_dir/dartdevc_files.stamp", | |
| 109 "$root_gen_dir/pkg_files.stamp", | |
| 110 ] | |
| 111 | |
| 112 outputs = [ | |
| 113 "$root_gen_dir/dartdevc/pkg/async_helper.js", | |
|
zra
2017/06/23 05:00:38
$root_gen_dir and $root_out_dir are somewhat valua
Bob Nystrom
2017/06/24 00:29:36
I considered that, but this path appears in test.d
zra
2017/06/26 05:47:33
Yeah, sorry for the inconvenience, but as far as I
Bob Nystrom
2017/06/28 23:04:03
Done.
zra
2017/06/29 15:06:00
Thanks!
| |
| 114 "$root_gen_dir/dartdevc/pkg/async_helper.sum", | |
| 115 "$root_gen_dir/dartdevc/pkg/collection.js", | |
| 116 "$root_gen_dir/dartdevc/pkg/collection.sum", | |
| 117 "$root_gen_dir/dartdevc/pkg/expect.js", | |
| 118 "$root_gen_dir/dartdevc/pkg/expect.sum", | |
| 119 "$root_gen_dir/dartdevc/pkg/js.js", | |
| 120 "$root_gen_dir/dartdevc/pkg/js.sum", | |
| 121 "$root_gen_dir/dartdevc/pkg/matcher.js", | |
| 122 "$root_gen_dir/dartdevc/pkg/matcher.sum", | |
| 123 "$root_gen_dir/dartdevc/pkg/meta.js", | |
| 124 "$root_gen_dir/dartdevc/pkg/meta.sum", | |
| 125 "$root_gen_dir/dartdevc/pkg/path.js", | |
| 126 "$root_gen_dir/dartdevc/pkg/path.sum", | |
| 127 "$root_gen_dir/dartdevc/pkg/stack_trace.js", | |
| 128 "$root_gen_dir/dartdevc/pkg/stack_trace.sum", | |
| 129 # TODO(rnystrom): Remove this when unittest is no longer used. Also remove | |
| 130 # any of the above packages that are only here because unittest uses them. | |
| 131 "$root_gen_dir/dartdevc/pkg/unittest.js", | |
| 132 "$root_gen_dir/dartdevc/pkg/unittest.sum", | |
| 133 ] | |
| 134 | |
| 135 args = [ | |
| 136 rebase_path("../../pkg/dev_compiler/tool/build_pkgs.dart"), | |
| 137 rebase_path("$root_gen_dir/dartdevc/pkg") | |
| 138 ] | |
| 139 } | |
| OLD | NEW |