Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Side by Side Diff: webrtc/sdk/BUILD.gn

Issue 3012443002: ObjC: Add support for injectable native audio and video codecs (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 if (rtc_build_libyuv) { 303 if (rtc_build_libyuv) {
304 deps += [ "$rtc_libyuv_dir" ] 304 deps += [ "$rtc_libyuv_dir" ]
305 public_deps = [ 305 public_deps = [
306 "$rtc_libyuv_dir", 306 "$rtc_libyuv_dir",
307 ] 307 ]
308 } 308 }
309 } 309 }
310 310
311 rtc_static_library("objc_peerconnectionfactory") { 311 rtc_static_library("objc_peerconnectionfactory") {
312 sources = [ 312 sources = [
313 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h ",
313 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", 314 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
314 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", 315 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
315 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", 316 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm",
316 ] 317 ]
317 318
318 public_configs = [ ":objc_common_config" ] 319 public_configs = [ ":objc_common_config" ]
319 320
320 if (!build_with_chromium && is_clang) { 321 if (!build_with_chromium && is_clang) {
321 # Suppress warnings from the Chromium Clang plugin 322 # Suppress warnings from the Chromium Clang plugin
322 # (bugs.webrtc.org/163). 323 # (bugs.webrtc.org/163).
323 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 324 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
324 } 325 }
325 326
326 deps = [ 327 deps = [
327 ":objc_common", 328 ":objc_common",
328 ":objc_corevideoframebuffer", 329 ":objc_corevideoframebuffer",
329 ":objc_peerconnectionfactory_base", 330 ":objc_peerconnectionfactory_base",
330 ":objc_video", 331 ":objc_video",
331 ":objc_videotoolbox", 332 ":objc_videotoolbox",
332 ":objc_videotracksource", 333 ":objc_videotracksource",
333 "../api:video_frame_api", 334 "../api:video_frame_api",
335 "../api/audio_codecs:builtin_audio_decoder_factory",
336 "../api/audio_codecs:builtin_audio_encoder_factory",
334 "../api/video_codecs:video_codecs_api", 337 "../api/video_codecs:video_codecs_api",
335 "../media:rtc_audio_video", 338 "../media:rtc_audio_video",
336 "../media:rtc_media_base", 339 "../media:rtc_media_base",
337 "../pc:create_pc_factory", 340 "../pc:create_pc_factory",
338 "../pc:peerconnection", 341 "../pc:peerconnection",
339 "../rtc_base:rtc_base", 342 "../rtc_base:rtc_base",
340 "../system_wrappers:field_trial_api", 343 "../system_wrappers:field_trial_api",
341 ] 344 ]
342 } 345 }
343 346
344 # Build the PeerConnectionFactory without audio/video support. 347 # Build the PeerConnectionFactory without audio/video support.
345 # This target depends on the objc_peeerconnectionfactory_base which still 348 # This target depends on the objc_peeerconnectionfactory_base which still
346 # includes some audio/video related objects such as RTCAudioSource because 349 # includes some audio/video related objects such as RTCAudioSource because
347 # these objects are just thin wrappers of native C++ interfaces required 350 # these objects are just thin wrappers of native C++ interfaces required
348 # when implementing webrtc::PeerConnectionFactoryInterface and 351 # when implementing webrtc::PeerConnectionFactoryInterface and
349 # webrtc::PeerConnectionInterface. 352 # webrtc::PeerConnectionInterface.
350 # The applications which only use WebRTC DataChannel can depend on this 353 # The applications which only use WebRTC DataChannel can depend on this
351 # target instead of rtc_sdk_objc. 354 # target instead of rtc_sdk_objc.
352 rtc_static_library("objc_peerconnectionfactory_no_media") { 355 rtc_static_library("objc_peerconnectionfactory_no_media") {
353 defines = [ "HAVE_NO_MEDIA" ] 356 defines = [ "HAVE_NO_MEDIA" ]
354 357
355 sources = [ 358 sources = [
359 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h ",
356 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", 360 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
357 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", 361 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
358 ] 362 ]
359 363
360 public_configs = [ ":objc_common_config" ] 364 public_configs = [ ":objc_common_config" ]
361 365
362 if (!build_with_chromium && is_clang) { 366 if (!build_with_chromium && is_clang) {
363 # Suppress warnings from the Chromium Clang plugin 367 # Suppress warnings from the Chromium Clang plugin
364 # (bugs.webrtc.org/163). 368 # (bugs.webrtc.org/163).
365 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 369 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 public_deps = [ 749 public_deps = [
746 "$rtc_libyuv_dir", 750 "$rtc_libyuv_dir",
747 ] 751 ]
748 } else { 752 } else {
749 # Need to add a directory normally exported by libyuv. 753 # Need to add a directory normally exported by libyuv.
750 include_dirs = [ "$rtc_libyuv_dir/include" ] 754 include_dirs = [ "$rtc_libyuv_dir/include" ]
751 } 755 }
752 } 756 }
753 } 757 }
754 } 758 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698