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("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 if (is_ios) { | 10 if (is_ios) { |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 ] | 223 ] |
224 | 224 |
225 if (rtc_build_libyuv) { | 225 if (rtc_build_libyuv) { |
226 deps += [ "$rtc_libyuv_dir" ] | 226 deps += [ "$rtc_libyuv_dir" ] |
227 public_deps = [ | 227 public_deps = [ |
228 "$rtc_libyuv_dir", | 228 "$rtc_libyuv_dir", |
229 ] | 229 ] |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
| 233 if (rtc_include_tests) { |
| 234 rtc_source_set("rtc_sdk_peerconnection_objc_unittests") { |
| 235 testonly = true |
| 236 sources = [ |
| 237 "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
| 238 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
| 239 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
| 240 "objc/Framework/UnitTests/RTCIceServerTest.mm", |
| 241 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
| 242 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
| 243 "objc/Framework/UnitTests/avformatmappertests.mm", |
| 244 ] |
| 245 deps = [ |
| 246 ":rtc_sdk_peerconnection_objc", |
| 247 "//third_party/ocmock", |
| 248 "//webrtc/system_wrappers:system_wrappers_default", |
| 249 ] |
| 250 |
| 251 # TODO(tkchin): Cleanup this warning. |
| 252 cflags = [ "-Wno-objc-property-no-attribute" ] |
| 253 |
| 254 # |-ObjC| flag needed to make sure category method implementations |
| 255 # are included: |
| 256 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 257 ldflags = [ "-ObjC" ] |
| 258 |
| 259 defines = [ "GTEST_RELATIVE_PATH" ] |
| 260 if (!build_with_chromium && is_clang) { |
| 261 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 262 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 263 } |
| 264 } |
| 265 } |
| 266 |
233 if (is_ios) { | 267 if (is_ios) { |
234 ios_framework_bundle("rtc_sdk_framework_objc") { | 268 ios_framework_bundle("rtc_sdk_framework_objc") { |
235 info_plist = "objc/Framework/Info.plist" | 269 info_plist = "objc/Framework/Info.plist" |
236 output_name = "WebRTC" | 270 output_name = "WebRTC" |
237 | 271 |
238 common_objc_headers = [ | 272 common_objc_headers = [ |
239 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 273 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
240 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 274 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
241 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 275 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
242 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 276 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 deps += [ "$rtc_libyuv_dir" ] | 392 deps += [ "$rtc_libyuv_dir" ] |
359 public_deps = [ | 393 public_deps = [ |
360 "$rtc_libyuv_dir", | 394 "$rtc_libyuv_dir", |
361 ] | 395 ] |
362 } else { | 396 } else { |
363 # Need to add a directory normally exported by libyuv. | 397 # Need to add a directory normally exported by libyuv. |
364 include_dirs = [ "$rtc_libyuv_dir/include" ] | 398 include_dirs = [ "$rtc_libyuv_dir/include" ] |
365 } | 399 } |
366 } | 400 } |
367 } | 401 } |
OLD | NEW |