Adding -Wno-deprecated-declarations to declarations deprecated in iOS 10
This CL will unblock the Chromium Roll while deprecated declarations will be removed from the WebRTC codebase. Bug: webrtc:8570 Change-Id: I55cf78040758369ce45176cf0a00df50a87eb972 No-Try: True Reviewed-on: https://webrtc-review.googlesource.com/25641 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20858}
This commit is contained in:
parent
1391bd472c
commit
2a9dbe6e7e
@ -89,6 +89,9 @@ if (!build_with_chromium) {
|
||||
|
||||
if (is_ios || is_mac) {
|
||||
rtc_source_set("video_capture_internal_impl_objc") {
|
||||
# TODO(bugs.webrtc.org/8570): Remove -Wno-deprecated-declarations flag
|
||||
# when the code will be updated.
|
||||
cflags_objcc = [ "-Wno-deprecated-declarations" ]
|
||||
visibility = [ ":video_capture_internal_impl" ]
|
||||
configs += [ ":video_capture_internal_impl_warnings_config" ]
|
||||
|
||||
|
||||
12
sdk/BUILD.gn
12
sdk/BUILD.gn
@ -148,6 +148,9 @@ if (is_ios || is_mac) {
|
||||
}
|
||||
|
||||
rtc_static_library("video_objc") {
|
||||
# TODO(bugs.webrtc.org/8570): Remove -Wno-deprecated-declarations flag
|
||||
# when the code will be updated.
|
||||
cflags_objcc = [ "-Wno-deprecated-declarations" ]
|
||||
sources = [
|
||||
"objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h",
|
||||
"objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm",
|
||||
@ -206,6 +209,9 @@ if (is_ios || is_mac) {
|
||||
|
||||
rtc_static_library("ui_objc") {
|
||||
if (is_ios) {
|
||||
# TODO(bugs.webrtc.org/8570): Remove -Wno-deprecated-declarations flag
|
||||
# when the code will be updated.
|
||||
cflags_objc = [ "-Wno-deprecated-declarations" ]
|
||||
sources = [
|
||||
"objc/Framework/Classes/UI/RTCCameraPreviewView.m",
|
||||
"objc/Framework/Classes/UI/RTCEAGLVideoView.m",
|
||||
@ -265,6 +271,9 @@ if (is_ios || is_mac) {
|
||||
}
|
||||
|
||||
rtc_static_library("peerconnection_objc") {
|
||||
# TODO(bugs.webrtc.org/8570): Remove -Wno-deprecated-declarations flag
|
||||
# when the code will be updated.
|
||||
cflags_objc = [ "-Wno-deprecated-declarations" ]
|
||||
sources = [
|
||||
"objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm",
|
||||
@ -596,6 +605,9 @@ if (is_ios || is_mac) {
|
||||
!(use_ios_simulator &&
|
||||
# The tests crash on these simulator versions:
|
||||
(ios_sdk_version == "10.0" || ios_sdk_version == "10.1"))) {
|
||||
# TODO(bugs.webrtc.org/8570): Remove -Wno-deprecated-declarations flag
|
||||
# when the code will be updated.
|
||||
cflags_objcc = [ "-Wno-deprecated-declarations" ]
|
||||
sources +=
|
||||
[ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user