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

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

Issue 2855023003: Move RTCAudioSession* files modules/audio_device/ -> sdk/Framework. (Closed)
Patch Set: Address comments Created 3 years, 6 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 | « webrtc/modules/audio_device/ios/voice_processing_audio_unit.mm ('k') | webrtc/sdk/objc/DEPS » ('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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 if (!build_with_chromium) { 74 if (!build_with_chromium) {
75 sources += [ 75 sources += [
76 "objc/Framework/Classes/Common/RTCFileLogger.mm", 76 "objc/Framework/Classes/Common/RTCFileLogger.mm",
77 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", 77 "objc/Framework/Headers/WebRTC/RTCFileLogger.h",
78 ] 78 ]
79 } 79 }
80 } 80 }
81 81
82 if (!build_with_chromium) { 82 if (!build_with_chromium) {
83 rtc_static_library("objc_audio") {
84 sources = [
85 "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm",
86 "objc/Framework/Classes/Audio/RTCAudioSession+Private.h",
87 "objc/Framework/Classes/Audio/RTCAudioSession.mm",
88 "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m",
89 "objc/Framework/Headers/WebRTC/RTCAudioSession.h",
90 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
91 ]
92 configs += [ "..:common_objc" ]
93
94 deps = [
95 ":objc_common",
96 "../base:rtc_base_approved",
97 ]
98
99 if (is_clang) {
100 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
101 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
102 }
103 }
83 rtc_static_library("objc_video") { 104 rtc_static_library("objc_video") {
84 sources = [ 105 sources = [
85 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", 106 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h",
86 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", 107 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm",
87 "objc/Framework/Classes/Video/RTCDefaultShader.h", 108 "objc/Framework/Classes/Video/RTCDefaultShader.h",
88 "objc/Framework/Classes/Video/RTCDefaultShader.mm", 109 "objc/Framework/Classes/Video/RTCDefaultShader.mm",
89 "objc/Framework/Classes/Video/RTCI420TextureCache.h", 110 "objc/Framework/Classes/Video/RTCI420TextureCache.h",
90 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", 111 "objc/Framework/Classes/Video/RTCI420TextureCache.mm",
91 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", 112 "objc/Framework/Classes/Video/RTCOpenGLDefines.h",
92 "objc/Framework/Classes/Video/RTCShader.h", 113 "objc/Framework/Classes/Video/RTCShader.h",
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 379
359 defines = [ "GTEST_RELATIVE_PATH" ] 380 defines = [ "GTEST_RELATIVE_PATH" ]
360 deps = [ 381 deps = [
361 ":objc_peerconnection", 382 ":objc_peerconnection",
362 "..//system_wrappers:system_wrappers_default", 383 "..//system_wrappers:system_wrappers_default",
363 "../base:rtc_base_tests_utils", 384 "../base:rtc_base_tests_utils",
364 "../system_wrappers:system_wrappers_default", 385 "../system_wrappers:system_wrappers_default",
365 "//third_party/ocmock", 386 "//third_party/ocmock",
366 ] 387 ]
367 388
368 # RTCMTLVideoView not supported on 32-bit arm 389 if (is_ios) {
369 if (is_ios && current_cpu != "arm") { 390 sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ]
370 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] 391
371 if (current_cpu != "arm64") { 392 # RTCMTLVideoView not supported on 32-bit arm
372 # Only include this file on simulator, as it's already 393 if (current_cpu != "arm") {
373 # included in device builds. 394 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ]
374 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] 395 if (current_cpu != "arm64") {
375 libs = [ "CoreVideo.framework" ] 396 # Only include this file on simulator, as it's already
397 # included in device builds.
398 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ]
399 libs = [ "CoreVideo.framework" ]
400 }
376 } 401 }
377 } 402 }
378
379 if (!build_with_chromium && is_clang) { 403 if (!build_with_chromium && is_clang) {
380 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/16 3). 404 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/16 3).
381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 405 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
382 } 406 }
383 } 407 }
384 } 408 }
385 409
386 if (is_ios) { 410 if (is_ios) {
387 ios_framework_bundle("objc_framework") { 411 ios_framework_bundle("objc_framework") {
388 info_plist = "objc/Framework/Info.plist" 412 info_plist = "objc/Framework/Info.plist"
389 output_name = "WebRTC" 413 output_name = "WebRTC"
390 414
391 common_objc_headers = [ 415 common_objc_headers = [
416 "objc/Framework/Headers/WebRTC/RTCAudioSession.h",
417 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
392 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 418 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
393 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 419 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
394 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 420 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
395 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", 421 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
396 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", 422 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
397 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 423 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
398 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 424 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
399 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 425 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
400 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", 426 "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
401 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", 427 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] 468 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
443 } 469 }
444 470
445 ldflags = [ 471 ldflags = [
446 "-all_load", 472 "-all_load",
447 "-install_name", 473 "-install_name",
448 "@rpath/$output_name.framework/$output_name", 474 "@rpath/$output_name.framework/$output_name",
449 ] 475 ]
450 476
451 deps = [ 477 deps = [
478 ":objc_audio",
452 ":objc_peerconnection", 479 ":objc_peerconnection",
453 ":objc_ui", 480 ":objc_ui",
454 "../base:rtc_base_approved", 481 "../base:rtc_base_approved",
455 "../system_wrappers:field_trial_default", 482 "../system_wrappers:field_trial_default",
456 "../system_wrappers:metrics_default", 483 "../system_wrappers:metrics_default",
457 ] 484 ]
458 485
459 libs = [ 486 libs = [
460 "AVFoundation.framework", 487 "AVFoundation.framework",
461 "CoreGraphics.framework", 488 "CoreGraphics.framework",
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 public_deps = [ 577 public_deps = [
551 "$rtc_libyuv_dir", 578 "$rtc_libyuv_dir",
552 ] 579 ]
553 } else { 580 } else {
554 # Need to add a directory normally exported by libyuv. 581 # Need to add a directory normally exported by libyuv.
555 include_dirs = [ "$rtc_libyuv_dir/include" ] 582 include_dirs = [ "$rtc_libyuv_dir/include" ]
556 } 583 }
557 } 584 }
558 } 585 }
559 } 586 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/voice_processing_audio_unit.mm ('k') | webrtc/sdk/objc/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698