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/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 action("generate_test_snapshot_bin") { | 8 action("generate_test_snapshot_bin") { |
9 deps = [ | 9 deps = [ |
10 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 10 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 "--executable", | 46 "--executable", |
47 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 47 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
48 "--package_root", | 48 "--package_root", |
49 rebase_path("$root_gen_dir"), | 49 rebase_path("$root_gen_dir"), |
50 "--script", | 50 "--script", |
51 rebase_path("test_snapshot.dart"), | 51 rebase_path("test_snapshot.dart"), |
52 "--output_bin", | 52 "--output_bin", |
53 rebase_path(output, root_build_dir), | 53 rebase_path(output, root_build_dir), |
54 "--target_os", | 54 "--target_os", |
55 os, | 55 os, |
56 "--url_mapping=dart:mojo_bindings,$bindings_path", | 56 "--url_mapping=mojo:bindings,$bindings_path", |
57 "--url_mapping=dart:mojo_builtin,$builtin_path", | 57 "--url_mapping=mojo:builtin,$builtin_path", |
58 "--url_mapping=dart:mojo_core,$core_path", | 58 "--url_mapping=mojo:core,$core_path", |
59 ] | 59 ] |
60 } | 60 } |
61 | 61 |
62 action("generate_test_snapshot_file") { | 62 action("generate_test_snapshot_file") { |
63 deps = [ | 63 deps = [ |
64 ":generate_test_snapshot_bin", | 64 ":generate_test_snapshot_bin", |
65 ] | 65 ] |
66 inputs = [ | 66 inputs = [ |
67 "//dart/runtime/tools/create_snapshot_file.py", | 67 "//dart/runtime/tools/create_snapshot_file.py", |
68 "//mojo/dart/embedder/snapshot.cc.tmpl", | 68 "//mojo/dart/embedder/snapshot.cc.tmpl", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 164 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
165 "//testing/gtest", | 165 "//testing/gtest", |
166 ] | 166 ] |
167 } | 167 } |
168 | 168 |
169 mojom("dart_to_cpp_bindings") { | 169 mojom("dart_to_cpp_bindings") { |
170 sources = [ | 170 sources = [ |
171 "dart_to_cpp.mojom", | 171 "dart_to_cpp.mojom", |
172 ] | 172 ] |
173 } | 173 } |
OLD | NEW |