OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 | 6 |
7 group("dart") { | 7 group("dart") { |
8 deps = [ | 8 deps = [ |
9 ":dart_content_handler", | 9 ":dart_content_handler", |
10 ] | 10 ] |
11 } | 11 } |
12 | 12 |
13 action("generate_snapshot_bin") { | 13 action("generate_snapshot_bin") { |
14 deps = [ | 14 deps = [ |
15 "//dart/runtime/bin:gen_snapshot", | 15 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
16 "//mojo/public/interfaces/application", | 16 "//mojo/public/interfaces/application", |
17 ] | 17 ] |
18 inputs = [ | 18 inputs = [ |
19 "snapshot.dart", | 19 "snapshot.dart", |
20 "//dart/runtime/tools/create_snapshot_bin.py", | 20 "//dart/runtime/tools/create_snapshot_bin.py", |
21 "//mojo/dart/embedder/builtin.dart", | 21 "//mojo/dart/embedder/builtin.dart", |
22 "//mojo/public/dart/application.dart", | 22 "//mojo/public/dart/application.dart", |
23 "//mojo/public/dart/bindings.dart", | 23 "//mojo/public/dart/bindings.dart", |
24 "//mojo/public/dart/core.dart", | 24 "//mojo/public/dart/core.dart", |
25 "//mojo/public/dart/src/application.dart", | 25 "//mojo/public/dart/src/application.dart", |
(...skipping 12 matching lines...) Expand all Loading... |
38 "//mojo/public/dart/src/stub.dart", | 38 "//mojo/public/dart/src/stub.dart", |
39 "//mojo/public/dart/src/timer_impl.dart", | 39 "//mojo/public/dart/src/timer_impl.dart", |
40 "//mojo/public/dart/src/timer_queue.dart", | 40 "//mojo/public/dart/src/timer_queue.dart", |
41 "//mojo/public/dart/src/types.dart", | 41 "//mojo/public/dart/src/types.dart", |
42 ] | 42 ] |
43 output = "$target_gen_dir/snapshot_gen.bin" | 43 output = "$target_gen_dir/snapshot_gen.bin" |
44 outputs = [ | 44 outputs = [ |
45 output, | 45 output, |
46 ] | 46 ] |
47 | 47 |
| 48 gen_snapshot_dir = get_label_info( |
| 49 "//dart/runtime/bin:gen_snapshot($host_toolchain)", "root_out_dir") |
48 script = "//dart/runtime/tools/create_snapshot_bin.py" | 50 script = "//dart/runtime/tools/create_snapshot_bin.py" |
49 application_path = rebase_path("//mojo/public/dart/application.dart") | 51 application_path = rebase_path("//mojo/public/dart/application.dart") |
50 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") | 52 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") |
51 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") | 53 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
52 core_path = rebase_path("//mojo/public/dart/core.dart") | 54 core_path = rebase_path("//mojo/public/dart/core.dart") |
53 args = [ | 55 args = [ |
54 "--executable", rebase_path("$root_out_dir/gen_snapshot"), | 56 "--executable", rebase_path("$gen_snapshot_dir/gen_snapshot"), |
55 "--package_root", rebase_path("$root_gen_dir"), | 57 "--package_root", rebase_path("$root_gen_dir"), |
56 "--script", rebase_path("snapshot.dart"), | 58 "--script", rebase_path("snapshot.dart"), |
57 "--output_bin", rebase_path(output, root_build_dir), | 59 "--output_bin", rebase_path(output, root_build_dir), |
58 "--target_os", os, | 60 "--target_os", os, |
59 "--url_mapping=dart:mojo_application,$application_path", | 61 "--url_mapping=dart:mojo_application,$application_path", |
60 "--url_mapping=dart:mojo_bindings,$bindings_path", | 62 "--url_mapping=dart:mojo_bindings,$bindings_path", |
61 "--url_mapping=dart:mojo_builtin,$builtin_path", | 63 "--url_mapping=dart:mojo_builtin,$builtin_path", |
62 "--url_mapping=dart:mojo_core,$core_path", | 64 "--url_mapping=dart:mojo_core,$core_path", |
63 ] | 65 ] |
64 } | 66 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 deps = [ | 137 deps = [ |
136 "//base", | 138 "//base", |
137 "//mojo/application", | 139 "//mojo/application", |
138 "//mojo/application:test_support", | 140 "//mojo/application:test_support", |
139 "//mojo/public/cpp/bindings", | 141 "//mojo/public/cpp/bindings", |
140 "//mojo/public/cpp/system", | 142 "//mojo/public/cpp/system", |
141 "//services/dart/test:echo_service", | 143 "//services/dart/test:echo_service", |
142 "//services/dart/test:pingpong_service", | 144 "//services/dart/test:pingpong_service", |
143 ] | 145 ] |
144 } | 146 } |
OLD | NEW |