OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//mojo/public/mojo_application.gni") | |
6 import("//mojo/public/mojo_application_manifest.gni") | |
7 import("//mojo/public/tools/bindings/mojom.gni") | |
8 import("//testing/test.gni") | |
9 | |
10 source_set("connect") { | |
11 testonly = true | |
12 sources = [ | |
13 "connect_unittest.cc", | |
14 ] | |
15 deps = [ | |
16 ":interfaces", | |
17 "//base", | |
18 "//base/test:test_support", | |
19 "//mojo/shell/public/cpp:shell_test_support", | |
20 "//mojo/shell/public/cpp:sources", | |
21 "//mojo/shell/public/interfaces", | |
22 ] | |
23 | |
24 data_deps = [ | |
25 ":connect_test_app", | |
26 ":connect_test_class_app", | |
27 ":connect_test_singleton_app", | |
28 ":connect_test_driver", | |
29 ":connect_test_exe", | |
30 ":connect_test_package", | |
31 ":manifest", | |
32 ] | |
33 } | |
34 | |
35 mojom("interfaces") { | |
36 sources = [ | |
37 "connect_test.mojom", | |
38 ] | |
39 deps = [ | |
40 "//mojo/shell/public/interfaces", | |
41 ] | |
42 } | |
43 | |
44 mojo_application_manifest("manifest") { | |
45 application_name = "connect_unittests" | |
46 source = "connect_unittests_manifest.json" | |
47 } | |
48 | |
49 mojo_application_manifest("connect_test_a_manifest") { | |
50 application_name = "connect_test_a" | |
51 source = "connect_test_app_a_manifest.json" | |
52 } | |
53 | |
54 mojo_application_manifest("connect_test_b_manifest") { | |
55 application_name = "connect_test_b" | |
56 source = "connect_test_app_b_manifest.json" | |
57 } | |
58 | |
59 mojo_native_application("connect_test_package") { | |
60 testonly = true | |
61 sources = [ | |
62 "connect_test_package.cc", | |
63 ] | |
64 deps = [ | |
65 ":connect_test_package_manifest", | |
66 ":interfaces", | |
67 "//base", | |
68 "//mojo/common:common_base", | |
69 "//mojo/shell/public/cpp:sources", | |
70 "//mojo/shell/public/interfaces", | |
71 ] | |
72 } | |
73 | |
74 mojo_application_manifest("connect_test_package_manifest") { | |
75 application_name = "connect_test_package" | |
76 source = "connect_test_package_manifest.json" | |
77 deps = [ | |
78 ":connect_test_a_manifest", | |
79 ":connect_test_b_manifest", | |
80 ] | |
81 packaged_applications = [ | |
82 "connect_test_a", | |
83 "connect_test_b", | |
84 ] | |
85 } | |
86 | |
87 mojo_native_application("connect_test_app") { | |
88 testonly = true | |
89 sources = [ | |
90 "connect_test_app.cc", | |
91 ] | |
92 deps = [ | |
93 ":connect_test_app_manifest", | |
94 ":interfaces", | |
95 "//base", | |
96 "//mojo/common:common_base", | |
97 "//mojo/shell/public/cpp:sources", | |
98 "//mojo/shell/public/interfaces", | |
99 ] | |
100 } | |
101 | |
102 mojo_application_manifest("connect_test_app_manifest") { | |
103 application_name = "connect_test_app" | |
104 source = "connect_test_app_manifest.json" | |
105 } | |
106 | |
107 mojo_native_application("connect_test_class_app") { | |
108 testonly = true | |
109 sources = [ | |
110 "connect_test_class_app.cc", | |
111 ] | |
112 deps = [ | |
113 ":connect_test_class_app_manifest", | |
114 ":interfaces", | |
115 "//base", | |
116 "//mojo/common:common_base", | |
117 "//mojo/shell/public/cpp:sources", | |
118 "//mojo/shell/public/interfaces", | |
119 ] | |
120 } | |
121 | |
122 mojo_application_manifest("connect_test_class_app_manifest") { | |
123 application_name = "connect_test_class_app" | |
124 source = "connect_test_class_app_manifest.json" | |
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 | |
145 executable("connect_test_driver") { | |
146 testonly = true | |
147 | |
148 sources = [ | |
149 "connect_test_driver.cc", | |
150 ] | |
151 | |
152 deps = [ | |
153 ":interfaces", | |
154 "//base", | |
155 "//mojo/shell/public/cpp", | |
156 "//mojo/shell/runner/child:test_native_main", | |
157 "//mojo/shell/tests:util", | |
158 ] | |
159 | |
160 data_deps = [ | |
161 ":connect_test_driver_manifest", | |
162 ] | |
163 } | |
164 | |
165 mojo_application_manifest("connect_test_driver_manifest") { | |
166 type = "exe" | |
167 application_name = "connect_test_driver" | |
168 source = "connect_test_driver_manifest.json" | |
169 } | |
170 | |
171 executable("connect_test_exe") { | |
172 testonly = true | |
173 | |
174 sources = [ | |
175 "connect_test_exe.cc", | |
176 ] | |
177 | |
178 deps = [ | |
179 ":interfaces", | |
180 "//base", | |
181 "//mojo/shell/public/cpp", | |
182 "//mojo/shell/runner/child:test_native_main", | |
183 ] | |
184 | |
185 data_deps = [ | |
186 ":connect_test_exe_manifest", | |
187 ] | |
188 } | |
189 | |
190 mojo_application_manifest("connect_test_exe_manifest") { | |
191 type = "exe" | |
192 application_name = "connect_test_exe" | |
193 source = "connect_test_exe_manifest.json" | |
194 } | |
OLD | NEW |