OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build/util/version.gni") | 7 import("//build/util/version.gni") |
| 8 import("//remoting/remoting_enable.gni") |
| 9 import("//remoting/remoting_options.gni") |
8 import("//remoting/remoting_version.gni") | 10 import("//remoting/remoting_version.gni") |
9 import("//remoting/remoting_enable.gni") | |
10 import("//testing/test.gni") | 11 import("//testing/test.gni") |
11 | 12 |
12 # Various remoting targets need this version definition. | 13 # Various remoting targets need this version definition. |
13 config("version") { | 14 config("version") { |
14 defines = [ "VERSION=$chrome_version_full" ] | 15 defines = [ "VERSION=$chrome_version_full" ] |
15 } | 16 } |
16 | 17 |
17 config("enable_webrtc_remoting_client") { | 18 config("enable_webrtc_remoting_client") { |
18 if (!is_official_build && !is_nacl) { | 19 if (!is_official_build && !is_nacl) { |
19 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] | 20 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] |
20 } | 21 } |
21 } | 22 } |
22 | 23 |
23 group("remoting_all") { | 24 group("remoting_all") { |
24 testonly = true | 25 testonly = true |
25 | 26 |
26 deps = [ | 27 deps = [ |
27 "//remoting:remoting_unittests", | 28 "//remoting:remoting_unittests", |
28 "//remoting/test:chromoting_test_driver", | 29 "//remoting/test:chromoting_test_driver", |
29 "//remoting/webapp:browser_test_resources", | 30 "//remoting/webapp:browser_test_resources", |
30 "//remoting/webapp:unit_tests", | 31 "//remoting/webapp:unit_tests", |
31 ] | 32 ] |
32 | 33 |
33 # TODO(GYP): add is_mac | 34 if ((is_linux && !is_chromeos) || is_win || is_mac) { |
34 if ((is_linux && !is_chromeos) || is_win) { | |
35 deps += [ "//remoting/webapp" ] | 35 deps += [ "//remoting/webapp" ] |
36 } | 36 } |
37 | 37 |
38 if (is_win) { | 38 if (is_win) { |
39 deps += [ | 39 deps += [ |
40 "//remoting:remoting_breakpad_tester", | 40 "//remoting:remoting_breakpad_tester", |
41 "//remoting/host:remoting_console", | 41 "//remoting/host:remoting_console", |
42 "//remoting/host:remoting_desktop", | 42 "//remoting/host:remoting_desktop", |
43 ] | 43 ] |
44 | 44 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 # TODO(zijiehe): This should belong to //components/policy:test_support | 136 # TODO(zijiehe): This should belong to //components/policy:test_support |
137 "//components/prefs", | 137 "//components/prefs", |
138 ] | 138 ] |
139 } | 139 } |
140 | 140 |
141 if (enable_remoting_host) { | 141 if (enable_remoting_host) { |
142 deps += [ "//remoting/host:test_support" ] | 142 deps += [ "//remoting/host:test_support" ] |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. | 146 test("remoting_unittests") { |
147 if (!is_mac) { | 147 defines = [] |
148 test("remoting_unittests") { | 148 libs = [] |
149 defines = [] | |
150 libs = [] | |
151 | 149 |
152 configs += [ | 150 configs += [ |
153 ":version", | 151 ":version", |
154 | 152 |
155 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 153 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
156 "//build/config/compiler:no_size_t_to_int_warning", | 154 "//build/config/compiler:no_size_t_to_int_warning", |
| 155 ] |
| 156 |
| 157 data = [ |
| 158 "//net/data/ssl/certificates/ok_cert.pem", |
| 159 "//net/data/ssl/certificates/unittest.key.bin", |
| 160 "//net/data/ssl/certificates/unittest.selfsigned.der", |
| 161 ] |
| 162 |
| 163 deps = [ |
| 164 ":test_support", |
| 165 "//base", |
| 166 "//google_apis", |
| 167 "//remoting/base:unit_tests", |
| 168 "//remoting/client:unit_tests", |
| 169 "//remoting/protocol:unit_tests", |
| 170 "//remoting/signaling:unit_tests", |
| 171 "//remoting/test:unit_tests", |
| 172 "//testing/gmock", |
| 173 "//testing/gtest", |
| 174 "//third_party/webrtc", |
| 175 ] |
| 176 |
| 177 if (enable_remoting_host) { |
| 178 deps += [ |
| 179 "//remoting/codec:unit_tests", |
| 180 "//remoting/host:unit_tests", |
| 181 "//ui/gfx", |
| 182 ] |
| 183 } |
| 184 |
| 185 if (enable_webrtc) { |
| 186 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
| 187 } |
| 188 |
| 189 if (is_android) { |
| 190 deps += [ "//net/android:net_java" ] |
| 191 } |
| 192 |
| 193 if (is_win) { |
| 194 defines += [ "_ALT_NO_EXCEPTIONS" ] |
| 195 |
| 196 libs += [ |
| 197 "rpcrt4.lib", |
| 198 "wtsapi32.lib", |
| 199 ] |
| 200 } |
| 201 |
| 202 if (enable_configuration_policy) { |
| 203 deps += [ "//components/policy:policy_component_test_support" ] |
| 204 } |
| 205 } |
| 206 |
| 207 if (enable_remoting_host) { |
| 208 test("remoting_perftests") { |
| 209 sources = [ |
| 210 "test/codec_perftest.cc", |
| 211 "test/protocol_perftest.cc", |
157 ] | 212 ] |
158 | 213 |
159 data = [ | 214 configs += [ ":version" ] |
160 "//net/data/ssl/certificates/ok_cert.pem", | |
161 "//net/data/ssl/certificates/unittest.key.bin", | |
162 "//net/data/ssl/certificates/unittest.selfsigned.der", | |
163 ] | |
164 | 215 |
165 deps = [ | 216 deps = [ |
166 ":test_support", | 217 ":test_support", |
167 "//base", | 218 "//base", |
168 "//google_apis", | 219 "//base/test:run_all_unittests", |
169 "//remoting/base:unit_tests", | 220 "//base/test:test_support", |
170 "//remoting/client:unit_tests", | 221 "//net:test_support", |
171 "//remoting/protocol:unit_tests", | 222 "//remoting/base", |
172 "//remoting/signaling:unit_tests", | |
173 "//remoting/test:unit_tests", | |
174 "//testing/gmock", | |
175 "//testing/gtest", | 223 "//testing/gtest", |
176 "//third_party/webrtc", | 224 "//third_party/libjingle", |
| 225 "//third_party/webrtc/modules/desktop_capture", |
177 ] | 226 ] |
178 | 227 |
179 if (enable_remoting_host) { | |
180 deps += [ | |
181 "//remoting/codec:unit_tests", | |
182 "//remoting/host:unit_tests", | |
183 "//ui/gfx", | |
184 ] | |
185 } | |
186 | |
187 if (enable_webrtc) { | 228 if (enable_webrtc) { |
188 deps += [ "//third_party/libjingle:libjingle_webrtc" ] | 229 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
189 } | 230 } |
190 | |
191 if (is_android) { | |
192 deps += [ "//net/android:net_java" ] | |
193 } | |
194 | |
195 if (is_win) { | |
196 defines += [ "_ALT_NO_EXCEPTIONS" ] | |
197 | |
198 libs += [ | |
199 "rpcrt4.lib", | |
200 "wtsapi32.lib", | |
201 ] | |
202 } | |
203 | |
204 if (enable_configuration_policy) { | |
205 deps += [ "//components/policy:policy_component_test_support" ] | |
206 } | |
207 } | |
208 | |
209 if (enable_remoting_host) { | |
210 test("remoting_perftests") { | |
211 sources = [ | |
212 "test/codec_perftest.cc", | |
213 "test/protocol_perftest.cc", | |
214 ] | |
215 | |
216 configs += [ ":version" ] | |
217 | |
218 deps = [ | |
219 ":test_support", | |
220 "//base", | |
221 "//base/test:run_all_unittests", | |
222 "//base/test:test_support", | |
223 "//net:test_support", | |
224 "//remoting/base", | |
225 "//testing/gtest", | |
226 "//third_party/libjingle", | |
227 "//third_party/webrtc/modules/desktop_capture", | |
228 ] | |
229 | |
230 if (enable_webrtc) { | |
231 deps += [ "//third_party/libjingle:libjingle_webrtc" ] | |
232 } | |
233 } | |
234 } | |
235 } else { | |
236 group("remoting_unittests") { | |
237 } | 231 } |
238 } | 232 } |
OLD | NEW |