tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1 | # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
mbonadei | 9aa3f0a | 2017-01-24 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 10 | if (is_ios) { |
| 11 | import("//build/config/ios/rules.gni") |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 12 | import("//build/config/ios/ios_sdk.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 13 | } |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 14 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 15 | declare_args() { |
| 16 | # Determine whether or not to include metal rendering |
| 17 | rtc_use_metal_rendering = is_mac || (is_ios && current_cpu == "arm64") |
| 18 | } |
| 19 | |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 20 | group("sdk") { |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 21 | public_deps = [] |
| 22 | if (!build_with_chromium) { |
| 23 | if (is_android) { |
| 24 | public_deps += [ "android" ] |
| 25 | } |
| 26 | if (is_ios) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 27 | public_deps += [ ":framework_objc" ] |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 28 | } |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | |
kthelgason | cc2d1c6 | 2016-11-09 15:44:27 | [diff] [blame] | 32 | if (is_ios || is_mac) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 33 | config("common_config_objc") { |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 34 | include_dirs = [ |
| 35 | "objc/Framework/Classes", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 36 | "objc/Framework/Classes/Audio", |
| 37 | "objc/Framework/Classes/Common", |
| 38 | "objc/Framework/Classes/Metal", |
| 39 | "objc/Framework/Classes/PeerConnection", |
| 40 | "objc/Framework/Classes/UI", |
| 41 | "objc/Framework/Classes/Video", |
| 42 | "objc/Framework/Classes/VideoToolbox", |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 43 | "objc/Framework/Headers", |
| 44 | ] |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 13:28:51 | [diff] [blame] | 45 | cflags = [ |
| 46 | "-Wstrict-overflow", |
| 47 | "-Wmissing-field-initializers", |
| 48 | ] |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 49 | } |
| 50 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 51 | rtc_static_library("common_objc") { |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 52 | sources = [ |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 53 | "objc/Framework/Classes/Common/NSString+StdString.h", |
| 54 | "objc/Framework/Classes/Common/NSString+StdString.mm", |
| 55 | "objc/Framework/Classes/Common/RTCDispatcher+Private.h", |
| 56 | "objc/Framework/Classes/Common/RTCDispatcher.m", |
| 57 | "objc/Framework/Classes/Common/RTCFieldTrials.mm", |
| 58 | "objc/Framework/Classes/Common/RTCLogging.mm", |
Anders Carlsson | fc30975 | 2017-06-12 12:16:20 | [diff] [blame] | 59 | "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.h", |
| 60 | "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.m", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 61 | "objc/Framework/Classes/Common/helpers.h", |
| 62 | "objc/Framework/Classes/Common/helpers.mm", |
Kári Tristan Helgason | a17ddcd | 2017-09-28 17:28:52 | [diff] [blame] | 63 | "objc/Framework/Classes/Common/scoped_cftyperef.h", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 64 | "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 65 | "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 66 | "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 67 | "objc/Framework/Headers/WebRTC/RTCMacros.h", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 68 | ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 69 | |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 70 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 71 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 72 | "../rtc_base:rtc_base", |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 73 | ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 74 | configs += [ "..:common_objc" ] |
| 75 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 76 | public_configs = [ ":common_config_objc" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 77 | |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 78 | if (is_ios) { |
| 79 | sources += [ |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 80 | "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm", |
tkchin | d762910 | 2016-07-28 21:52:55 | [diff] [blame] | 81 | "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 82 | ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 83 | } |
| 84 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 85 | if (!build_with_chromium) { |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 86 | sources += [ |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 87 | "objc/Framework/Classes/Common/RTCCallbackLogger.mm", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 88 | "objc/Framework/Classes/Common/RTCFileLogger.mm", |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 89 | "objc/Framework/Headers/WebRTC/RTCCallbackLogger.h", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 90 | "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
| 91 | ] |
| 92 | } |
| 93 | } |
| 94 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 95 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 96 | if (is_ios) { |
| 97 | rtc_static_library("audio_objc") { |
| 98 | sources = [ |
| 99 | "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm", |
| 100 | "objc/Framework/Classes/Audio/RTCAudioSession+Private.h", |
| 101 | "objc/Framework/Classes/Audio/RTCAudioSession.mm", |
| 102 | "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m", |
| 103 | "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
| 104 | "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
| 105 | ] |
| 106 | configs += [ "..:common_objc" ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 107 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 108 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 8ecfd80 | 2017-09-15 12:07:30 | [diff] [blame] | 109 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 110 | deps = [ |
| 111 | ":common_objc", |
| 112 | "../rtc_base:checks", |
| 113 | "../rtc_base:rtc_base_approved", |
| 114 | ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 115 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 116 | if (is_clang) { |
| 117 | # Suppress warnings from the Chromium Clang plugin |
| 118 | # (bugs.webrtc.org/163). |
| 119 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 120 | } |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 121 | } |
| 122 | } |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 123 | |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 124 | rtc_static_library("videosource_objc") { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 125 | sources = [ |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 126 | "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", |
| 127 | "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", |
| 128 | "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 129 | ] |
| 130 | |
| 131 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 132 | ":common_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 133 | ":mediasource_objc", |
| 134 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 135 | ":videoframebuffer_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 136 | "../api:libjingle_peerconnection_api", |
| 137 | "../api:video_frame_api", |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 138 | "../api:video_frame_api_i420", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 139 | "../common_video", |
| 140 | "../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 141 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 142 | "../rtc_base:rtc_base", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 143 | "//third_party/libyuv", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 144 | ] |
| 145 | |
| 146 | configs += [ "..:common_objc" ] |
| 147 | if (!build_with_chromium && is_clang) { |
| 148 | # Suppress warnings from the Chromium Clang plugin |
| 149 | # (bugs.webrtc.org/163). |
| 150 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 151 | } |
| 152 | } |
| 153 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 154 | rtc_static_library("videoframebuffer_objc") { |
| 155 | sources = [ |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 156 | "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", |
| 157 | "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", |
| 158 | "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", |
| 159 | "objc/Framework/Classes/Video/RTCI420Buffer.mm", |
| 160 | "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
| 161 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 162 | ] |
| 163 | deps = [ |
| 164 | ":common_objc", |
| 165 | "//api:video_frame_api", |
| 166 | "//api:video_frame_api_i420", |
| 167 | "//common_video", |
| 168 | "//rtc_base:checks", |
| 169 | "//rtc_base:rtc_base_approved", |
| 170 | "//third_party/libyuv", |
| 171 | ] |
| 172 | configs += [ "..:common_objc" ] |
| 173 | } |
| 174 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 175 | rtc_static_library("video_objc") { |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 176 | sources = [ |
jtteh | 3b673c6 | 2017-07-25 22:48:39 | [diff] [blame] | 177 | "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h", |
| 178 | "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 179 | "objc/Framework/Classes/Video/RTCDefaultShader.h", |
| 180 | "objc/Framework/Classes/Video/RTCDefaultShader.mm", |
| 181 | "objc/Framework/Classes/Video/RTCI420TextureCache.h", |
| 182 | "objc/Framework/Classes/Video/RTCI420TextureCache.mm", |
| 183 | "objc/Framework/Classes/Video/RTCOpenGLDefines.h", |
| 184 | "objc/Framework/Classes/Video/RTCShader.h", |
| 185 | "objc/Framework/Classes/Video/RTCShader.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 186 | "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 187 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 188 | libs = [] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 189 | if (is_ios) { |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 190 | sources += [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 191 | "objc/Framework/Classes/Video/RTCNV12TextureCache.h", |
| 192 | "objc/Framework/Classes/Video/RTCNV12TextureCache.m", |
| 193 | ] |
| 194 | libs += [ |
| 195 | "GLKit.framework", |
| 196 | "OpenGLES.framework", |
| 197 | "QuartzCore.framework", |
| 198 | ] |
| 199 | } else if (is_mac) { |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 200 | libs += [ |
| 201 | "CoreMedia.framework", |
| 202 | "CoreVideo.framework", |
| 203 | "OpenGL.framework", |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 204 | ] |
| 205 | } |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 206 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 207 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 208 | ":common_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 209 | ":mediaconstraints_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 210 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 211 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 212 | ":videosource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 213 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 214 | "../api:optional", |
Mirko Bonadei | 0594a7c | 2017-12-18 10:42:48 | [diff] [blame] | 215 | "../api:video_frame_api", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 216 | "../common_video", |
| 217 | "../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 218 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 219 | "../rtc_base:rtc_base", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 220 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 221 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 222 | configs += [ "..:common_objc" ] |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 223 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 224 | # Suppress warnings from the Chromium Clang plugin |
| 225 | # (bugs.webrtc.org/163). |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 226 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 227 | } |
| 228 | } |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 229 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 230 | rtc_static_library("ui_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 231 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 232 | allow_poison = [ |
| 233 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 234 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 235 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 236 | if (is_ios) { |
| 237 | sources = [ |
| 238 | "objc/Framework/Classes/UI/RTCCameraPreviewView.m", |
| 239 | "objc/Framework/Classes/UI/RTCEAGLVideoView.m", |
| 240 | "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 241 | "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 242 | ] |
| 243 | } |
| 244 | if (is_mac) { |
| 245 | sources = [ |
| 246 | "objc/Framework/Classes/UI/RTCNSGLVideoView.m", |
| 247 | "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 248 | ] |
| 249 | } |
| 250 | configs += [ "..:common_objc" ] |
| 251 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 252 | ":common_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 253 | ":video_objc", |
| 254 | ":videocapture_objc", |
| 255 | ":videoframebuffer_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 256 | ] |
| 257 | } |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 258 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 259 | if (rtc_use_metal_rendering) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 260 | rtc_static_library("metal_objc") { |
Mirko Bonadei | d68956d | 2018-02-16 16:55:36 | [diff] [blame] | 261 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 262 | allow_poison = [ |
| 263 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 264 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 265 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 266 | sources = [ |
| 267 | "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
| 268 | "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
| 269 | "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
| 270 | "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
| 271 | "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
| 272 | ] |
| 273 | if (is_ios) { |
| 274 | sources += [ |
| 275 | "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
| 276 | "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
| 277 | "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
| 278 | "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", |
| 279 | ] |
| 280 | } |
| 281 | if (is_mac) { |
| 282 | sources += [ |
| 283 | "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", |
| 284 | "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 285 | ] |
| 286 | } |
| 287 | libs = [ |
| 288 | "CoreVideo.framework", |
| 289 | "Metal.framework", |
| 290 | "MetalKit.framework", |
| 291 | ] |
| 292 | deps = [ |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 293 | ":common_objc", |
| 294 | ":peerconnectionfactory_base_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 295 | ":video_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 296 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 297 | ":videorenderer_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 298 | "../api:video_frame_api", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 299 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 300 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 301 | ] |
| 302 | configs += [ "..:common_objc" ] |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 303 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 304 | } |
| 305 | } |
| 306 | |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 307 | rtc_static_library("videocapturebase_objc") { |
| 308 | visibility = [ "*" ] |
| 309 | sources = [ |
| 310 | "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", |
| 311 | "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
| 312 | ] |
| 313 | libs = [ "AVFoundation.framework" ] |
| 314 | |
| 315 | configs += [ "..:common_objc" ] |
| 316 | |
| 317 | public_configs = [ ":common_config_objc" ] |
| 318 | |
| 319 | deps = [ |
| 320 | ":common_objc", |
| 321 | ":videoframebuffer_objc", |
| 322 | ] |
| 323 | } |
| 324 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 325 | rtc_static_library("videocapture_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 326 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 327 | allow_poison = [ |
| 328 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 329 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 330 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 331 | sources = [ |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 332 | "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", |
| 333 | "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
| 334 | ] |
| 335 | if (is_ios) { |
| 336 | sources += [ |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 337 | "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 338 | "objc/Framework/Headers/WebRTC/RTCFileVideoCapturer.h", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 339 | ] |
| 340 | } |
| 341 | libs = [ "AVFoundation.framework" ] |
| 342 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 343 | configs += [ "..:common_objc" ] |
| 344 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 345 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 346 | |
| 347 | if (!build_with_chromium && is_clang) { |
| 348 | # Suppress warnings from the Chromium Clang plugin |
| 349 | # (bugs.webrtc.org/163). |
| 350 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 351 | } |
| 352 | |
| 353 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 354 | ":common_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 355 | ":video_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 356 | ":videocapturebase_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 357 | ":videoframebuffer_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 358 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 359 | } |
| 360 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 361 | rtc_static_library("videocodec_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 362 | visibility = [ "*" ] |
| 363 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 364 | sources = [ |
| 365 | "objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm", |
| 366 | "objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm", |
| 367 | "objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h", |
| 368 | "objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 369 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 370 | "objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm", |
| 371 | "objc/Framework/Headers/WebRTC/RTCVideoCodec.h", |
| 372 | "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h", |
| 373 | "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 374 | ] |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 375 | if (is_ios) { |
| 376 | sources += [ |
| 377 | "objc/Framework/Classes/Video/UIDevice+H264Profile.h", |
| 378 | "objc/Framework/Classes/Video/UIDevice+H264Profile.mm", |
| 379 | ] |
| 380 | } |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 381 | if (!build_with_chromium && is_clang) { |
| 382 | # Suppress warnings from the Chromium Clang plugin |
| 383 | # (bugs.webrtc.org/163). |
| 384 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 385 | } |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 386 | public_configs = [ ":common_config_objc" ] |
| 387 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 388 | ":common_objc", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 389 | "../api/video_codecs:video_codecs_api", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 390 | "../common_video", |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 391 | "../media:rtc_h264_profile_id", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 392 | "../media:rtc_media_base", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 393 | "../modules:module_api", |
| 394 | "../modules/video_coding:video_codec_interface", |
| 395 | "../rtc_base:rtc_base_approved", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 396 | "../system_wrappers:field_trial_api", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 397 | ] |
| 398 | } |
| 399 | |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 400 | rtc_static_library("default_codec_factory_objc") { |
| 401 | sources = [ |
| 402 | "objc/Framework/Classes/PeerConnection/RTCDefaultVideoDecoderFactory.m", |
| 403 | "objc/Framework/Classes/PeerConnection/RTCDefaultVideoEncoderFactory.m", |
| 404 | ] |
| 405 | |
| 406 | deps = [ |
| 407 | ":common_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 408 | ":native_video", |
| 409 | ":videocodec_objc", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame^] | 410 | ":vp8", |
| 411 | ":vp9", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 412 | ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 413 | } |
| 414 | |
| 415 | rtc_static_library("vp8") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 416 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 417 | allow_poison = [ |
| 418 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 419 | "software_video_codecs", |
| 420 | ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 421 | sources = [ |
| 422 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP8.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 423 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP8.h", |
| 424 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP8.h", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 425 | ] |
| 426 | |
| 427 | if (!build_with_chromium && is_clang) { |
| 428 | # Suppress warnings from the Chromium Clang plugin |
| 429 | # (bugs.webrtc.org/163). |
| 430 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 431 | } |
| 432 | |
| 433 | deps = [ |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 434 | ":wrapped_native_codec_objc", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 435 | "../modules/video_coding:webrtc_vp8", |
| 436 | "../system_wrappers:metrics_default", |
| 437 | ] |
| 438 | } |
| 439 | |
| 440 | rtc_static_library("vp9") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 441 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 442 | allow_poison = [ |
| 443 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 444 | "software_video_codecs", |
| 445 | ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 446 | sources = [ |
| 447 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP9.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 448 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP9.h", |
| 449 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP9.h", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 450 | ] |
| 451 | |
| 452 | if (!build_with_chromium && is_clang) { |
| 453 | # Suppress warnings from the Chromium Clang plugin |
| 454 | # (bugs.webrtc.org/163). |
| 455 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 456 | } |
| 457 | |
| 458 | deps = [ |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 459 | ":wrapped_native_codec_objc", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 460 | "../modules/video_coding:webrtc_vp9", |
| 461 | "../system_wrappers:metrics_default", |
| 462 | ] |
| 463 | } |
| 464 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 465 | # Build the PeerConnectionFactory without audio/video support. |
| 466 | # This target depends on the objc_peeerconnectionfactory_base which still |
| 467 | # includes some audio/video related objects such as RTCAudioSource because |
| 468 | # these objects are just thin wrappers of native C++ interfaces required |
| 469 | # when implementing webrtc::PeerConnectionFactoryInterface and |
| 470 | # webrtc::PeerConnectionInterface. |
Kári Tristan Helgason | a2d89fc | 2018-03-06 09:18:43 | [diff] [blame] | 471 | # The applications which only use WebRTC DataChannel can depend on this. |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 472 | rtc_static_library("peerconnectionfactory_no_media_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 473 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 474 | allow_poison = [ |
| 475 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 476 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 477 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 478 | defines = [ "HAVE_NO_MEDIA" ] |
| 479 | |
| 480 | sources = [ |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 481 | "objc/Framework/Classes/Common/noop.mm", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 482 | ] |
| 483 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 484 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 485 | |
| 486 | if (!build_with_chromium && is_clang) { |
| 487 | # Suppress warnings from the Chromium Clang plugin |
| 488 | # (bugs.webrtc.org/163). |
| 489 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 490 | } |
| 491 | |
| 492 | deps = [ |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 493 | ":native_api", |
| 494 | ":native_video", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 495 | ":peerconnectionfactory_base_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 496 | "../api:libjingle_peerconnection_api", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 497 | "../rtc_base:rtc_base", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 498 | ] |
| 499 | } |
| 500 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 501 | rtc_static_library("mediaconstraints_objc") { |
| 502 | sources = [ |
| 503 | "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", |
| 504 | "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", |
| 505 | "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
| 506 | ] |
| 507 | if (!build_with_chromium && is_clang) { |
| 508 | # Suppress warnings from the Chromium Clang plugin |
| 509 | # (bugs.webrtc.org/163). |
| 510 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 511 | } |
| 512 | |
| 513 | public_configs = [ ":common_config_objc" ] |
| 514 | deps = [ |
| 515 | ":common_objc", |
| 516 | "../api:libjingle_peerconnection_api", |
| 517 | ] |
| 518 | } |
| 519 | |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 520 | rtc_source_set("videorenderer_objc") { |
| 521 | sources = [ |
| 522 | "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 523 | ] |
| 524 | |
| 525 | configs += [ "..:common_objc" ] |
| 526 | visibility = [ "*" ] |
| 527 | public_configs = [ ":common_config_objc" ] |
| 528 | } |
| 529 | |
| 530 | rtc_static_library("videorendereradapter_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 531 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 532 | allow_poison = [ |
| 533 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 534 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 535 | ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 536 | sources = [ |
| 537 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h", |
| 538 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", |
| 539 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", |
| 540 | ] |
| 541 | |
| 542 | configs += [ "..:common_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 543 | public_configs = [ ":common_config_objc" ] |
| 544 | |
| 545 | deps = [ |
| 546 | ":common_objc", |
| 547 | ":native_api", |
| 548 | ":videoframebuffer_objc", |
| 549 | ":videorenderer_objc", |
| 550 | "../api:libjingle_peerconnection_api", |
| 551 | ] |
| 552 | } |
| 553 | |
| 554 | rtc_static_library("mediasource_objc") { |
| 555 | sources = [ |
| 556 | "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", |
| 557 | "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", |
| 558 | "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
| 559 | ] |
| 560 | |
| 561 | configs += [ "..:common_objc" ] |
| 562 | public_configs = [ ":common_config_objc" ] |
| 563 | |
| 564 | deps = [ |
| 565 | ":common_objc", |
| 566 | "../api:libjingle_peerconnection_api", |
| 567 | "../rtc_base:checks", |
| 568 | ] |
| 569 | } |
| 570 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 571 | rtc_static_library("peerconnectionfactory_base_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 572 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 573 | allow_poison = [ |
| 574 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 575 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 576 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 577 | sources = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 578 | "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", |
| 579 | "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", |
| 580 | "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", |
| 581 | "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", |
Zeke Chin | ef1140e | 2017-10-27 22:42:08 | [diff] [blame] | 582 | "objc/Framework/Classes/PeerConnection/RTCConfiguration+Native.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 583 | "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", |
| 584 | "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", |
| 585 | "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", |
| 586 | "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", |
| 587 | "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Private.h", |
| 588 | "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", |
Yura Yaroshevich | 2767632 | 2018-01-02 11:44:35 | [diff] [blame] | 589 | "objc/Framework/Classes/PeerConnection/RTCDtmfSender+Private.h", |
| 590 | "objc/Framework/Classes/PeerConnection/RTCDtmfSender.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 591 | "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", |
| 592 | "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", |
| 593 | "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", |
| 594 | "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", |
Steve Anton | d295e40 | 2017-07-14 23:06:41 | [diff] [blame] | 595 | "objc/Framework/Classes/PeerConnection/RTCIntervalRange+Private.h", |
| 596 | "objc/Framework/Classes/PeerConnection/RTCIntervalRange.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 597 | "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", |
| 598 | "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 599 | "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", |
| 600 | "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", |
| 601 | "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", |
| 602 | "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", |
| 603 | "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", |
| 604 | "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", |
| 605 | "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", |
| 606 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm", |
Magnus Jedvert | 0af86d1 | 2017-10-28 14:26:55 | [diff] [blame] | 607 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Native.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 608 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", |
| 609 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", |
| 610 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 611 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h", |
| 612 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h", |
| 613 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", |
Yura Yaroshevich | bf56712 | 2018-01-02 10:33:16 | [diff] [blame] | 614 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactoryOptions+Private.h", |
| 615 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactoryOptions.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 616 | "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", |
| 617 | "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", |
| 618 | "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private.h", |
| 619 | "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", |
| 620 | "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", |
| 621 | "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", |
| 622 | "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", |
| 623 | "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", |
| 624 | "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", |
| 625 | "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", |
Steve Anton | 8cb344a | 2018-02-27 23:34:53 | [diff] [blame] | 626 | "objc/Framework/Classes/PeerConnection/RTCRtpTransceiver+Private.h", |
| 627 | "objc/Framework/Classes/PeerConnection/RTCRtpTransceiver.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 628 | "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", |
| 629 | "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", |
| 630 | "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", |
| 631 | "objc/Framework/Classes/PeerConnection/RTCTracing.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 632 | "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", |
| 633 | "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", |
Kári Tristan Helgason | f93f5a4 | 2017-05-31 08:04:55 | [diff] [blame] | 634 | "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 635 | "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 636 | "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
| 637 | "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
| 638 | "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
Yura Yaroshevich | 2767632 | 2018-01-02 11:44:35 | [diff] [blame] | 639 | "objc/Framework/Headers/WebRTC/RTCDtmfSender.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 640 | "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
| 641 | "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
Steve Anton | d295e40 | 2017-07-14 23:06:41 | [diff] [blame] | 642 | "objc/Framework/Headers/WebRTC/RTCIntervalRange.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 643 | "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 644 | "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
| 645 | "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
| 646 | "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 647 | "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 648 | "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
| 649 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
Yura Yaroshevich | bf56712 | 2018-01-02 10:33:16 | [diff] [blame] | 650 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactoryOptions.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 651 | "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
| 652 | "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
| 653 | "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
| 654 | "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 655 | "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
Steve Anton | 8cb344a | 2018-02-27 23:34:53 | [diff] [blame] | 656 | "objc/Framework/Headers/WebRTC/RTCRtpTransceiver.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 657 | "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 658 | "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 659 | "objc/Framework/Headers/WebRTC/RTCTracing.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 660 | "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 661 | ] |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 662 | |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 663 | configs += [ "..:common_objc" ] |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 664 | public_configs = [ ":common_config_objc" ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 665 | |
kjellander | e40a7ee | 2016-10-17 06:56:12 | [diff] [blame] | 666 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 667 | # Suppress warnings from the Chromium Clang plugin |
| 668 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 669 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 670 | } |
| 671 | |
| 672 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 673 | ":common_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 674 | ":mediaconstraints_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 675 | ":mediasource_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 676 | ":native_api", |
| 677 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 678 | ":video_objc", |
| 679 | ":videocodec_objc", |
| 680 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 681 | ":videorenderer_objc", |
| 682 | ":videorendereradapter_objc", |
| 683 | ":videosource_objc", |
Mirko Bonadei | e51f785 | 2017-12-06 10:23:19 | [diff] [blame] | 684 | "../api:libjingle_peerconnection_api", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 685 | "../api:video_frame_api", |
Karl Wiberg | 5817d3d | 2018-04-06 08:06:42 | [diff] [blame] | 686 | "../api/audio_codecs:builtin_audio_decoder_factory", |
Anders Carlsson | 7e04281 | 2017-10-05 14:55:38 | [diff] [blame] | 687 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | e5960ce | 2017-06-22 13:26:30 | [diff] [blame] | 688 | "../common_video", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 689 | "../media:rtc_media_base", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 690 | "../modules:module_api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 691 | "../modules/video_coding:video_codec_interface", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 692 | "../pc:create_pc_factory", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 693 | "../pc:peerconnection", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 694 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 695 | "../rtc_base:rtc_base", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 696 | ] |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 697 | } |
Zeke Chin | dd0e1e0 | 2016-10-11 20:27:26 | [diff] [blame] | 698 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 699 | if (rtc_include_tests) { |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 700 | if (is_ios) { |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 701 | rtc_source_set("sdk_unittests_sources") { |
| 702 | testonly = true |
| 703 | include_dirs = [ |
| 704 | "objc/Framework/Headers", |
| 705 | "objc/Framework/Classes", |
| 706 | ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 707 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 708 | sources = [ |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 709 | "objc/Framework/UnitTests/ObjCVideoTrackSource_xctest.mm", |
| 710 | "objc/Framework/UnitTests/RTCCVPixelBuffer_xctest.mm", |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 711 | "objc/Framework/UnitTests/RTCCallbackLogger_xctest.m", |
Peter Hanspers | 8020ae8 | 2018-01-09 13:26:41 | [diff] [blame] | 712 | "objc/Framework/UnitTests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 713 | "objc/Framework/UnitTests/RTCFileVideoCapturer_xctest.mm", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 714 | "objc/Framework/UnitTests/frame_buffer_helpers.h", |
| 715 | "objc/Framework/UnitTests/frame_buffer_helpers.mm", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 716 | ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 717 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 718 | deps = [ |
| 719 | ":common_objc", |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 720 | ":framework_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 721 | ":native_api", |
| 722 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 723 | ":videocapture_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 724 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 725 | ":videosource_objc", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 726 | ":videotoolbox_objc", |
Mirko Bonadei | a498ae8 | 2017-12-06 08:17:14 | [diff] [blame] | 727 | "../../system_wrappers:system_wrappers_default", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 728 | "../api:video_frame_api_i420", |
| 729 | "../common_video:common_video", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 730 | "../media:rtc_media_base", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 731 | "../media:rtc_media_tests_utils", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 732 | "../modules:module_api", |
| 733 | "../rtc_base:rtc_base", |
| 734 | "../rtc_base:rtc_base_tests_utils", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 735 | "//third_party/libyuv", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 736 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 737 | |
| 738 | if (rtc_use_metal_rendering) { |
Kári Tristan Helgason | 06d094f | 2018-04-19 15:38:05 | [diff] [blame] | 739 | sources += [ "objc/Framework/UnitTests/RTCMTLVideoView_xctest.m" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 740 | deps += [ ":metal_objc" ] |
| 741 | } |
| 742 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 743 | public_deps = [ |
| 744 | "//build/config/ios:xctest", |
| 745 | "//third_party/ocmock", |
| 746 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 747 | |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 748 | include_dirs += [ "$root_out_dir/WebRTC.framework/Headers/" ] |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 749 | |
| 750 | if (!build_with_chromium && is_clang) { |
| 751 | # Suppress warnings from the Chromium Clang plugin |
| 752 | # (bugs.webrtc.org/163). |
| 753 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 754 | } |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 755 | } |
| 756 | |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 757 | bundle_data("sdk_unittests_bundle_data") { |
| 758 | # Sample video taken from https://media.xiph.org/video/derf/ |
| 759 | sources = [ |
| 760 | "objc/Framework/UnitTests/foreman.mp4", |
| 761 | ] |
| 762 | outputs = [ |
| 763 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 764 | ] |
| 765 | } |
| 766 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 767 | rtc_ios_xctest_test("sdk_unittests") { |
| 768 | info_plist = "//test/ios/Info.plist" |
| 769 | sources = [ |
| 770 | "objc/Framework/UnitTests/main.m", |
| 771 | ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 772 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 773 | _bundle_id_suffix = ios_generic_test_bundle_id_suffix |
| 774 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ] |
| 775 | deps = [ |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 776 | ":sdk_unittests_bundle_data", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 777 | ":sdk_unittests_sources", |
| 778 | ] |
| 779 | ldflags = [ "-all_load" ] |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | # TODO(denicija): once all tests are migrated to xctest remove this source set. |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 784 | rtc_source_set("sdk_unittests_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 785 | testonly = true |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 786 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 787 | sources = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 788 | "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
| 789 | "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
| 790 | "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
| 791 | "objc/Framework/UnitTests/RTCIceServerTest.mm", |
Steve Anton | d295e40 | 2017-07-14 23:06:41 | [diff] [blame] | 792 | "objc/Framework/UnitTests/RTCIntervalRangeTests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 793 | "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
| 794 | "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", |
| 795 | "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
jtteh | 7480da4 | 2017-07-07 18:02:15 | [diff] [blame] | 796 | "objc/Framework/UnitTests/RTCTracingTest.mm", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 797 | "objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm", |
| 798 | "objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm", |
Kári Tristan Helgason | ca95748 | 2017-10-05 12:06:52 | [diff] [blame] | 799 | "objc/Framework/UnitTests/scoped_cftyperef_tests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 800 | ] |
Anders Carlsson | e7dd83f | 2018-01-19 10:28:44 | [diff] [blame] | 801 | if (is_ios) { |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 802 | sources += |
| 803 | [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ] |
| 804 | } |
mbonadei | d762058 | 2017-05-30 08:50:35 | [diff] [blame] | 805 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 806 | # |-ObjC| flag needed to make sure category method implementations |
| 807 | # are included: |
| 808 | # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 809 | ldflags = [ "-ObjC" ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 810 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 811 | defines = [ "GTEST_RELATIVE_PATH" ] |
| 812 | deps = [ |
Kári Tristan Helgason | ca95748 | 2017-10-05 12:06:52 | [diff] [blame] | 813 | ":common_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 814 | ":mediaconstraints_objc", |
| 815 | ":native_api", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 816 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 817 | ":peerconnectionfactory_base_objc", |
| 818 | ":video_objc", |
| 819 | ":videocapture_objc", |
| 820 | ":videocodec_objc", |
| 821 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 822 | ":videosource_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 823 | ":videotoolbox_objc", |
Mirko Bonadei | a498ae8 | 2017-12-06 08:17:14 | [diff] [blame] | 824 | "../../system_wrappers:system_wrappers_default", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame^] | 825 | "../api/video_codecs:video_codecs_api", |
kthelgason | ebd4f79 | 2017-09-04 11:36:21 | [diff] [blame] | 826 | "../media:rtc_media_base", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 827 | "../modules:module_api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 828 | "../modules/video_coding:video_codec_interface", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 829 | "../rtc_base:rtc_base_tests_utils", |
Kári Tristan Helgason | ca95748 | 2017-10-05 12:06:52 | [diff] [blame] | 830 | "//test:test_support", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 831 | "//third_party/ocmock", |
| 832 | ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 833 | |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 834 | if (is_ios) { |
| 835 | sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 836 | deps += [ ":audio_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 837 | } |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 838 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 839 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 840 | # Suppress warnings from the Chromium Clang plugin |
| 841 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 842 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 843 | } |
| 844 | } |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 845 | } |
| 846 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 847 | if (is_ios) { |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 848 | ios_framework_bundle_with_umbrella_header("framework_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 849 | info_plist = "objc/Framework/Info.plist" |
| 850 | output_name = "WebRTC" |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 | [diff] [blame] | 851 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 852 | common_objc_headers = [ |
Jeremy Newton-Smith | 96de428 | 2017-08-23 17:02:23 | [diff] [blame] | 853 | "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 | [diff] [blame] | 854 | "objc/Framework/Headers/WebRTC/RTCVideoCodec.h", |
| 855 | "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h", |
Jeremy Newton-Smith | 96de428 | 2017-08-23 17:02:23 | [diff] [blame] | 856 | "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 857 | "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 858 | "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
| 859 | "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
| 860 | "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 861 | "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
| 862 | "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
| 863 | "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
| 864 | "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 865 | "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 866 | "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 867 | "objc/Framework/Headers/WebRTC/RTCFileVideoCapturer.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 868 | "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
| 869 | "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
Steve Anton | d295e40 | 2017-07-14 23:06:41 | [diff] [blame] | 870 | "objc/Framework/Headers/WebRTC/RTCIntervalRange.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 871 | "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
| 872 | "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 873 | "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 874 | "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
| 875 | "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
| 876 | "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
| 877 | "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
| 878 | "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 879 | "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 880 | "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
| 881 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
Yura Yaroshevich | bf56712 | 2018-01-02 10:33:16 | [diff] [blame] | 882 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactoryOptions.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 883 | "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
| 884 | "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
| 885 | "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
| 886 | "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 887 | "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
Steve Anton | 8cb344a | 2018-02-27 23:34:53 | [diff] [blame] | 888 | "objc/Framework/Headers/WebRTC/RTCRtpTransceiver.h", |
Yura Yaroshevich | 2767632 | 2018-01-02 11:44:35 | [diff] [blame] | 889 | "objc/Framework/Headers/WebRTC/RTCDtmfSender.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 890 | "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 891 | "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 892 | "objc/Framework/Headers/WebRTC/RTCTracing.h", |
| 893 | "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
Anders Carlsson | 7e04281 | 2017-10-05 14:55:38 | [diff] [blame] | 894 | "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 895 | "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
Anders Carlsson | e5960ce | 2017-06-22 13:26:30 | [diff] [blame] | 896 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 897 | "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 898 | "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
| 899 | "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
| 900 | "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
| 901 | "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame^] | 902 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP8.h", |
| 903 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP9.h", |
| 904 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP8.h", |
| 905 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP9.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 906 | ] |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame^] | 907 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 908 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 909 | common_objc_headers += [ |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 910 | "objc/Framework/Headers/WebRTC/RTCCallbackLogger.h", |
| 911 | "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
| 912 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 913 | } |
Anders Carlsson | c3d1e09 | 2018-03-21 11:38:37 | [diff] [blame] | 914 | if (rtc_use_metal_rendering) { |
| 915 | common_objc_headers += |
| 916 | [ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h" ] |
| 917 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 918 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 919 | sources = common_objc_headers |
| 920 | public_headers = common_objc_headers |
| 921 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 922 | ldflags = [ |
| 923 | "-all_load", |
| 924 | "-install_name", |
| 925 | "@rpath/$output_name.framework/$output_name", |
| 926 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 927 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 928 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 929 | ":audio_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 930 | ":common_objc", |
| 931 | ":default_codec_factory_objc", |
| 932 | ":native_api", |
| 933 | ":native_video", |
| 934 | ":peerconnectionfactory_base_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 935 | ":ui_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 936 | ":videocapture_objc", |
| 937 | ":videocodec_objc", |
| 938 | ":videotoolbox_objc", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 939 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 940 | "../system_wrappers:field_trial_default", |
| 941 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 | [diff] [blame] | 942 | "../system_wrappers:runtime_enabled_features_default", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 943 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 944 | if (rtc_use_metal_rendering) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 945 | deps += [ ":metal_objc" ] |
| 946 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 947 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 948 | libs = [ |
| 949 | "AVFoundation.framework", |
| 950 | "CoreGraphics.framework", |
| 951 | "CoreMedia.framework", |
| 952 | "GLKit.framework", |
| 953 | ] |
| 954 | |
| 955 | configs += [ "..:common_objc" ] |
| 956 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 957 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 958 | |
| 959 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 960 | # Suppress warnings from the Chromium Clang plugin |
| 961 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 962 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 963 | } |
| 964 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 965 | } |
| 966 | |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 967 | rtc_static_library("wrapped_native_codec_objc") { |
| 968 | sources = [ |
| 969 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.h", |
| 970 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.mm", |
| 971 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.h", |
| 972 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.mm", |
| 973 | ] |
| 974 | |
| 975 | configs += [ "..:common_objc" ] |
| 976 | public_configs = [ ":common_config_objc" ] |
| 977 | |
| 978 | if (!build_with_chromium && is_clang) { |
| 979 | # Suppress warnings from the Chromium Clang plugin |
| 980 | # (bugs.webrtc.org/163). |
| 981 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 982 | } |
| 983 | |
| 984 | deps = [ |
| 985 | ":common_objc", |
| 986 | ":videocodec_objc", |
| 987 | "../api/video_codecs:video_codecs_api", |
| 988 | "../media:rtc_media_base", |
| 989 | ] |
| 990 | } |
| 991 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 992 | # The native API is currently experimental and may change without notice. |
| 993 | rtc_static_library("native_api") { |
| 994 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 995 | allow_poison = [ |
| 996 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 997 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 998 | ] |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 999 | sources = [ |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1000 | "objc/Framework/Native/api/video_capturer.h", |
| 1001 | "objc/Framework/Native/api/video_capturer.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1002 | "objc/Framework/Native/api/video_decoder_factory.h", |
| 1003 | "objc/Framework/Native/api/video_decoder_factory.mm", |
| 1004 | "objc/Framework/Native/api/video_encoder_factory.h", |
| 1005 | "objc/Framework/Native/api/video_encoder_factory.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1006 | "objc/Framework/Native/api/video_frame.h", |
| 1007 | "objc/Framework/Native/api/video_frame.mm", |
| 1008 | "objc/Framework/Native/api/video_frame_buffer.h", |
| 1009 | "objc/Framework/Native/api/video_frame_buffer.mm", |
| 1010 | "objc/Framework/Native/api/video_renderer.h", |
| 1011 | "objc/Framework/Native/api/video_renderer.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1012 | ] |
| 1013 | |
| 1014 | configs += [ "..:common_objc" ] |
| 1015 | |
| 1016 | public_configs = [ ":common_config_objc" ] |
| 1017 | |
| 1018 | if (!build_with_chromium && is_clang) { |
| 1019 | # Suppress warnings from the Chromium Clang plugin |
| 1020 | # (bugs.webrtc.org/163). |
| 1021 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 1022 | } |
| 1023 | |
| 1024 | deps = [ |
| 1025 | ":native_video", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1026 | ":videocapturebase_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1027 | ":videocodec_objc", |
| 1028 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1029 | ":videorenderer_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1030 | "../api:libjingle_peerconnection_api", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1031 | "../api:video_frame_api", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1032 | "../api/video_codecs:video_codecs_api", |
| 1033 | "../common_video", |
| 1034 | "../rtc_base:rtc_base", |
| 1035 | ] |
| 1036 | } |
| 1037 | |
| 1038 | rtc_static_library("native_video") { |
| 1039 | sources = [ |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1040 | "objc/Framework/Native/src/objc_frame_buffer.h", |
| 1041 | "objc/Framework/Native/src/objc_frame_buffer.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1042 | "objc/Framework/Native/src/objc_video_decoder_factory.h", |
| 1043 | "objc/Framework/Native/src/objc_video_decoder_factory.mm", |
| 1044 | "objc/Framework/Native/src/objc_video_encoder_factory.h", |
| 1045 | "objc/Framework/Native/src/objc_video_encoder_factory.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1046 | "objc/Framework/Native/src/objc_video_frame.h", |
| 1047 | "objc/Framework/Native/src/objc_video_frame.mm", |
| 1048 | "objc/Framework/Native/src/objc_video_renderer.h", |
| 1049 | "objc/Framework/Native/src/objc_video_renderer.mm", |
| 1050 | "objc/Framework/Native/src/objc_video_track_source.h", |
| 1051 | "objc/Framework/Native/src/objc_video_track_source.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1052 | ] |
| 1053 | |
| 1054 | configs += [ "..:common_objc" ] |
| 1055 | |
| 1056 | public_configs = [ ":common_config_objc" ] |
| 1057 | |
| 1058 | if (!build_with_chromium && is_clang) { |
| 1059 | # Suppress warnings from the Chromium Clang plugin |
| 1060 | # (bugs.webrtc.org/163). |
| 1061 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 1062 | } |
| 1063 | |
| 1064 | deps = [ |
| 1065 | ":common_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1066 | ":videocapturebase_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1067 | ":videocodec_objc", |
| 1068 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1069 | ":videorenderer_objc", |
| 1070 | ":wrapped_native_codec_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1071 | "../api:video_frame_api", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1072 | "../api:video_frame_api_i420", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1073 | "../api/video_codecs:video_codecs_api", |
| 1074 | "../common_video", |
| 1075 | "../media:rtc_audio_video", |
| 1076 | "../media:rtc_media_base", |
| 1077 | "../modules:module_api", |
| 1078 | "../modules/video_coding:video_codec_interface", |
| 1079 | "../rtc_base:checks", |
| 1080 | "../rtc_base:rtc_base", |
| 1081 | ] |
| 1082 | } |
| 1083 | |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1084 | rtc_static_library("video_toolbox_cc") { |
mbonadei | 6ff8f96 | 2017-09-04 12:51:34 | [diff] [blame] | 1085 | visibility = [ ":videotoolbox_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1086 | sources = [ |
magjed | 73c0eb5 | 2017-08-07 13:55:28 | [diff] [blame] | 1087 | "objc/Framework/Classes/VideoToolbox/helpers.cc", |
| 1088 | "objc/Framework/Classes/VideoToolbox/helpers.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1089 | "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", |
| 1090 | "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1091 | ] |
| 1092 | deps = [ |
| 1093 | "../common_video", |
| 1094 | "../modules:module_api", |
| 1095 | "../modules/video_coding:webrtc_h264", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1096 | "../rtc_base:checks", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1097 | "../rtc_base:rtc_base_approved", |
| 1098 | ] |
| 1099 | if (!build_with_chromium && is_clang) { |
| 1100 | # Suppress warnings from the Chromium Clang plugin |
| 1101 | # (bugs.webrtc.org/163). |
| 1102 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | rtc_static_library("videotoolbox_objc") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1107 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 14:39:05 | [diff] [blame] | 1108 | allow_poison = [ |
| 1109 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 1110 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 1111 | ] |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1112 | sources = [ |
| 1113 | "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm", |
| 1114 | "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1115 | ] |
| 1116 | |
| 1117 | configs += [ "..:common_objc" ] |
| 1118 | |
| 1119 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1120 | ":common_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1121 | ":native_api", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1122 | ":video_objc", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1123 | ":video_toolbox_cc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1124 | ":videocodec_objc", |
| 1125 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1126 | ":videosource_objc", |
Mirko Bonadei | 0594a7c | 2017-12-18 10:42:48 | [diff] [blame] | 1127 | "../api:video_frame_api", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 1128 | "../api/video_codecs:video_codecs_api", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1129 | "../common_video", |
Mirko Bonadei | 75baa49 | 2018-01-11 16:07:30 | [diff] [blame] | 1130 | "../media:rtc_audio_video", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1131 | "../media:rtc_media", |
| 1132 | "../media:rtc_media_base", |
| 1133 | "../modules:module_api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1134 | "../modules/video_coding:video_codec_interface", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1135 | "../modules/video_coding:video_coding_utility", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1136 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 1137 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 1138 | "//third_party/libyuv", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1139 | ] |
| 1140 | |
| 1141 | libs = [ |
| 1142 | "CoreFoundation.framework", |
| 1143 | "CoreMedia.framework", |
| 1144 | "CoreVideo.framework", |
| 1145 | "VideoToolbox.framework", |
| 1146 | ] |
| 1147 | |
| 1148 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 1149 | # Suppress warnings from the Chromium Clang plugin |
| 1150 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1151 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 1152 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1153 | } |
| 1154 | } |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1155 | } |