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 "//services/shell/public/cpp:shell_test_support", |
20 "//mojo/shell/public/cpp:sources", | 20 "//services/shell/public/cpp:sources", |
21 "//mojo/shell/public/interfaces", | 21 "//services/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_singleton_app", |
28 ":connect_test_driver", | 28 ":connect_test_driver", |
29 ":connect_test_exe", | 29 ":connect_test_exe", |
30 ":connect_test_package", | 30 ":connect_test_package", |
31 ":manifest", | 31 ":manifest", |
32 ] | 32 ] |
33 } | 33 } |
34 | 34 |
35 mojom("interfaces") { | 35 mojom("interfaces") { |
36 sources = [ | 36 sources = [ |
37 "connect_test.mojom", | 37 "connect_test.mojom", |
38 ] | 38 ] |
39 deps = [ | 39 deps = [ |
40 "//mojo/shell/public/interfaces", | 40 "//services/shell/public/interfaces", |
41 ] | 41 ] |
42 } | 42 } |
43 | 43 |
44 mojo_application_manifest("manifest") { | 44 mojo_application_manifest("manifest") { |
45 application_name = "connect_unittests" | 45 application_name = "connect_unittests" |
46 source = "connect_unittests_manifest.json" | 46 source = "connect_unittests_manifest.json" |
47 } | 47 } |
48 | 48 |
49 mojo_application_manifest("connect_test_a_manifest") { | 49 mojo_application_manifest("connect_test_a_manifest") { |
50 application_name = "connect_test_a" | 50 application_name = "connect_test_a" |
51 source = "connect_test_app_a_manifest.json" | 51 source = "connect_test_app_a_manifest.json" |
52 } | 52 } |
53 | 53 |
54 mojo_application_manifest("connect_test_b_manifest") { | 54 mojo_application_manifest("connect_test_b_manifest") { |
55 application_name = "connect_test_b" | 55 application_name = "connect_test_b" |
56 source = "connect_test_app_b_manifest.json" | 56 source = "connect_test_app_b_manifest.json" |
57 } | 57 } |
58 | 58 |
59 mojo_native_application("connect_test_package") { | 59 mojo_native_application("connect_test_package") { |
60 testonly = true | 60 testonly = true |
61 sources = [ | 61 sources = [ |
62 "connect_test_package.cc", | 62 "connect_test_package.cc", |
63 ] | 63 ] |
64 deps = [ | 64 deps = [ |
65 ":connect_test_package_manifest", | 65 ":connect_test_package_manifest", |
66 ":interfaces", | 66 ":interfaces", |
67 "//base", | 67 "//base", |
68 "//mojo/common:common_base", | 68 "//mojo/common:common_base", |
69 "//mojo/shell/public/cpp:sources", | 69 "//services/shell/public/cpp:sources", |
70 "//mojo/shell/public/interfaces", | 70 "//services/shell/public/interfaces", |
71 ] | 71 ] |
72 } | 72 } |
73 | 73 |
74 mojo_application_manifest("connect_test_package_manifest") { | 74 mojo_application_manifest("connect_test_package_manifest") { |
75 application_name = "connect_test_package" | 75 application_name = "connect_test_package" |
76 source = "connect_test_package_manifest.json" | 76 source = "connect_test_package_manifest.json" |
77 deps = [ | 77 deps = [ |
78 ":connect_test_a_manifest", | 78 ":connect_test_a_manifest", |
79 ":connect_test_b_manifest", | 79 ":connect_test_b_manifest", |
80 ] | 80 ] |
81 packaged_applications = [ | 81 packaged_applications = [ |
82 "connect_test_a", | 82 "connect_test_a", |
83 "connect_test_b", | 83 "connect_test_b", |
84 ] | 84 ] |
85 } | 85 } |
86 | 86 |
87 mojo_native_application("connect_test_app") { | 87 mojo_native_application("connect_test_app") { |
88 testonly = true | 88 testonly = true |
89 sources = [ | 89 sources = [ |
90 "connect_test_app.cc", | 90 "connect_test_app.cc", |
91 ] | 91 ] |
92 deps = [ | 92 deps = [ |
93 ":connect_test_app_manifest", | 93 ":connect_test_app_manifest", |
94 ":interfaces", | 94 ":interfaces", |
95 "//base", | 95 "//base", |
96 "//mojo/common:common_base", | 96 "//mojo/common:common_base", |
97 "//mojo/shell/public/cpp:sources", | 97 "//services/shell/public/cpp:sources", |
98 "//mojo/shell/public/interfaces", | 98 "//services/shell/public/interfaces", |
99 ] | 99 ] |
100 } | 100 } |
101 | 101 |
102 mojo_application_manifest("connect_test_app_manifest") { | 102 mojo_application_manifest("connect_test_app_manifest") { |
103 application_name = "connect_test_app" | 103 application_name = "connect_test_app" |
104 source = "connect_test_app_manifest.json" | 104 source = "connect_test_app_manifest.json" |
105 } | 105 } |
106 | 106 |
107 mojo_native_application("connect_test_class_app") { | 107 mojo_native_application("connect_test_class_app") { |
108 testonly = true | 108 testonly = true |
109 sources = [ | 109 sources = [ |
110 "connect_test_class_app.cc", | 110 "connect_test_class_app.cc", |
111 ] | 111 ] |
112 deps = [ | 112 deps = [ |
113 ":connect_test_class_app_manifest", | 113 ":connect_test_class_app_manifest", |
114 ":interfaces", | 114 ":interfaces", |
115 "//base", | 115 "//base", |
116 "//mojo/common:common_base", | 116 "//mojo/common:common_base", |
117 "//mojo/shell/public/cpp:sources", | 117 "//services/shell/public/cpp:sources", |
118 "//mojo/shell/public/interfaces", | 118 "//services/shell/public/interfaces", |
119 ] | 119 ] |
120 } | 120 } |
121 | 121 |
122 mojo_application_manifest("connect_test_class_app_manifest") { | 122 mojo_application_manifest("connect_test_class_app_manifest") { |
123 application_name = "connect_test_class_app" | 123 application_name = "connect_test_class_app" |
124 source = "connect_test_class_app_manifest.json" | 124 source = "connect_test_class_app_manifest.json" |
125 } | 125 } |
126 | 126 |
127 mojo_native_application("connect_test_singleton_app") { | 127 mojo_native_application("connect_test_singleton_app") { |
128 testonly = true | 128 testonly = true |
129 sources = [ | 129 sources = [ |
130 "connect_test_singleton_app.cc", | 130 "connect_test_singleton_app.cc", |
131 ] | 131 ] |
132 deps = [ | 132 deps = [ |
133 ":connect_test_singleton_app_manifest", | 133 ":connect_test_singleton_app_manifest", |
134 "//base", | 134 "//base", |
135 "//mojo/common:common_base", | 135 "//mojo/common:common_base", |
136 "//mojo/shell/public/cpp:sources", | 136 "//services/shell/public/cpp:sources", |
137 ] | 137 ] |
138 } | 138 } |
139 | 139 |
140 mojo_application_manifest("connect_test_singleton_app_manifest") { | 140 mojo_application_manifest("connect_test_singleton_app_manifest") { |
141 application_name = "connect_test_singleton_app" | 141 application_name = "connect_test_singleton_app" |
142 source = "connect_test_singleton_app_manifest.json" | 142 source = "connect_test_singleton_app_manifest.json" |
143 } | 143 } |
144 | 144 |
145 executable("connect_test_driver") { | 145 executable("connect_test_driver") { |
146 testonly = true | 146 testonly = true |
147 | 147 |
148 sources = [ | 148 sources = [ |
149 "connect_test_driver.cc", | 149 "connect_test_driver.cc", |
150 ] | 150 ] |
151 | 151 |
152 deps = [ | 152 deps = [ |
153 ":interfaces", | 153 ":interfaces", |
154 "//base", | 154 "//base", |
155 "//mojo/shell/public/cpp", | 155 "//services/shell/public/cpp", |
156 "//mojo/shell/runner/child:test_native_main", | 156 "//services/shell/runner/child:test_native_main", |
157 "//mojo/shell/tests:util", | 157 "//services/shell/tests:util", |
158 ] | 158 ] |
159 | 159 |
160 data_deps = [ | 160 data_deps = [ |
161 ":connect_test_driver_manifest", | 161 ":connect_test_driver_manifest", |
162 ] | 162 ] |
163 } | 163 } |
164 | 164 |
165 mojo_application_manifest("connect_test_driver_manifest") { | 165 mojo_application_manifest("connect_test_driver_manifest") { |
166 type = "exe" | 166 type = "exe" |
167 application_name = "connect_test_driver" | 167 application_name = "connect_test_driver" |
168 source = "connect_test_driver_manifest.json" | 168 source = "connect_test_driver_manifest.json" |
169 } | 169 } |
170 | 170 |
171 executable("connect_test_exe") { | 171 executable("connect_test_exe") { |
172 testonly = true | 172 testonly = true |
173 | 173 |
174 sources = [ | 174 sources = [ |
175 "connect_test_exe.cc", | 175 "connect_test_exe.cc", |
176 ] | 176 ] |
177 | 177 |
178 deps = [ | 178 deps = [ |
179 ":interfaces", | 179 ":interfaces", |
180 "//base", | 180 "//base", |
181 "//mojo/shell/public/cpp", | 181 "//services/shell/public/cpp", |
182 "//mojo/shell/runner/child:test_native_main", | 182 "//services/shell/runner/child:test_native_main", |
183 ] | 183 ] |
184 | 184 |
185 data_deps = [ | 185 data_deps = [ |
186 ":connect_test_exe_manifest", | 186 ":connect_test_exe_manifest", |
187 ] | 187 ] |
188 } | 188 } |
189 | 189 |
190 mojo_application_manifest("connect_test_exe_manifest") { | 190 mojo_application_manifest("connect_test_exe_manifest") { |
191 type = "exe" | 191 type = "exe" |
192 application_name = "connect_test_exe" | 192 application_name = "connect_test_exe" |
193 source = "connect_test_exe_manifest.json" | 193 source = "connect_test_exe_manifest.json" |
194 } | 194 } |
OLD | NEW |