OLD | NEW |
1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 if (is_ios) { | 10 if (is_ios) { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 deps += [ "$rtc_libyuv_dir" ] | 256 deps += [ "$rtc_libyuv_dir" ] |
257 public_deps = [ | 257 public_deps = [ |
258 "$rtc_libyuv_dir", | 258 "$rtc_libyuv_dir", |
259 ] | 259 ] |
260 } | 260 } |
261 } | 261 } |
262 | 262 |
263 if (rtc_include_tests) { | 263 if (rtc_include_tests) { |
264 rtc_source_set("rtc_sdk_peerconnection_objc_unittests") { | 264 rtc_source_set("rtc_sdk_peerconnection_objc_unittests") { |
265 testonly = true | 265 testonly = true |
| 266 |
| 267 # Skip restricting visibility on mobile platforms since the tests on those |
| 268 # gets additional generated targets which would require many lines here to |
| 269 # cover (which would be confusing to read and hard to maintain). |
| 270 if (!is_android && !is_ios) { |
| 271 visibility = [ "//webrtc:rtc_unittests" ] |
| 272 } |
266 sources = [ | 273 sources = [ |
267 "objc/Framework/UnitTests/RTCConfigurationTest.mm", | 274 "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
268 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", | 275 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
269 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", | 276 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
270 "objc/Framework/UnitTests/RTCIceServerTest.mm", | 277 "objc/Framework/UnitTests/RTCIceServerTest.mm", |
271 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", | 278 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
272 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", | 279 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", |
273 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", | 280 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
274 "objc/Framework/UnitTests/avformatmappertests.mm", | 281 "objc/Framework/UnitTests/avformatmappertests.mm", |
275 ] | 282 ] |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 deps += [ "$rtc_libyuv_dir" ] | 444 deps += [ "$rtc_libyuv_dir" ] |
438 public_deps = [ | 445 public_deps = [ |
439 "$rtc_libyuv_dir", | 446 "$rtc_libyuv_dir", |
440 ] | 447 ] |
441 } else { | 448 } else { |
442 # Need to add a directory normally exported by libyuv. | 449 # Need to add a directory normally exported by libyuv. |
443 include_dirs = [ "$rtc_libyuv_dir/include" ] | 450 include_dirs = [ "$rtc_libyuv_dir/include" ] |
444 } | 451 } |
445 } | 452 } |
446 } | 453 } |
OLD | NEW |