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