OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 source_set("connect") { | 10 source_set("connect") { |
11 testonly = true | 11 testonly = true |
12 sources = [ | 12 sources = [ |
13 "connect_unittest.cc", | 13 "connect_unittest.cc", |
14 ] | 14 ] |
15 deps = [ | 15 deps = [ |
16 ":interfaces", | 16 ":interfaces", |
17 "//base", | 17 "//base", |
18 "//base/test:test_support", | 18 "//base/test:test_support", |
19 "//mojo/shell/public/cpp:shell_test_support", | 19 "//mojo/shell/public/cpp:shell_test_support", |
20 "//mojo/shell/public/cpp:sources", | 20 "//mojo/shell/public/cpp:sources", |
21 "//mojo/shell/public/interfaces", | 21 "//mojo/shell/public/interfaces", |
22 ] | 22 ] |
23 | 23 |
24 data_deps = [ | 24 data_deps = [ |
25 ":connect_test_app", | 25 ":connect_test_app", |
26 ":connect_test_class_app", | 26 ":connect_test_class_app", |
| 27 ":connect_test_singleton_app", |
27 ":connect_test_driver", | 28 ":connect_test_driver", |
28 ":connect_test_exe", | 29 ":connect_test_exe", |
29 ":connect_test_package", | 30 ":connect_test_package", |
30 ":manifest", | 31 ":manifest", |
31 ] | 32 ] |
32 } | 33 } |
33 | 34 |
34 mojom("interfaces") { | 35 mojom("interfaces") { |
35 sources = [ | 36 sources = [ |
36 "connect_test.mojom", | 37 "connect_test.mojom", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 "//mojo/shell/public/cpp:sources", | 117 "//mojo/shell/public/cpp:sources", |
117 "//mojo/shell/public/interfaces", | 118 "//mojo/shell/public/interfaces", |
118 ] | 119 ] |
119 } | 120 } |
120 | 121 |
121 mojo_application_manifest("connect_test_class_app_manifest") { | 122 mojo_application_manifest("connect_test_class_app_manifest") { |
122 application_name = "connect_test_class_app" | 123 application_name = "connect_test_class_app" |
123 source = "connect_test_class_app_manifest.json" | 124 source = "connect_test_class_app_manifest.json" |
124 } | 125 } |
125 | 126 |
| 127 mojo_native_application("connect_test_singleton_app") { |
| 128 testonly = true |
| 129 sources = [ |
| 130 "connect_test_singleton_app.cc", |
| 131 ] |
| 132 deps = [ |
| 133 ":connect_test_singleton_app_manifest", |
| 134 "//base", |
| 135 "//mojo/common:common_base", |
| 136 "//mojo/shell/public/cpp:sources", |
| 137 ] |
| 138 } |
| 139 |
| 140 mojo_application_manifest("connect_test_singleton_app_manifest") { |
| 141 application_name = "connect_test_singleton_app" |
| 142 source = "connect_test_singleton_app_manifest.json" |
| 143 } |
| 144 |
126 executable("connect_test_driver") { | 145 executable("connect_test_driver") { |
127 testonly = true | 146 testonly = true |
128 | 147 |
129 sources = [ | 148 sources = [ |
130 "connect_test_driver.cc", | 149 "connect_test_driver.cc", |
131 ] | 150 ] |
132 | 151 |
133 deps = [ | 152 deps = [ |
134 ":interfaces", | 153 ":interfaces", |
135 "//base", | 154 "//base", |
(...skipping 30 matching lines...) Expand all Loading... |
166 data_deps = [ | 185 data_deps = [ |
167 ":connect_test_exe_manifest", | 186 ":connect_test_exe_manifest", |
168 ] | 187 ] |
169 } | 188 } |
170 | 189 |
171 mojo_application_manifest("connect_test_exe_manifest") { | 190 mojo_application_manifest("connect_test_exe_manifest") { |
172 type = "exe" | 191 type = "exe" |
173 application_name = "connect_test_exe" | 192 application_name = "connect_test_exe" |
174 source = "connect_test_exe_manifest.json" | 193 source = "connect_test_exe_manifest.json" |
175 } | 194 } |
OLD | NEW |