Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: mojo/dart/embedder/test/BUILD.gn

Issue 876023003: Dart: Changes to support building for Android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/dart/embedder/mojo_natives.cc ('k') | services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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", 10 "//dart/runtime/bin:gen_snapshot($host_toolchain)",
11 ] 11 ]
12 inputs = [ 12 inputs = [
13 "test_snapshot.dart", 13 "test_snapshot.dart",
14 "//dart/runtime/tools/create_snapshot_bin.py", 14 "//dart/runtime/tools/create_snapshot_bin.py",
15 "//mojo/dart/embedder/builtin.dart", 15 "//mojo/dart/embedder/builtin.dart",
16 "//mojo/public/dart/bindings.dart", 16 "//mojo/public/dart/bindings.dart",
17 "//mojo/public/dart/core.dart", 17 "//mojo/public/dart/core.dart",
18 "//mojo/public/dart/src/buffer.dart", 18 "//mojo/public/dart/src/buffer.dart",
19 "//mojo/public/dart/src/codec.dart", 19 "//mojo/public/dart/src/codec.dart",
20 "//mojo/public/dart/src/data_pipe.dart", 20 "//mojo/public/dart/src/data_pipe.dart",
21 "//mojo/public/dart/src/drain_data.dart", 21 "//mojo/public/dart/src/drain_data.dart",
22 "//mojo/public/dart/src/event_stream.dart", 22 "//mojo/public/dart/src/event_stream.dart",
23 "//mojo/public/dart/src/handle.dart", 23 "//mojo/public/dart/src/handle.dart",
24 "//mojo/public/dart/src/handle_watcher.dart", 24 "//mojo/public/dart/src/handle_watcher.dart",
25 "//mojo/public/dart/src/message.dart", 25 "//mojo/public/dart/src/message.dart",
26 "//mojo/public/dart/src/message_pipe.dart", 26 "//mojo/public/dart/src/message_pipe.dart",
27 "//mojo/public/dart/src/proxy.dart", 27 "//mojo/public/dart/src/proxy.dart",
28 "//mojo/public/dart/src/struct.dart", 28 "//mojo/public/dart/src/struct.dart",
29 "//mojo/public/dart/src/stub.dart", 29 "//mojo/public/dart/src/stub.dart",
30 "//mojo/public/dart/src/timer_impl.dart", 30 "//mojo/public/dart/src/timer_impl.dart",
31 "//mojo/public/dart/src/timer_queue.dart", 31 "//mojo/public/dart/src/timer_queue.dart",
32 "//mojo/public/dart/src/types.dart", 32 "//mojo/public/dart/src/types.dart",
33 ] 33 ]
34 output = "$target_gen_dir/test_snapshot_gen.bin" 34 output = "$target_gen_dir/test_snapshot_gen.bin"
35 outputs = [ 35 outputs = [
36 output, 36 output,
37 ] 37 ]
38 38
39 gen_snapshot_dir = get_label_info(
40 "//dart/runtime/bin:gen_snapshot($host_toolchain)", "root_out_dir")
39 script = "//dart/runtime/tools/create_snapshot_bin.py" 41 script = "//dart/runtime/tools/create_snapshot_bin.py"
40 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") 42 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart")
41 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") 43 bindings_path = rebase_path("//mojo/public/dart/bindings.dart")
42 core_path = rebase_path("//mojo/public/dart/core.dart") 44 core_path = rebase_path("//mojo/public/dart/core.dart")
43 args = [ 45 args = [
44 "--executable", rebase_path("$root_out_dir/gen_snapshot"), 46 "--executable", rebase_path("$gen_snapshot_dir/gen_snapshot"),
45 "--package_root", rebase_path("$root_gen_dir"), 47 "--package_root", rebase_path("$root_gen_dir"),
46 "--script", rebase_path("test_snapshot.dart"), 48 "--script", rebase_path("test_snapshot.dart"),
47 "--output_bin", rebase_path(output, root_build_dir), 49 "--output_bin", rebase_path(output, root_build_dir),
48 "--target_os", os, 50 "--target_os", os,
49 "--url_mapping=dart:mojo_bindings,$bindings_path", 51 "--url_mapping=dart:mojo_bindings,$bindings_path",
50 "--url_mapping=dart:mojo_builtin,$builtin_path", 52 "--url_mapping=dart:mojo_builtin,$builtin_path",
51 "--url_mapping=dart:mojo_core,$core_path", 53 "--url_mapping=dart:mojo_core,$core_path",
52 ] 54 ]
53 } 55 }
54 56
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 "//mojo/public/interfaces/bindings/tests:test_interfaces", 135 "//mojo/public/interfaces/bindings/tests:test_interfaces",
134 "//testing/gtest", 136 "//testing/gtest",
135 ] 137 ]
136 } 138 }
137 139
138 mojom("dart_to_cpp_bindings") { 140 mojom("dart_to_cpp_bindings") {
139 sources = [ 141 sources = [
140 "dart_to_cpp.mojom", 142 "dart_to_cpp.mojom",
141 ] 143 ]
142 } 144 }
OLDNEW
« no previous file with comments | « mojo/dart/embedder/mojo_natives.cc ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698