| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 "CoreMedia.framework", | 116 "CoreMedia.framework", |
| 117 "CoreVideo.framework", | 117 "CoreVideo.framework", |
| 118 "OpenGL.framework", | 118 "OpenGL.framework", |
| 119 ] | 119 ] |
| 120 } | 120 } |
| 121 | 121 |
| 122 deps = [ | 122 deps = [ |
| 123 ":objc_common", | 123 ":objc_common", |
| 124 ":objc_corevideoframebuffer", | 124 ":objc_corevideoframebuffer", |
| 125 ":objc_videotoolbox", | 125 ":objc_videotoolbox", |
| 126 "//webrtc/api:libjingle_peerconnection_api", | 126 "../api:libjingle_peerconnection_api", |
| 127 "//webrtc/base:rtc_base", | 127 "../base:rtc_base", |
| 128 "//webrtc/common_video", | 128 "../common_video", |
| 129 "//webrtc/media:rtc_media_base", | 129 "../media:rtc_media_base", |
| 130 ] | 130 ] |
| 131 | 131 |
| 132 configs += [ "..:common_objc" ] | 132 configs += [ "..:common_objc" ] |
| 133 if (!build_with_chromium && is_clang) { | 133 if (!build_with_chromium && is_clang) { |
| 134 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 134 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 135 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 135 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 | 138 |
| 139 rtc_static_library("objc_ui") { | 139 rtc_static_library("objc_ui") { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | 181 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 182 ] | 182 ] |
| 183 } | 183 } |
| 184 libs = [ | 184 libs = [ |
| 185 "CoreVideo.framework", | 185 "CoreVideo.framework", |
| 186 "Metal.framework", | 186 "Metal.framework", |
| 187 "MetalKit.framework", | 187 "MetalKit.framework", |
| 188 ] | 188 ] |
| 189 deps = [ | 189 deps = [ |
| 190 ":objc_video", | 190 ":objc_video", |
| 191 "//webrtc/api:video_frame_api", | 191 "../api:video_frame_api", |
| 192 "//webrtc/base:rtc_base_approved", | 192 "../base:rtc_base_approved", |
| 193 ] | 193 ] |
| 194 configs += [ "..:common_objc" ] | 194 configs += [ "..:common_objc" ] |
| 195 public_configs = [ ":objc_common_config" ] | 195 public_configs = [ ":objc_common_config" ] |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| 199 rtc_static_library("objc_peerconnection") { | 199 rtc_static_library("objc_peerconnection") { |
| 200 sources = [ | 200 sources = [ |
| 201 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Private.
h", | 201 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Private.
h", |
| 202 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", | 202 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 if (!build_with_chromium && is_clang) { | 304 if (!build_with_chromium && is_clang) { |
| 305 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 305 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 306 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 306 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 307 } | 307 } |
| 308 | 308 |
| 309 deps = [ | 309 deps = [ |
| 310 ":objc_common", | 310 ":objc_common", |
| 311 ":objc_corevideoframebuffer", | 311 ":objc_corevideoframebuffer", |
| 312 ":objc_video", | 312 ":objc_video", |
| 313 "../api:video_frame_api", |
| 314 "../base:rtc_base", |
| 315 "../media:rtc_media_base", |
| 313 "../pc:libjingle_peerconnection", | 316 "../pc:libjingle_peerconnection", |
| 314 "//webrtc/api:video_frame_api", | |
| 315 "//webrtc/base:rtc_base", | |
| 316 "//webrtc/media:rtc_media_base", | |
| 317 ] | 317 ] |
| 318 | 318 |
| 319 if (rtc_use_metal_rendering) { | 319 if (rtc_use_metal_rendering) { |
| 320 deps += [ ":objc_metal" ] | 320 deps += [ ":objc_metal" ] |
| 321 } | 321 } |
| 322 | 322 |
| 323 if (rtc_build_libyuv) { | 323 if (rtc_build_libyuv) { |
| 324 deps += [ "$rtc_libyuv_dir" ] | 324 deps += [ "$rtc_libyuv_dir" ] |
| 325 public_deps = [ | 325 public_deps = [ |
| 326 "$rtc_libyuv_dir", | 326 "$rtc_libyuv_dir", |
| 327 ] | 327 ] |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 | 330 |
| 331 if (rtc_include_tests) { | 331 if (rtc_include_tests) { |
| 332 rtc_source_set("objc_sdk_unittests") { | 332 rtc_source_set("objc_sdk_unittests") { |
| 333 testonly = true | 333 testonly = true |
| 334 | 334 |
| 335 # Skip restricting visibility on mobile platforms since the tests on those | 335 # Skip restricting visibility on mobile platforms since the tests on those |
| 336 # gets additional generated targets which would require many lines here to | 336 # gets additional generated targets which would require many lines here to |
| 337 # cover (which would be confusing to read and hard to maintain). | 337 # cover (which would be confusing to read and hard to maintain). |
| 338 if (!is_android && !is_ios) { | 338 if (!is_android && !is_ios) { |
| 339 visibility = [ "//webrtc:rtc_unittests" ] | 339 visibility = [ "..:rtc_unittests" ] |
| 340 } | 340 } |
| 341 sources = [ | 341 sources = [ |
| 342 "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm", | 342 "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm", |
| 343 "objc/Framework/UnitTests/RTCConfigurationTest.mm", | 343 "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
| 344 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", | 344 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
| 345 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", | 345 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
| 346 "objc/Framework/UnitTests/RTCIceServerTest.mm", | 346 "objc/Framework/UnitTests/RTCIceServerTest.mm", |
| 347 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", | 347 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
| 348 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", | 348 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", |
| 349 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", | 349 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
| 350 "objc/Framework/UnitTests/avformatmappertests.mm", | 350 "objc/Framework/UnitTests/avformatmappertests.mm", |
| 351 ] | 351 ] |
| 352 | 352 |
| 353 # |-ObjC| flag needed to make sure category method implementations | 353 # |-ObjC| flag needed to make sure category method implementations |
| 354 # are included: | 354 # are included: |
| 355 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | 355 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 356 ldflags = [ "-ObjC" ] | 356 ldflags = [ "-ObjC" ] |
| 357 | 357 |
| 358 defines = [ "GTEST_RELATIVE_PATH" ] | 358 defines = [ "GTEST_RELATIVE_PATH" ] |
| 359 deps = [ | 359 deps = [ |
| 360 ":objc_peerconnection", | 360 ":objc_peerconnection", |
| 361 "..//system_wrappers:system_wrappers_default", | 361 "..//system_wrappers:system_wrappers_default", |
| 362 "../base:rtc_base_tests_utils", | 362 "../base:rtc_base_tests_utils", |
| 363 "../system_wrappers:system_wrappers_default", |
| 363 "//third_party/ocmock", | 364 "//third_party/ocmock", |
| 364 "//webrtc/system_wrappers:system_wrappers_default", | |
| 365 ] | 365 ] |
| 366 | 366 |
| 367 # RTCMTLVideoView not supported on 32-bit arm | 367 # RTCMTLVideoView not supported on 32-bit arm |
| 368 if (is_ios && current_cpu != "arm") { | 368 if (is_ios && current_cpu != "arm") { |
| 369 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] | 369 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] |
| 370 if (current_cpu != "arm64") { | 370 if (current_cpu != "arm64") { |
| 371 # Only include this file on simulator, as it's already | 371 # Only include this file on simulator, as it's already |
| 372 # included in device builds. | 372 # included in device builds. |
| 373 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] | 373 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] |
| 374 libs = [ "CoreVideo.framework" ] | 374 libs = [ "CoreVideo.framework" ] |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 configs -= [ "//build/config/clang:find_bad_constructs" ] | 463 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 464 } | 464 } |
| 465 } | 465 } |
| 466 } | 466 } |
| 467 | 467 |
| 468 rtc_static_library("rtc_sdk_objc") { | 468 rtc_static_library("rtc_sdk_objc") { |
| 469 complete_static_lib = true | 469 complete_static_lib = true |
| 470 deps = [ | 470 deps = [ |
| 471 ":objc_peerconnection", | 471 ":objc_peerconnection", |
| 472 ":objc_ui", | 472 ":objc_ui", |
| 473 "//webrtc/system_wrappers:field_trial_default", | 473 "../system_wrappers:field_trial_default", |
| 474 "//webrtc/system_wrappers:metrics_default", | 474 "../system_wrappers:metrics_default", |
| 475 ] | 475 ] |
| 476 } | 476 } |
| 477 | 477 |
| 478 rtc_static_library("objc_corevideoframebuffer") { | 478 rtc_static_library("objc_corevideoframebuffer") { |
| 479 sources = [ | 479 sources = [ |
| 480 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", | 480 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", |
| 481 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", | 481 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", |
| 482 | 482 |
| 483 # TODO(mbonadei): remove this backward compatibility header | 483 # TODO(mbonadei): remove this backward compatibility header |
| 484 "objc/Framework/Classes/corevideo_frame_buffer.h", | 484 "objc/Framework/Classes/corevideo_frame_buffer.h", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 502 "objc/Framework/Classes/VideoToolbox/decoder.cc", | 502 "objc/Framework/Classes/VideoToolbox/decoder.cc", |
| 503 "objc/Framework/Classes/VideoToolbox/decoder.h", | 503 "objc/Framework/Classes/VideoToolbox/decoder.h", |
| 504 "objc/Framework/Classes/VideoToolbox/encoder.h", | 504 "objc/Framework/Classes/VideoToolbox/encoder.h", |
| 505 "objc/Framework/Classes/VideoToolbox/encoder.mm", | 505 "objc/Framework/Classes/VideoToolbox/encoder.mm", |
| 506 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", | 506 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", |
| 507 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", | 507 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", |
| 508 "objc/Framework/Classes/VideoToolbox/videocodecfactory.cc", | 508 "objc/Framework/Classes/VideoToolbox/videocodecfactory.cc", |
| 509 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", | 509 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", |
| 510 ] | 510 ] |
| 511 | 511 |
| 512 configs += [ "//webrtc:common_objc" ] | 512 configs += [ "..:common_objc" ] |
| 513 | 513 |
| 514 deps = [ | 514 deps = [ |
| 515 ":objc_common", | 515 ":objc_common", |
| 516 ":objc_corevideoframebuffer", | 516 ":objc_corevideoframebuffer", |
| 517 "../base:rtc_base_approved", | 517 "../base:rtc_base_approved", |
| 518 "//webrtc/common_video", | 518 "../common_video", |
| 519 "//webrtc/media:rtc_media", | 519 "../media:rtc_media", |
| 520 "//webrtc/media:rtc_media_base", | 520 "../media:rtc_media_base", |
| 521 "//webrtc/modules:module_api", | 521 "../modules:module_api", |
| 522 "//webrtc/modules/video_coding:video_coding_utility", | 522 "../modules/video_coding:video_coding_utility", |
| 523 "//webrtc/modules/video_coding:webrtc_h264", | 523 "../modules/video_coding:webrtc_h264", |
| 524 "//webrtc/system_wrappers", | 524 "../system_wrappers", |
| 525 ] | 525 ] |
| 526 | 526 |
| 527 libs = [ | 527 libs = [ |
| 528 "CoreFoundation.framework", | 528 "CoreFoundation.framework", |
| 529 "CoreMedia.framework", | 529 "CoreMedia.framework", |
| 530 "CoreVideo.framework", | 530 "CoreVideo.framework", |
| 531 "VideoToolbox.framework", | 531 "VideoToolbox.framework", |
| 532 ] | 532 ] |
| 533 | 533 |
| 534 if (!build_with_chromium && is_clang) { | 534 if (!build_with_chromium && is_clang) { |
| 535 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 535 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 536 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 536 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 537 } | 537 } |
| 538 | 538 |
| 539 if (rtc_build_libyuv) { | 539 if (rtc_build_libyuv) { |
| 540 deps += [ "$rtc_libyuv_dir" ] | 540 deps += [ "$rtc_libyuv_dir" ] |
| 541 public_deps = [ | 541 public_deps = [ |
| 542 "$rtc_libyuv_dir", | 542 "$rtc_libyuv_dir", |
| 543 ] | 543 ] |
| 544 } else { | 544 } else { |
| 545 # Need to add a directory normally exported by libyuv. | 545 # Need to add a directory normally exported by libyuv. |
| 546 include_dirs = [ "$rtc_libyuv_dir/include" ] | 546 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 547 } | 547 } |
| 548 } | 548 } |
| 549 } | 549 } |
| OLD | NEW |