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 # These go into the generated source directory for embedder tests. | 8 # These go into the generated source directory for embedder tests. |
9 copy("copy_dart_mojo_sdk") { | 9 copy("copy_dart_mojo_sdk") { |
10 sources = [ | 10 sources = [ |
(...skipping 13 matching lines...) Expand all Loading... |
24 "//mojo/public/dart/src/message.dart", | 24 "//mojo/public/dart/src/message.dart", |
25 "//mojo/public/dart/src/message_pipe.dart", | 25 "//mojo/public/dart/src/message_pipe.dart", |
26 "//mojo/public/dart/src/natives.dart", | 26 "//mojo/public/dart/src/natives.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_queue.dart", | 30 "//mojo/public/dart/src/timer_queue.dart", |
31 "//mojo/public/dart/src/types.dart", | 31 "//mojo/public/dart/src/types.dart", |
32 ] | 32 ] |
33 outputs = [ | 33 outputs = [ |
34 "{{source_gen_dir}}/{{source_file_part}}", | 34 "$root_gen_dir/dart-gen/{{source_root_relative_dir}}/{{source_file_part}}", |
35 ] | 35 ] |
36 } | 36 } |
37 | 37 |
38 source_set("dart_controller_for_test") { | 38 source_set("dart_controller_for_test") { |
39 testonly = true | 39 testonly = true |
40 sources = [ | 40 sources = [ |
41 "$root_gen_dir/dart_snapshot.cc", | 41 "$root_gen_dir/dart_snapshot.cc", |
42 ] | 42 ] |
43 | 43 |
44 deps = [ | 44 deps = [ |
(...skipping 25 matching lines...) Expand all Loading... |
70 "//mojo/environment:chromium", | 70 "//mojo/environment:chromium", |
71 "//testing/gtest", | 71 "//testing/gtest", |
72 ] | 72 ] |
73 } | 73 } |
74 | 74 |
75 copy("expect") { | 75 copy("expect") { |
76 sources = [ | 76 sources = [ |
77 "//mojo/dart/testing/expect.dart", | 77 "//mojo/dart/testing/expect.dart", |
78 ] | 78 ] |
79 outputs = [ | 79 outputs = [ |
80 "{{source_gen_dir}}/{{source_file_part}}", | 80 "$root_gen_dir/dart-gen/{{source_root_relative_dir}}/{{source_file_part}}", |
81 ] | 81 ] |
82 } | 82 } |
83 | 83 |
84 copy("validation_test_input_parser") { | 84 copy("validation_test_input_parser") { |
85 sources = [ | 85 sources = [ |
86 "//mojo/dart/testing/validation_test_input_parser.dart", | 86 "//mojo/dart/testing/validation_test_input_parser.dart", |
87 ] | 87 ] |
88 outputs = [ | 88 outputs = [ |
89 "{{source_gen_dir}}/{{source_file_part}}", | 89 "$root_gen_dir/dart-gen/{{source_root_relative_dir}}/{{source_file_part}}", |
90 ] | 90 ] |
91 } | 91 } |
92 | 92 |
93 copy("async_helper") { | 93 copy("async_helper") { |
94 sources = [ | 94 sources = [ |
95 "//mojo/dart/testing/async_helper.dart", | 95 "//mojo/dart/testing/async_helper.dart", |
96 ] | 96 ] |
97 outputs = [ | 97 outputs = [ |
98 "{{source_gen_dir}}/{{source_file_part}}", | 98 "$root_gen_dir/dart-gen/{{source_root_relative_dir}}/{{source_file_part}}", |
99 ] | 99 ] |
100 } | 100 } |
101 | 101 |
102 source_set("dart_to_cpp_unittests") { | 102 source_set("dart_to_cpp_unittests") { |
103 testonly = true | 103 testonly = true |
104 sources = [ | 104 sources = [ |
105 "dart_to_cpp_tests.cc", | 105 "dart_to_cpp_tests.cc", |
106 ] | 106 ] |
107 deps = [ | 107 deps = [ |
108 ":dart_controller_for_test", | 108 ":dart_controller_for_test", |
109 ":dart_to_cpp_bindings", | 109 ":dart_to_cpp_bindings", |
110 "//base", | 110 "//base", |
111 "//crypto", | 111 "//crypto", |
112 "//mojo/dart/embedder:dart_controller_no_snapshot", | 112 "//mojo/dart/embedder:dart_controller_no_snapshot", |
113 "//mojo/edk/test:test_support", | 113 "//mojo/edk/test:test_support", |
114 "//mojo/public/cpp/bindings", | 114 "//mojo/public/cpp/bindings", |
115 "//mojo/public/cpp/system", | 115 "//mojo/public/cpp/system", |
116 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 116 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
117 "//testing/gtest", | 117 "//testing/gtest", |
118 ] | 118 ] |
119 } | 119 } |
120 | 120 |
121 mojom("dart_to_cpp_bindings") { | 121 mojom("dart_to_cpp_bindings") { |
122 sources = [ | 122 sources = [ |
123 "dart_to_cpp.mojom", | 123 "dart_to_cpp.mojom", |
124 ] | 124 ] |
125 } | 125 } |
OLD | NEW |