Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import("../invoke_dart.gni") | |
| 6 import("../../pkg/create_timestamp.gni") | |
|
Cutch
2016/09/29 20:04:08
maybe create_timestamp.gni should be moved to util
zra
2016/09/29 20:22:48
Done.
| |
| 7 | |
| 8 create_timestamp_file("dart2js_files_stamp") { | |
| 9 pattern = "\\.dart\$" | |
| 10 path = rebase_path("../../pkg/compiler/lib") | |
| 11 output = "$root_gen_dir/dart2js_files.stamp" | |
| 12 } | |
| 13 | |
| 14 invoke_dart("dart2js") { | |
| 15 deps = [ | |
| 16 ":dart2js_files_stamp", | |
| 17 ] | |
| 18 | |
| 19 dart_files = exec_script("../../tools/list_files.py", | |
| 20 ["\\.dart\$", | |
| 21 rebase_path("../../runtime/lib"), | |
| 22 rebase_path("../../sdk/lib/_internal/dartdoc")], | |
| 23 "list lines") | |
| 24 | |
| 25 inputs = dart_files + [ | |
| 26 "../../tools/list_files.py", | |
| 27 "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart", | |
| 28 "create_snapshot.dart", | |
| 29 "$root_gen_dir/dart2js_files.stamp", | |
| 30 "../../tools/VERSION", | |
| 31 ] | |
| 32 | |
| 33 utils_output = "$root_gen_dir/utils_wrapper.dart.snapshot" | |
| 34 dart2js_output = "$root_gen_dir/dart2js.dart.snapshot" | |
| 35 outputs = [ | |
| 36 utils_output, | |
| 37 dart2js_output, | |
| 38 ] | |
| 39 | |
| 40 dot_packages = rebase_path("../../.packages") | |
| 41 create_snapshot = rebase_path("create_snapshot.dart") | |
| 42 output_dir = rebase_path(root_gen_dir) | |
| 43 | |
| 44 args = [ | |
| 45 "--packages=$dot_packages", | |
| 46 create_snapshot, | |
| 47 "--output_dir=$output_dir", | |
| 48 "--dart2js_main=pkg/compiler/lib/src/dart2js.dart", | |
| 49 ] | |
| 50 } | |
| OLD | NEW |