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