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_version.gni") |
8 import("//remoting/remoting_enable.gni") | 9 import("//remoting/remoting_enable.gni") |
9 import("//remoting/remoting_options.gni") | |
10 import("//remoting/remoting_version.gni") | |
11 import("//testing/test.gni") | 10 import("//testing/test.gni") |
12 | 11 |
13 # TODO(nicholss) Move this and other defines to version.h.in | |
14 # Various remoting targets need this version definition. | 12 # Various remoting targets need this version definition. |
15 config("version") { | 13 config("version") { |
16 defines = [ "VERSION=$chrome_version_full" ] | 14 defines = [ "VERSION=$chrome_version_full" ] |
17 } | 15 } |
18 | 16 |
19 config("enable_webrtc_remoting_client") { | 17 config("enable_webrtc_remoting_client") { |
20 if (!is_official_build && !is_nacl) { | 18 if (!is_official_build && !is_nacl) { |
21 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] | 19 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] |
22 } | 20 } |
23 } | 21 } |
24 | 22 |
25 group("remoting_all") { | 23 group("remoting_all") { |
26 testonly = true | 24 testonly = true |
27 | 25 |
28 deps = [ | 26 deps = [ |
29 "//remoting:remoting_unittests", | 27 "//remoting:remoting_unittests", |
30 "//remoting/test:chromoting_test_driver", | 28 "//remoting/test:chromoting_test_driver", |
31 "//remoting/webapp:browser_test_resources", | 29 "//remoting/webapp:browser_test_resources", |
32 "//remoting/webapp:unit_tests", | 30 "//remoting/webapp:unit_tests", |
33 ] | 31 ] |
34 | 32 |
35 if ((is_linux && !is_chromeos) || is_win || is_mac) { | 33 # TODO(GYP): add is_mac |
| 34 if ((is_linux && !is_chromeos) || is_win) { |
36 deps += [ "//remoting/webapp" ] | 35 deps += [ "//remoting/webapp" ] |
37 } | 36 } |
38 | 37 |
39 if (is_win) { | 38 if (is_win) { |
40 deps += [ | 39 deps += [ |
41 "//remoting:remoting_breakpad_tester", | 40 "//remoting:remoting_breakpad_tester", |
42 "//remoting/host:remoting_console", | 41 "//remoting/host:remoting_console", |
43 "//remoting/host:remoting_desktop", | 42 "//remoting/host:remoting_desktop", |
44 ] | 43 ] |
45 | 44 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 # TODO(zijiehe): This should belong to //components/policy:test_support | 136 # TODO(zijiehe): This should belong to //components/policy:test_support |
138 "//components/prefs", | 137 "//components/prefs", |
139 ] | 138 ] |
140 } | 139 } |
141 | 140 |
142 if (enable_remoting_host) { | 141 if (enable_remoting_host) { |
143 deps += [ "//remoting/host:test_support" ] | 142 deps += [ "//remoting/host:test_support" ] |
144 } | 143 } |
145 } | 144 } |
146 | 145 |
147 test("remoting_unittests") { | 146 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. |
148 defines = [] | 147 if (!is_mac) { |
149 libs = [] | 148 test("remoting_unittests") { |
| 149 defines = [] |
| 150 libs = [] |
150 | 151 |
151 configs += [ | 152 configs += [ |
152 ":version", | 153 ":version", |
153 | 154 |
154 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 155 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
155 "//build/config/compiler:no_size_t_to_int_warning", | 156 "//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", | |
213 ] | 157 ] |
214 | 158 |
215 configs += [ ":version" ] | 159 data = [ |
| 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 ] |
216 | 164 |
217 deps = [ | 165 deps = [ |
218 ":test_support", | 166 ":test_support", |
219 "//base", | 167 "//base", |
220 "//base/test:run_all_unittests", | 168 "//google_apis", |
221 "//base/test:test_support", | 169 "//remoting/base:unit_tests", |
222 "//net:test_support", | 170 "//remoting/client:unit_tests", |
223 "//remoting/base", | 171 "//remoting/protocol:unit_tests", |
| 172 "//remoting/signaling:unit_tests", |
| 173 "//remoting/test:unit_tests", |
| 174 "//testing/gmock", |
224 "//testing/gtest", | 175 "//testing/gtest", |
225 "//third_party/libjingle", | 176 "//third_party/webrtc", |
226 "//third_party/webrtc/modules/desktop_capture", | |
227 ] | 177 ] |
228 | 178 |
| 179 if (enable_remoting_host) { |
| 180 deps += [ |
| 181 "//remoting/codec:unit_tests", |
| 182 "//remoting/host:unit_tests", |
| 183 "//ui/gfx", |
| 184 ] |
| 185 } |
| 186 |
229 if (enable_webrtc) { | 187 if (enable_webrtc) { |
230 deps += [ "//third_party/libjingle:libjingle_webrtc" ] | 188 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
231 } | 189 } |
| 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") { |
232 } | 237 } |
233 } | 238 } |
OLD | NEW |