| 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("../create_timestamp.gni") | 5 import("../create_timestamp.gni") |
| 6 import("../invoke_dart.gni") | 6 import("../invoke_dart.gni") |
| 7 | 7 |
| 8 create_timestamp_file("dart2js_files_stamp") { | 8 create_timestamp_file("dart2js_files_stamp") { |
| 9 path = rebase_path("../../pkg/compiler/lib") | 9 path = rebase_path("../../pkg/compiler/lib") |
| 10 output = "$root_gen_dir/dart2js_files.stamp" | 10 output = "$root_gen_dir/dart2js_files.stamp" |
| 11 } | 11 } |
| 12 | 12 |
| 13 create_timestamp_file("runtime_lib_files_stamp") { | 13 create_timestamp_file("runtime_lib_files_stamp") { |
| 14 path = rebase_path("../../runtime/lib") | 14 path = rebase_path("../../runtime/lib") |
| 15 output = "$target_gen_dir/runtime_lib_files.stamp" | 15 output = "$target_gen_dir/runtime_lib_files.stamp" |
| 16 } | 16 } |
| 17 | 17 |
| 18 create_timestamp_file("dartdoc_files_stamp") { | 18 create_timestamp_file("dartdoc_files_stamp") { |
| 19 path = rebase_path("../../sdk/lib/_internal/dartdoc") | 19 path = rebase_path("../../sdk/lib/_internal/dartdoc") |
| 20 output = "$target_gen_dir/dartdoc_files.stamp" | 20 output = "$target_gen_dir/dartdoc_files.stamp" |
| 21 } | 21 } |
| 22 | 22 |
| 23 invoke_dart("dart2js_create_snapshot_entries") { | 23 invoke_dart("dart2js_create_snapshot_entries") { |
| 24 deps = [ | 24 deps = [ |
| 25 ":dart2js_files_stamp", | 25 ":dart2js_files_stamp", |
| 26 ":dartdoc_files_stamp", |
| 26 ":runtime_lib_files_stamp", | 27 ":runtime_lib_files_stamp", |
| 27 ":dartdoc_files_stamp", | |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 dot_packages = rebase_path("../../.packages") | 30 dot_packages = rebase_path("../../.packages") |
| 31 create_snapshot_entry = rebase_path("create_snapshot_entry.dart") | 31 create_snapshot_entry = rebase_path("create_snapshot_entry.dart") |
| 32 output_dir = rebase_path(root_gen_dir) | 32 output_dir = rebase_path(root_gen_dir) |
| 33 | 33 |
| 34 inputs = [ | 34 inputs = [ |
| 35 "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart", | 35 "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart", |
| 36 create_snapshot_entry, | 36 create_snapshot_entry, |
| 37 "$root_gen_dir/dart2js_files.stamp", | 37 "$root_gen_dir/dart2js_files.stamp", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 48 args = [ | 48 args = [ |
| 49 "--packages=$dot_packages", | 49 "--packages=$dot_packages", |
| 50 create_snapshot_entry, | 50 create_snapshot_entry, |
| 51 "--output_dir=$output_dir", | 51 "--output_dir=$output_dir", |
| 52 "--dart2js_main=pkg/compiler/lib/src/dart2js.dart", | 52 "--dart2js_main=pkg/compiler/lib/src/dart2js.dart", |
| 53 ] | 53 ] |
| 54 } | 54 } |
| 55 | 55 |
| 56 application_snapshot("dart2js") { | 56 application_snapshot("dart2js") { |
| 57 deps = [ | 57 deps = [ |
| 58 ":dart2js_create_snapshot_entries" | 58 ":dart2js_create_snapshot_entries", |
| 59 ] | 59 ] |
| 60 main_dart = "$root_gen_dir/dart2js.dart" | 60 main_dart = "$root_gen_dir/dart2js.dart" |
| 61 training_args = [ | 61 training_args = [ |
| 62 "--library-root=" + rebase_path("../../sdk"), | 62 "--library-root=" + rebase_path("../../sdk"), |
| 63 rebase_path("../../tests/language/first_test.dart") | 63 rebase_path("../../tests/language/first_test.dart"), |
| 64 ] | 64 ] |
| 65 } | 65 } |
| 66 | 66 |
| 67 application_snapshot("utils_wrapper") { | 67 application_snapshot("utils_wrapper") { |
| 68 deps = [ | 68 deps = [ |
| 69 ":dart2js_create_snapshot_entries" | 69 ":dart2js_create_snapshot_entries", |
| 70 ] | 70 ] |
| 71 main_dart = "$root_gen_dir/utils_wrapper.dart" | 71 main_dart = "$root_gen_dir/utils_wrapper.dart" |
| 72 training_args = [ "--help" ] | 72 training_args = [ "--help" ] |
| 73 } | 73 } |
| OLD | NEW |