tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [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 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
kthelgason | ebc34e7 | 2016-09-15 04:30:18 -0700 | [diff] [blame] | 10 | if (is_ios) { |
| 11 | import("//build/config/ios/rules.gni") |
oprypin | 4519752 | 2017-06-22 01:47:20 -0700 | [diff] [blame] | 12 | import("//build/config/ios/ios_sdk.gni") |
kthelgason | ebc34e7 | 2016-09-15 04:30:18 -0700 | [diff] [blame] | 13 | } |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 14 | |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [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 05:44:03 -0700 | [diff] [blame] | 20 | group("sdk") { |
Henrik Kjellander | a7d0df7 | 2017-06-27 08:56:46 +0200 | [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 05:43:45 -0700 | [diff] [blame] | 27 | public_deps += [ ":framework_objc" ] |
Henrik Kjellander | a7d0df7 | 2017-06-27 08:56:46 +0200 | [diff] [blame] | 28 | } |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | |
kthelgason | cc2d1c6 | 2016-11-09 07:44:27 -0800 | [diff] [blame] | 32 | if (is_ios || is_mac) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 33 | config("common_config_objc") { |
kjellander | 080a1e3 | 2016-05-25 11:37:11 -0700 | [diff] [blame] | 34 | include_dirs = [ |
| 35 | "objc/Framework/Classes", |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [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 11:37:11 -0700 | [diff] [blame] | 43 | "objc/Framework/Headers", |
| 44 | ] |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 15:28:51 +0200 | [diff] [blame] | 45 | cflags = [ |
| 46 | "-Wstrict-overflow", |
| 47 | "-Wmissing-field-initializers", |
| 48 | ] |
kjellander | 080a1e3 | 2016-05-25 11:37:11 -0700 | [diff] [blame] | 49 | } |
| 50 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 51 | rtc_static_library("common_objc") { |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 52 | sources = [ |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [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 14:16:20 +0200 | [diff] [blame] | 59 | "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.h", |
| 60 | "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.m", |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 61 | "objc/Framework/Classes/Common/helpers.h", |
| 62 | "objc/Framework/Classes/Common/helpers.mm", |
Kári Tristan Helgason | a17ddcd | 2017-09-28 19:28:52 +0200 | [diff] [blame] | 63 | "objc/Framework/Classes/Common/scoped_cftyperef.h", |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [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 01:54:20 -0700 | [diff] [blame] | 68 | ] |
denicija | d208815 | 2017-04-28 02:14:54 -0700 | [diff] [blame] | 69 | |
mbonadei | 1e060c6 | 2017-04-21 00:02:02 -0700 | [diff] [blame] | 70 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 71 | "../rtc_base:rtc_base", |
mbonadei | 1e060c6 | 2017-04-21 00:02:02 -0700 | [diff] [blame] | 72 | ] |
kthelgason | c097710 | 2017-04-24 00:57:16 -0700 | [diff] [blame] | 73 | configs += [ "..:common_objc" ] |
| 74 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 75 | public_configs = [ ":common_config_objc" ] |
denicija | d208815 | 2017-04-28 02:14:54 -0700 | [diff] [blame] | 76 | |
kjellander | 3bcedd3 | 2016-06-08 01:14:15 -0700 | [diff] [blame] | 77 | if (is_ios) { |
| 78 | sources += [ |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 79 | "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm", |
tkchin | d762910 | 2016-07-28 14:52:55 -0700 | [diff] [blame] | 80 | "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
kjellander | 3bcedd3 | 2016-06-08 01:14:15 -0700 | [diff] [blame] | 81 | ] |
denicija | d208815 | 2017-04-28 02:14:54 -0700 | [diff] [blame] | 82 | } |
| 83 | |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 84 | if (!build_with_chromium) { |
denicija | d208815 | 2017-04-28 02:14:54 -0700 | [diff] [blame] | 85 | sources += [ |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 86 | "objc/Framework/Classes/Common/RTCFileLogger.mm", |
| 87 | "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
| 88 | ] |
| 89 | } |
| 90 | } |
| 91 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 92 | if (!build_with_chromium) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 93 | rtc_static_library("audio_objc") { |
denicija | 59ee91b | 2017-06-05 05:48:47 -0700 | [diff] [blame] | 94 | sources = [ |
| 95 | "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm", |
| 96 | "objc/Framework/Classes/Audio/RTCAudioSession+Private.h", |
| 97 | "objc/Framework/Classes/Audio/RTCAudioSession.mm", |
| 98 | "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m", |
| 99 | "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
| 100 | "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
| 101 | ] |
| 102 | configs += [ "..:common_objc" ] |
| 103 | |
Anders Carlsson | 8ecfd80 | 2017-09-15 14:07:30 +0200 | [diff] [blame] | 104 | public_configs = [ ":common_config_objc" ] |
| 105 | |
denicija | 59ee91b | 2017-06-05 05:48:47 -0700 | [diff] [blame] | 106 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 107 | ":common_objc", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 108 | "../rtc_base:rtc_base_approved", |
denicija | 59ee91b | 2017-06-05 05:48:47 -0700 | [diff] [blame] | 109 | ] |
| 110 | |
| 111 | if (is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 112 | # Suppress warnings from the Chromium Clang plugin |
| 113 | # (bugs.webrtc.org/163). |
denicija | 59ee91b | 2017-06-05 05:48:47 -0700 | [diff] [blame] | 114 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 115 | } |
| 116 | } |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 117 | |
| 118 | # Keep videotracksource related code in a separate target so that we can |
| 119 | # build PeerConnectionFactory without audio/video support when that's called |
| 120 | # for. |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 121 | rtc_static_library("videotracksource_objc") { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 122 | sources = [ |
| 123 | "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", |
| 124 | "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", |
| 125 | "objc/Framework/Classes/Video/RTCI420Buffer.mm", |
| 126 | "objc/Framework/Classes/Video/objc_frame_buffer.h", |
| 127 | "objc/Framework/Classes/Video/objc_frame_buffer.mm", |
| 128 | "objc/Framework/Classes/Video/objcvideotracksource.h", |
| 129 | "objc/Framework/Classes/Video/objcvideotracksource.mm", |
| 130 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
| 131 | ] |
| 132 | |
| 133 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 134 | ":common_objc", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 135 | "../api:libjingle_peerconnection_api", |
| 136 | "../api:video_frame_api", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 137 | "../common_video", |
| 138 | "../media:rtc_media_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 139 | "../rtc_base:rtc_base", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 140 | ] |
| 141 | |
| 142 | configs += [ "..:common_objc" ] |
| 143 | if (!build_with_chromium && is_clang) { |
| 144 | # Suppress warnings from the Chromium Clang plugin |
| 145 | # (bugs.webrtc.org/163). |
| 146 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 147 | } |
| 148 | } |
| 149 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 150 | rtc_static_library("video_objc") { |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 151 | sources = [ |
jtteh | 3b673c6 | 2017-07-25 15:48:39 -0700 | [diff] [blame] | 152 | "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h", |
| 153 | "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 154 | "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", |
| 155 | "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", |
| 156 | "objc/Framework/Classes/Video/RTCDefaultShader.h", |
| 157 | "objc/Framework/Classes/Video/RTCDefaultShader.mm", |
| 158 | "objc/Framework/Classes/Video/RTCI420TextureCache.h", |
| 159 | "objc/Framework/Classes/Video/RTCI420TextureCache.mm", |
| 160 | "objc/Framework/Classes/Video/RTCOpenGLDefines.h", |
| 161 | "objc/Framework/Classes/Video/RTCShader.h", |
| 162 | "objc/Framework/Classes/Video/RTCShader.mm", |
| 163 | "objc/Framework/Classes/Video/avfoundationformatmapper.h", |
| 164 | "objc/Framework/Classes/Video/avfoundationformatmapper.mm", |
| 165 | "objc/Framework/Classes/Video/avfoundationvideocapturer.h", |
| 166 | "objc/Framework/Classes/Video/avfoundationvideocapturer.mm", |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 167 | ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 168 | libs = [] |
denicija | d208815 | 2017-04-28 02:14:54 -0700 | [diff] [blame] | 169 | if (is_ios) { |
denicija | 070d5e3 | 2017-02-26 11:44:13 -0800 | [diff] [blame] | 170 | sources += [ |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 171 | "objc/Framework/Classes/Video/RTCNV12TextureCache.h", |
| 172 | "objc/Framework/Classes/Video/RTCNV12TextureCache.m", |
| 173 | ] |
| 174 | libs += [ |
| 175 | "GLKit.framework", |
| 176 | "OpenGLES.framework", |
| 177 | "QuartzCore.framework", |
| 178 | ] |
| 179 | } else if (is_mac) { |
| 180 | sources += [] |
| 181 | |
| 182 | libs += [ |
| 183 | "CoreMedia.framework", |
| 184 | "CoreVideo.framework", |
| 185 | "OpenGL.framework", |
denicija | 070d5e3 | 2017-02-26 11:44:13 -0800 | [diff] [blame] | 186 | ] |
| 187 | } |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 188 | |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 189 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 190 | ":common_objc", |
| 191 | ":videotracksource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 192 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 193 | "../api:optional", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 194 | "../common_video", |
| 195 | "../media:rtc_media_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 196 | "../rtc_base:rtc_base", |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 197 | ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 198 | |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 199 | configs += [ "..:common_objc" ] |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 200 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 201 | # Suppress warnings from the Chromium Clang plugin |
| 202 | # (bugs.webrtc.org/163). |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 203 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 204 | } |
| 205 | } |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 206 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 207 | rtc_static_library("ui_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 208 | if (is_ios) { |
| 209 | sources = [ |
| 210 | "objc/Framework/Classes/UI/RTCCameraPreviewView.m", |
| 211 | "objc/Framework/Classes/UI/RTCEAGLVideoView.m", |
| 212 | "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 213 | "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 214 | ] |
| 215 | } |
| 216 | if (is_mac) { |
| 217 | sources = [ |
| 218 | "objc/Framework/Classes/UI/RTCNSGLVideoView.m", |
| 219 | "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 220 | ] |
| 221 | } |
| 222 | configs += [ "..:common_objc" ] |
| 223 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 224 | ":common_objc", |
| 225 | ":peerconnection_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 226 | ] |
| 227 | } |
kthelgason | ebc34e7 | 2016-09-15 04:30:18 -0700 | [diff] [blame] | 228 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 229 | if (rtc_use_metal_rendering) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 230 | rtc_static_library("metal_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 231 | sources = [ |
| 232 | "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
| 233 | "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
| 234 | "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
| 235 | "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
| 236 | "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
| 237 | ] |
| 238 | if (is_ios) { |
| 239 | sources += [ |
| 240 | "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
| 241 | "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
| 242 | "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
| 243 | "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", |
| 244 | ] |
| 245 | } |
| 246 | if (is_mac) { |
| 247 | sources += [ |
| 248 | "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", |
| 249 | "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 250 | ] |
| 251 | } |
| 252 | libs = [ |
| 253 | "CoreVideo.framework", |
| 254 | "Metal.framework", |
| 255 | "MetalKit.framework", |
| 256 | ] |
| 257 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 258 | ":video_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 259 | "../api:video_frame_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 260 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 261 | ] |
| 262 | configs += [ "..:common_objc" ] |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 263 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 264 | } |
| 265 | } |
| 266 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 267 | rtc_static_library("peerconnection_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 268 | sources = [ |
| 269 | "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Private.h", |
| 270 | "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 271 | "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", |
| 272 | "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
| 273 | ] |
| 274 | if (is_ios) { |
| 275 | sources += [ |
| 276 | "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", |
| 277 | "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", |
| 278 | ] |
| 279 | } |
| 280 | libs = [ "AVFoundation.framework" ] |
| 281 | |
| 282 | if (is_ios) { |
| 283 | libs += [ "CoreGraphics.framework" ] |
| 284 | } |
| 285 | |
| 286 | configs += [ "..:common_objc" ] |
| 287 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 288 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 289 | |
| 290 | if (!build_with_chromium && is_clang) { |
| 291 | # Suppress warnings from the Chromium Clang plugin |
| 292 | # (bugs.webrtc.org/163). |
| 293 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 294 | } |
| 295 | |
| 296 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 297 | ":common_objc", |
| 298 | ":corevideoframebuffer_objc", |
| 299 | ":peerconnectionfactory_objc", |
| 300 | ":video_objc", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 301 | "../api:video_frame_api", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 302 | "../media:rtc_media_base", |
| 303 | "../pc:libjingle_peerconnection", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 304 | "../rtc_base:rtc_base", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 305 | ] |
| 306 | |
| 307 | if (rtc_use_metal_rendering) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 308 | deps += [ ":metal_objc" ] |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 309 | } |
| 310 | |
| 311 | if (rtc_build_libyuv) { |
| 312 | deps += [ "$rtc_libyuv_dir" ] |
| 313 | public_deps = [ |
| 314 | "$rtc_libyuv_dir", |
| 315 | ] |
| 316 | } |
| 317 | } |
| 318 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 319 | rtc_static_library("peerconnectionfactory_objc") { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 320 | sources = [ |
Anders Carlsson | 1d4c152 | 2017-10-30 13:07:07 +0100 | [diff] [blame] | 321 | "objc/Framework/Classes/PeerConnection/RTCDefaultVideoDecoderFactory.m", |
| 322 | "objc/Framework/Classes/PeerConnection/RTCDefaultVideoEncoderFactory.m", |
magjed | b8853ca | 2017-08-29 03:57:22 -0700 | [diff] [blame] | 323 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 324 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h", |
| 325 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 326 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 327 | ] |
| 328 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 329 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 330 | |
| 331 | if (!build_with_chromium && is_clang) { |
| 332 | # Suppress warnings from the Chromium Clang plugin |
| 333 | # (bugs.webrtc.org/163). |
| 334 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 335 | } |
| 336 | |
| 337 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 338 | ":common_objc", |
| 339 | ":corevideoframebuffer_objc", |
| 340 | ":peerconnectionfactory_base_objc", |
| 341 | ":video_objc", |
| 342 | ":videotoolbox_objc", |
| 343 | ":videotracksource_objc", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 344 | "../api:video_frame_api", |
magjed | b8853ca | 2017-08-29 03:57:22 -0700 | [diff] [blame] | 345 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 346 | "../api/audio_codecs:builtin_audio_encoder_factory", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 347 | "../api/video_codecs:video_codecs_api", |
| 348 | "../media:rtc_audio_video", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 349 | "../media:rtc_media_base", |
| 350 | "../pc:create_pc_factory", |
| 351 | "../pc:peerconnection", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 352 | "../rtc_base:rtc_base", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 353 | "../system_wrappers:field_trial_api", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 354 | ] |
| 355 | } |
| 356 | |
| 357 | # Build the PeerConnectionFactory without audio/video support. |
| 358 | # This target depends on the objc_peeerconnectionfactory_base which still |
| 359 | # includes some audio/video related objects such as RTCAudioSource because |
| 360 | # these objects are just thin wrappers of native C++ interfaces required |
| 361 | # when implementing webrtc::PeerConnectionFactoryInterface and |
| 362 | # webrtc::PeerConnectionInterface. |
| 363 | # The applications which only use WebRTC DataChannel can depend on this |
| 364 | # target instead of rtc_sdk_objc. |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 365 | rtc_static_library("peerconnectionfactory_no_media_objc") { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 366 | defines = [ "HAVE_NO_MEDIA" ] |
| 367 | |
| 368 | sources = [ |
magjed | b8853ca | 2017-08-29 03:57:22 -0700 | [diff] [blame] | 369 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 370 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h", |
| 371 | "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", |
| 372 | ] |
| 373 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 374 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 375 | |
| 376 | if (!build_with_chromium && is_clang) { |
| 377 | # Suppress warnings from the Chromium Clang plugin |
| 378 | # (bugs.webrtc.org/163). |
| 379 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 380 | } |
| 381 | |
| 382 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 383 | ":peerconnectionfactory_base_objc", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 384 | "../api:libjingle_peerconnection_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 385 | "../rtc_base:rtc_base", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 386 | ] |
| 387 | } |
| 388 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 389 | rtc_static_library("peerconnectionfactory_base_objc") { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 390 | sources = [ |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 391 | "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", |
| 392 | "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", |
| 393 | "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", |
| 394 | "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", |
Zeke Chin | ef1140e | 2017-10-27 15:42:08 -0700 | [diff] [blame] | 395 | "objc/Framework/Classes/PeerConnection/RTCConfiguration+Native.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 396 | "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", |
| 397 | "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", |
| 398 | "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", |
| 399 | "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", |
| 400 | "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Private.h", |
| 401 | "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 402 | "objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 403 | "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", |
| 404 | "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", |
| 405 | "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", |
| 406 | "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", |
Steve Anton | d295e40 | 2017-07-14 16:06:41 -0700 | [diff] [blame] | 407 | "objc/Framework/Classes/PeerConnection/RTCIntervalRange+Private.h", |
| 408 | "objc/Framework/Classes/PeerConnection/RTCIntervalRange.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 409 | "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", |
| 410 | "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", |
| 411 | "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", |
| 412 | "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", |
| 413 | "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", |
| 414 | "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", |
| 415 | "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", |
| 416 | "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", |
| 417 | "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", |
| 418 | "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", |
| 419 | "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", |
| 420 | "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", |
| 421 | "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", |
| 422 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm", |
| 423 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", |
| 424 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", |
| 425 | "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 426 | "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", |
| 427 | "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", |
| 428 | "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private.h", |
| 429 | "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 430 | "objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 431 | "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", |
| 432 | "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", |
| 433 | "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", |
| 434 | "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", |
| 435 | "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", |
| 436 | "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", |
| 437 | "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", |
| 438 | "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", |
| 439 | "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", |
| 440 | "objc/Framework/Classes/PeerConnection/RTCTracing.mm", |
| 441 | "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 442 | "objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h", |
| 443 | "objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 444 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP8.mm", |
| 445 | "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP9.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 446 | "objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 447 | "objc/Framework/Classes/PeerConnection/RTCVideoFrame+Private.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 448 | "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", |
| 449 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h", |
| 450 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", |
| 451 | "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", |
| 452 | "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", |
| 453 | "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", |
| 454 | "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", |
| 455 | "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 456 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.h", |
| 457 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.mm", |
| 458 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.h", |
| 459 | "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.mm", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 460 | "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
Kári Tristan Helgason | f93f5a4 | 2017-05-31 10:04:55 +0200 | [diff] [blame] | 461 | "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 462 | "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 463 | "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
| 464 | "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
| 465 | "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 466 | "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
| 467 | "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
Steve Anton | d295e40 | 2017-07-14 16:06:41 -0700 | [diff] [blame] | 468 | "objc/Framework/Headers/WebRTC/RTCIntervalRange.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 469 | "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 470 | "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
| 471 | "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
| 472 | "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
| 473 | "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
| 474 | "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 475 | "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 476 | "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
| 477 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
| 478 | "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
| 479 | "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
| 480 | "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
| 481 | "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 482 | "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
| 483 | "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 484 | "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 485 | "objc/Framework/Headers/WebRTC/RTCTracing.h", |
hewwatt | ace5c88 | 2017-04-27 06:26:19 -0700 | [diff] [blame] | 486 | "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 487 | "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
Anders Carlsson | e5960ce | 2017-06-22 15:26:30 +0200 | [diff] [blame] | 488 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 489 | "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 490 | "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
| 491 | "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
magjed | 1394191 | 2017-05-30 06:11:58 -0700 | [diff] [blame] | 492 | "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
kthelgason | 5fe4d49 | 2016-12-05 11:27:30 -0800 | [diff] [blame] | 493 | ] |
kthelgason | ebc34e7 | 2016-09-15 04:30:18 -0700 | [diff] [blame] | 494 | |
kthelgason | c097710 | 2017-04-24 00:57:16 -0700 | [diff] [blame] | 495 | configs += [ "..:common_objc" ] |
| 496 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 497 | public_configs = [ ":common_config_objc" ] |
kthelgason | c097710 | 2017-04-24 00:57:16 -0700 | [diff] [blame] | 498 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 499 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 500 | # Suppress warnings from the Chromium Clang plugin |
| 501 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 502 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 503 | } |
| 504 | |
| 505 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 506 | ":common_objc", |
| 507 | ":corevideoframebuffer_objc", |
| 508 | ":videotracksource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 509 | "../api:video_frame_api", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 510 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | e5960ce | 2017-06-22 15:26:30 +0200 | [diff] [blame] | 511 | "../common_video", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 512 | "../media:rtc_media_base", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 513 | "../modules:module_api", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 514 | "../modules/video_coding:webrtc_vp8", |
| 515 | "../modules/video_coding:webrtc_vp9", |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 516 | "../pc:peerconnection", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 517 | "../rtc_base:rtc_base", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 518 | ] |
kthelgason | ebc34e7 | 2016-09-15 04:30:18 -0700 | [diff] [blame] | 519 | } |
Zeke Chin | dd0e1e0 | 2016-10-11 13:27:26 -0700 | [diff] [blame] | 520 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 521 | if (rtc_include_tests) { |
Daniela | ae012cf | 2017-10-12 13:46:00 +0200 | [diff] [blame] | 522 | # TODO(denicija):remove second part of this check. |
| 523 | if (is_ios && (current_cpu == "arm64" || use_ios_simulator)) { |
| 524 | rtc_source_set("sdk_unittests_sources") { |
| 525 | testonly = true |
| 526 | include_dirs = [ |
| 527 | "objc/Framework/Headers", |
| 528 | "objc/Framework/Classes", |
| 529 | ] |
| 530 | sources = [ |
| 531 | # TODO(denicija): Once more sources are included, |
| 532 | # move the second part of the check on line 516 here |
| 533 | # when adding this file to the sources |
| 534 | "objc/Framework/UnitTests/RTCMTLVideoView_xctest.mm", |
| 535 | ] |
| 536 | if (use_ios_simulator) { |
| 537 | # Only include this file on simulator, as it's already |
| 538 | # included in device builds. |
| 539 | sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] |
| 540 | libs = [ "CoreVideo.framework" ] |
| 541 | } |
| 542 | deps = [ |
| 543 | ":common_objc", |
| 544 | ":peerconnection_objc", |
| 545 | ":peerconnectionfactory_objc", |
| 546 | ":videotoolbox_objc", |
| 547 | ":videotracksource_objc", |
| 548 | "..//system_wrappers:system_wrappers_default", |
| 549 | "../media:rtc_media_base", |
| 550 | "../modules:module_api", |
| 551 | "../rtc_base:rtc_base", |
| 552 | "../rtc_base:rtc_base_tests_utils", |
| 553 | "../system_wrappers:system_wrappers_default", |
| 554 | ] |
| 555 | public_deps = [ |
| 556 | "//build/config/ios:xctest", |
| 557 | "//third_party/ocmock", |
| 558 | ] |
| 559 | } |
| 560 | |
| 561 | rtc_ios_xctest_test("sdk_unittests") { |
| 562 | info_plist = "//test/ios/Info.plist" |
| 563 | sources = [ |
| 564 | "objc/Framework/UnitTests/main.m", |
| 565 | ] |
| 566 | _bundle_id_suffix = ios_generic_test_bundle_id_suffix |
| 567 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ] |
| 568 | deps = [ |
| 569 | ":sdk_unittests_sources", |
| 570 | ] |
| 571 | ldflags = [ "-all_load" ] |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | # TODO(denicija): once all tests are migrated to xctest remove this source set. |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 576 | rtc_source_set("sdk_unittests_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 577 | testonly = true |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 578 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 579 | # Skip restricting visibility on mobile platforms since the tests on those |
| 580 | # gets additional generated targets which would require many lines here to |
| 581 | # cover (which would be confusing to read and hard to maintain). |
| 582 | if (!is_android && !is_ios) { |
| 583 | visibility = [ "..:rtc_unittests" ] |
| 584 | } |
| 585 | sources = [ |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 586 | "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
| 587 | "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
| 588 | "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
| 589 | "objc/Framework/UnitTests/RTCIceServerTest.mm", |
Steve Anton | d295e40 | 2017-07-14 16:06:41 -0700 | [diff] [blame] | 590 | "objc/Framework/UnitTests/RTCIntervalRangeTests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 591 | "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
| 592 | "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", |
| 593 | "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
jtteh | 7480da4 | 2017-07-07 11:02:15 -0700 | [diff] [blame] | 594 | "objc/Framework/UnitTests/RTCTracingTest.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 595 | "objc/Framework/UnitTests/avformatmappertests.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 596 | "objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm", |
| 597 | "objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm", |
Kári Tristan Helgason | ca95748 | 2017-10-05 14:06:52 +0200 | [diff] [blame] | 598 | "objc/Framework/UnitTests/scoped_cftyperef_tests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 599 | ] |
oprypin | 4519752 | 2017-06-22 01:47:20 -0700 | [diff] [blame] | 600 | if (is_ios && |
| 601 | !(use_ios_simulator && |
| 602 | # The tests crash on these simulator versions: |
| 603 | (ios_sdk_version == "10.0" || ios_sdk_version == "10.1"))) { |
| 604 | sources += |
| 605 | [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ] |
| 606 | } |
mbonadei | d762058 | 2017-05-30 01:50:35 -0700 | [diff] [blame] | 607 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 608 | # |-ObjC| flag needed to make sure category method implementations |
| 609 | # are included: |
| 610 | # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 611 | ldflags = [ "-ObjC" ] |
magjed | 3149e09 | 2017-05-08 05:32:05 -0700 | [diff] [blame] | 612 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 613 | defines = [ "GTEST_RELATIVE_PATH" ] |
| 614 | deps = [ |
Kári Tristan Helgason | ca95748 | 2017-10-05 14:06:52 +0200 | [diff] [blame] | 615 | ":common_objc", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 616 | ":peerconnection_objc", |
| 617 | ":peerconnectionfactory_objc", |
| 618 | ":videotoolbox_objc", |
| 619 | ":videotracksource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 620 | "..//system_wrappers:system_wrappers_default", |
kthelgason | ebd4f79 | 2017-09-04 04:36:21 -0700 | [diff] [blame] | 621 | "../media:rtc_media_base", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 622 | "../modules:module_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 623 | "../rtc_base:rtc_base_tests_utils", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 624 | "../system_wrappers:system_wrappers_default", |
Kári Tristan Helgason | ca95748 | 2017-10-05 14:06:52 +0200 | [diff] [blame] | 625 | "//test:test_support", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 626 | "//third_party/ocmock", |
| 627 | ] |
magjed | 3149e09 | 2017-05-08 05:32:05 -0700 | [diff] [blame] | 628 | |
denicija | 59ee91b | 2017-06-05 05:48:47 -0700 | [diff] [blame] | 629 | if (is_ios) { |
| 630 | sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 631 | } |
Daniela | ae012cf | 2017-10-12 13:46:00 +0200 | [diff] [blame] | 632 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 633 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 634 | # Suppress warnings from the Chromium Clang plugin |
| 635 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 636 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 637 | } |
| 638 | } |
kthelgason | 2f08879 | 2017-05-30 01:48:47 -0700 | [diff] [blame] | 639 | } |
| 640 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 641 | if (is_ios) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 642 | ios_framework_bundle("framework_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 643 | info_plist = "objc/Framework/Info.plist" |
| 644 | output_name = "WebRTC" |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 +0000 | [diff] [blame] | 645 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 646 | common_objc_headers = [ |
Jeremy Newton-Smith | 96de428 | 2017-08-23 10:02:23 -0700 | [diff] [blame] | 647 | "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 +0000 | [diff] [blame] | 648 | "objc/Framework/Headers/WebRTC/RTCVideoCodec.h", |
| 649 | "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h", |
Jeremy Newton-Smith | 96de428 | 2017-08-23 10:02:23 -0700 | [diff] [blame] | 650 | "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 +0000 | [diff] [blame] | 651 | "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 652 | "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 653 | "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
| 654 | "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
| 655 | "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 656 | "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
| 657 | "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
| 658 | "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
| 659 | "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 660 | "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 661 | "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 662 | "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
| 663 | "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
Steve Anton | d295e40 | 2017-07-14 16:06:41 -0700 | [diff] [blame] | 664 | "objc/Framework/Headers/WebRTC/RTCIntervalRange.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 665 | "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
| 666 | "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 667 | "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 668 | "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
| 669 | "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
| 670 | "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
| 671 | "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
| 672 | "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 673 | "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 674 | "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
| 675 | "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
| 676 | "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
| 677 | "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
| 678 | "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
| 679 | "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 680 | "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
| 681 | "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 682 | "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 683 | "objc/Framework/Headers/WebRTC/RTCTracing.h", |
| 684 | "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame] | 685 | "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h", |
| 686 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP8.h", |
| 687 | "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP9.h", |
| 688 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP8.h", |
| 689 | "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP9.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 690 | "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
Anders Carlsson | e5960ce | 2017-06-22 15:26:30 +0200 | [diff] [blame] | 691 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 692 | "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 693 | "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
| 694 | "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
| 695 | "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
| 696 | "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
| 697 | "objc/Framework/Headers/WebRTC/WebRTC.h", |
| 698 | ] |
| 699 | if (rtc_use_metal_rendering) { |
| 700 | common_objc_headers += |
| 701 | [ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h" ] |
| 702 | } |
| 703 | sources = common_objc_headers |
| 704 | public_headers = common_objc_headers |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 705 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 706 | if (!build_with_chromium) { |
| 707 | sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 708 | public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 709 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 710 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 711 | ldflags = [ |
| 712 | "-all_load", |
| 713 | "-install_name", |
| 714 | "@rpath/$output_name.framework/$output_name", |
| 715 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 716 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 717 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 718 | ":audio_objc", |
| 719 | ":peerconnection_objc", |
| 720 | ":ui_objc", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 721 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 722 | "../system_wrappers:field_trial_default", |
| 723 | "../system_wrappers:metrics_default", |
| 724 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 725 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 726 | libs = [ |
| 727 | "AVFoundation.framework", |
| 728 | "CoreGraphics.framework", |
| 729 | "CoreMedia.framework", |
| 730 | "GLKit.framework", |
| 731 | ] |
| 732 | |
| 733 | configs += [ "..:common_objc" ] |
| 734 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 735 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 736 | |
| 737 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 738 | # Suppress warnings from the Chromium Clang plugin |
| 739 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 740 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 741 | } |
| 742 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 743 | } |
| 744 | |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 745 | rtc_static_library("rtc_sdk_objc") { |
| 746 | complete_static_lib = true |
| 747 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 748 | ":peerconnection_objc", |
| 749 | ":ui_objc", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 750 | "../system_wrappers:field_trial_default", |
| 751 | "../system_wrappers:metrics_default", |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 752 | ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 753 | } |
| 754 | |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 755 | rtc_static_library("corevideoframebuffer_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 756 | sources = [ |
| 757 | "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", |
| 758 | "objc/Framework/Classes/Video/corevideo_frame_buffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 759 | ] |
| 760 | |
| 761 | deps = [ |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 762 | "../common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 763 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 764 | ] |
| 765 | |
| 766 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 767 | # Suppress warnings from the Chromium Clang plugin |
| 768 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 769 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 770 | } |
| 771 | |
| 772 | libs = [ "CoreVideo.framework" ] |
| 773 | } |
| 774 | |
mbonadei | c0af5ac | 2017-08-24 12:26:05 -0700 | [diff] [blame] | 775 | rtc_static_library("video_toolbox_cc") { |
mbonadei | 6ff8f96 | 2017-09-04 05:51:34 -0700 | [diff] [blame] | 776 | visibility = [ ":videotoolbox_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 777 | sources = [ |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 778 | "objc/Framework/Classes/VideoToolbox/helpers.cc", |
| 779 | "objc/Framework/Classes/VideoToolbox/helpers.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 780 | "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", |
| 781 | "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", |
mbonadei | c0af5ac | 2017-08-24 12:26:05 -0700 | [diff] [blame] | 782 | ] |
| 783 | deps = [ |
| 784 | "../common_video", |
| 785 | "../modules:module_api", |
| 786 | "../modules/video_coding:webrtc_h264", |
| 787 | "../rtc_base:rtc_base_approved", |
| 788 | ] |
| 789 | if (!build_with_chromium && is_clang) { |
| 790 | # Suppress warnings from the Chromium Clang plugin |
| 791 | # (bugs.webrtc.org/163). |
| 792 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | rtc_static_library("videotoolbox_objc") { |
| 797 | sources = [ |
| 798 | "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm", |
| 799 | "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 800 | "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h", |
| 801 | "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm", |
| 802 | "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.h", |
| 803 | "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm", |
Anders Carlsson | e5960ce | 2017-06-22 15:26:30 +0200 | [diff] [blame] | 804 | "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 805 | ] |
| 806 | |
| 807 | configs += [ "..:common_objc" ] |
| 808 | |
| 809 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 810 | ":common_objc", |
| 811 | ":video_objc", |
mbonadei | c0af5ac | 2017-08-24 12:26:05 -0700 | [diff] [blame] | 812 | ":video_toolbox_cc", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 813 | ":videotracksource_objc", |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 814 | "../api/video_codecs:video_codecs_api", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 815 | "../common_video", |
| 816 | "../media:rtc_media", |
| 817 | "../media:rtc_media_base", |
| 818 | "../modules:module_api", |
| 819 | "../modules/video_coding:video_coding_utility", |
| 820 | "../modules/video_coding:webrtc_h264", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 821 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 822 | "../system_wrappers", |
| 823 | ] |
| 824 | |
| 825 | libs = [ |
| 826 | "CoreFoundation.framework", |
| 827 | "CoreMedia.framework", |
| 828 | "CoreVideo.framework", |
| 829 | "VideoToolbox.framework", |
| 830 | ] |
| 831 | |
| 832 | if (!build_with_chromium && is_clang) { |
zhihuang | a4c113a | 2017-06-28 14:05:44 -0700 | [diff] [blame] | 833 | # Suppress warnings from the Chromium Clang plugin |
| 834 | # (bugs.webrtc.org/163). |
mbonadei | 2c8ac1b | 2017-05-31 05:14:26 -0700 | [diff] [blame] | 835 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 836 | } |
| 837 | |
| 838 | if (rtc_build_libyuv) { |
| 839 | deps += [ "$rtc_libyuv_dir" ] |
| 840 | public_deps = [ |
| 841 | "$rtc_libyuv_dir", |
| 842 | ] |
| 843 | } else { |
| 844 | # Need to add a directory normally exported by libyuv. |
| 845 | include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 846 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 10:43:26 +0100 | [diff] [blame] | 847 | } |
| 848 | } |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 849 | } |