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 |
| 7 action("dart2js_files_stamp") { |
| 8 dart_files = exec_script("../../tools/list_files.py", |
| 9 ["\\.dart\$", |
| 10 rebase_path("../../pkg/compiler/lib")], |
| 11 "list lines") |
| 12 |
| 13 inputs = [ |
| 14 "../../tools/list_files.py", |
| 15 ] + dart_files |
| 16 output = "$root_gen_dir/dart2js_files.stamp" |
| 17 outputs = [ |
| 18 output, |
| 19 ] |
| 20 |
| 21 script = "../../tools/create_timestamp_file.py" |
| 22 args = [ |
| 23 rebase_path(output), |
| 24 ] |
| 25 } |
| 26 |
| 27 invoke_dart("dart2js") { |
| 28 dart_root = "../.." |
| 29 deps = [ |
| 30 ":dart2js_files_stamp", |
| 31 ] |
| 32 |
| 33 dart_files = exec_script("../../tools/list_files.py", |
| 34 ["\\.dart\$", |
| 35 rebase_path("../../runtime/lib"), |
| 36 rebase_path("../../sdk/lib/_internal/dartdoc")], |
| 37 "list lines") |
| 38 |
| 39 inputs = dart_files + [ |
| 40 "../../tools/list_files.py", |
| 41 "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart", |
| 42 "create_snapshot.dart", |
| 43 "$root_gen_dir/dart2js_files.stamp", |
| 44 "../../tools/VERSION", |
| 45 ] |
| 46 |
| 47 utils_output = "$root_gen_dir/utils_wrapper.dart.snapshot" |
| 48 dart2js_output = "$root_gen_dir/dart2js.dart.snapshot" |
| 49 outputs = [ |
| 50 utils_output, |
| 51 dart2js_output, |
| 52 ] |
| 53 |
| 54 dot_packages = rebase_path("../../.packages") |
| 55 create_snapshot = rebase_path("create_snapshot.dart") |
| 56 output_dir = rebase_path(root_gen_dir) |
| 57 |
| 58 args = [ |
| 59 "--packages=$dot_packages", |
| 60 create_snapshot, |
| 61 "--output_dir=$output_dir", |
| 62 "--dart2js_main=pkg/compiler/lib/src/dart2js.dart", |
| 63 ] |
| 64 } |
OLD | NEW |