tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1 | # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
mbonadei | 9aa3f0a | 2017-01-24 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 10 | if (is_ios) { |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 11 | import("//build/config/ios/ios_sdk.gni") |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 12 | import("//build/config/ios/rules.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 13 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 14 | if (is_mac) { |
| 15 | import("//build/config/mac/rules.gni") |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 16 | } |
| 17 | |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 18 | group("sdk") { |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 19 | public_deps = [] |
| 20 | if (!build_with_chromium) { |
| 21 | if (is_android) { |
| 22 | public_deps += [ "android" ] |
| 23 | } |
| 24 | if (is_ios) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 25 | public_deps += [ ":framework_objc" ] |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 26 | } |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 27 | } |
| 28 | } |
| 29 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 30 | rtc_library("media_constraints") { |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 31 | sources = [ |
| 32 | "media_constraints.cc", |
| 33 | "media_constraints.h", |
| 34 | ] |
| 35 | deps = [ |
| 36 | "../api:audio_options_api", |
| 37 | "../api:libjingle_peerconnection_api", |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 38 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 39 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 40 | } |
| 41 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 42 | rtc_library("sdk_tests") { |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 43 | testonly = true |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 44 | sources = [ "media_constraints_unittest.cc" ] |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 45 | deps = [ |
| 46 | ":media_constraints", |
| 47 | "../test:test_support", |
| 48 | ] |
| 49 | } |
| 50 | |
kthelgason | cc2d1c6 | 2016-11-09 15:44:27 | [diff] [blame] | 51 | if (is_ios || is_mac) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 52 | config("common_config_objc") { |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 53 | include_dirs = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 54 | "objc", |
| 55 | |
| 56 | # This is needed so that framework headers can include base headers |
| 57 | # without pathname (so it works from within the framework module). |
| 58 | "objc/base", |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 59 | ] |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 13:28:51 | [diff] [blame] | 60 | cflags = [ |
Jiawei Ou | 4aeb35b | 2018-11-09 21:55:45 | [diff] [blame] | 61 | "-Wimplicit-retain-self", |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 13:28:51 | [diff] [blame] | 62 | "-Wstrict-overflow", |
| 63 | "-Wmissing-field-initializers", |
| 64 | ] |
Artem Titarenko | 17ad64e | 2018-09-19 15:53:59 | [diff] [blame] | 65 | |
| 66 | if (use_clang_coverage) { |
| 67 | configs = [ "//build/config/coverage:default_coverage" ] |
| 68 | } |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 69 | } |
| 70 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 71 | config("used_from_extension") { |
| 72 | if (is_ios && rtc_apprtcmobile_broadcast_extension) { |
| 73 | cflags = [ "-fapplication-extension" ] |
| 74 | } |
| 75 | } |
| 76 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 77 | # TODO(bugs.webrtc.org/9627): Remove this when unused. Targets should depend on base_objc |
| 78 | # or helpers_objc directly instead. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 79 | rtc_library("common_objc") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 80 | visibility = [ "*" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 81 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 82 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 83 | |
| 84 | public_configs = [ ":common_config_objc" ] |
| 85 | |
| 86 | deps = [ |
| 87 | ":base_objc", |
| 88 | ":helpers_objc", |
| 89 | ] |
| 90 | } |
| 91 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 92 | rtc_library("base_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 93 | visibility = [ "*" ] |
| 94 | sources = [ |
| 95 | "objc/base/RTCCodecSpecificInfo.h", |
| 96 | "objc/base/RTCEncodedImage.h", |
| 97 | "objc/base/RTCEncodedImage.m", |
| 98 | "objc/base/RTCI420Buffer.h", |
| 99 | "objc/base/RTCLogging.h", |
| 100 | "objc/base/RTCLogging.mm", |
| 101 | "objc/base/RTCMacros.h", |
| 102 | "objc/base/RTCMutableI420Buffer.h", |
| 103 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 104 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 105 | "objc/base/RTCVideoCapturer.h", |
| 106 | "objc/base/RTCVideoCapturer.m", |
| 107 | "objc/base/RTCVideoCodecInfo.h", |
| 108 | "objc/base/RTCVideoCodecInfo.m", |
| 109 | "objc/base/RTCVideoDecoder.h", |
| 110 | "objc/base/RTCVideoDecoderFactory.h", |
| 111 | "objc/base/RTCVideoEncoder.h", |
| 112 | "objc/base/RTCVideoEncoderFactory.h", |
| 113 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 114 | "objc/base/RTCVideoEncoderQpThresholds.m", |
| 115 | "objc/base/RTCVideoEncoderSettings.h", |
| 116 | "objc/base/RTCVideoEncoderSettings.m", |
| 117 | "objc/base/RTCVideoFrame.h", |
| 118 | "objc/base/RTCVideoFrame.mm", |
| 119 | "objc/base/RTCVideoFrameBuffer.h", |
| 120 | "objc/base/RTCVideoRenderer.h", |
| 121 | "objc/base/RTCYUVPlanarBuffer.h", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 122 | ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 123 | |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 124 | deps = [ |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 125 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 126 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 127 | "../rtc_base:logging", |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 128 | ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 129 | configs += [ |
| 130 | "..:common_objc", |
| 131 | ":used_from_extension", |
| 132 | ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 133 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 134 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 135 | } |
| 136 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 137 | rtc_library("helpers_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 138 | sources = [ |
| 139 | "objc/helpers/AVCaptureSession+DevicePosition.h", |
| 140 | "objc/helpers/AVCaptureSession+DevicePosition.mm", |
| 141 | "objc/helpers/NSString+StdString.h", |
| 142 | "objc/helpers/NSString+StdString.mm", |
| 143 | "objc/helpers/RTCDispatcher+Private.h", |
| 144 | "objc/helpers/RTCDispatcher.h", |
| 145 | "objc/helpers/RTCDispatcher.m", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 146 | "objc/helpers/scoped_cftyperef.h", |
| 147 | ] |
| 148 | |
| 149 | deps = [ |
| 150 | ":base_objc", |
| 151 | "../rtc_base:checks", |
| 152 | ] |
| 153 | |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 154 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
| 155 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 156 | frameworks = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 157 | "AVFoundation.framework", |
| 158 | "CoreMedia.framework", |
| 159 | ] |
| 160 | |
| 161 | configs += [ |
| 162 | "..:common_objc", |
| 163 | ":used_from_extension", |
| 164 | ] |
| 165 | |
| 166 | public_configs = [ ":common_config_objc" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 167 | |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 168 | if (is_ios) { |
| 169 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 170 | "objc/helpers/RTCCameraPreviewView.h", |
| 171 | "objc/helpers/RTCCameraPreviewView.m", |
| 172 | "objc/helpers/UIDevice+RTCDevice.h", |
| 173 | "objc/helpers/UIDevice+RTCDevice.mm", |
| 174 | ] |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | if (!build_with_chromium) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 179 | rtc_library("callback_logger_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 180 | sources = [ |
| 181 | "objc/api/logging/RTCCallbackLogger.h", |
| 182 | "objc/api/logging/RTCCallbackLogger.mm", |
| 183 | ] |
| 184 | |
| 185 | deps = [ |
| 186 | ":base_objc", |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 187 | ":helpers_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 188 | "../rtc_base", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 189 | "../rtc_base:checks", |
| 190 | "../rtc_base:logging", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 191 | ] |
| 192 | |
| 193 | configs += [ |
| 194 | "..:common_objc", |
| 195 | ":used_from_extension", |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 196 | ] |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 197 | |
| 198 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 199 | } |
| 200 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 201 | rtc_library("file_logger_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 202 | sources = [ |
| 203 | "objc/api/peerconnection/RTCFileLogger.h", |
| 204 | "objc/api/peerconnection/RTCFileLogger.mm", |
| 205 | ] |
| 206 | |
| 207 | deps = [ |
| 208 | ":base_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 209 | "../rtc_base", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 210 | "../rtc_base:checks", |
| 211 | "../rtc_base:logging", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 212 | ] |
| 213 | |
| 214 | configs += [ |
| 215 | "..:common_objc", |
| 216 | ":used_from_extension", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 217 | ] |
| 218 | } |
| 219 | } |
| 220 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 221 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 222 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 223 | rtc_library("native_api_audio_device_module") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 224 | visibility = [ "*" ] |
| 225 | |
| 226 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 227 | "objc/native/api/audio_device_module.h", |
| 228 | "objc/native/api/audio_device_module.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 229 | ] |
| 230 | |
| 231 | deps = [ |
| 232 | ":audio_device", |
| 233 | "../modules/audio_device:audio_device_api", |
| 234 | "../modules/audio_device:audio_device_generic", |
| 235 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 236 | "../rtc_base:logging", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 237 | "../rtc_base:refcount", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 238 | "../rtc_base:rtc_base_approved", |
| 239 | "../system_wrappers", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 240 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | rtc_source_set("audio_session_observer") { |
| 244 | visibility = [ ":*" ] |
| 245 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 246 | sources = [ "objc/native/src/audio/audio_session_observer.h" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 247 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 248 | deps = [ |
| 249 | "../rtc_base", |
| 250 | "../rtc_base:threading", |
| 251 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 252 | } |
| 253 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 254 | rtc_library("audio_device") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 255 | visibility = [ "*" ] |
| 256 | |
| 257 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 258 | "objc/native/src/audio/audio_device_ios.h", |
| 259 | "objc/native/src/audio/audio_device_ios.mm", |
| 260 | "objc/native/src/audio/audio_device_module_ios.h", |
| 261 | "objc/native/src/audio/audio_device_module_ios.mm", |
| 262 | "objc/native/src/audio/helpers.h", |
| 263 | "objc/native/src/audio/helpers.mm", |
| 264 | "objc/native/src/audio/voice_processing_audio_unit.h", |
| 265 | "objc/native/src/audio/voice_processing_audio_unit.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 266 | ] |
| 267 | |
| 268 | deps = [ |
| 269 | ":audio_objc", |
| 270 | ":audio_session_observer", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 271 | ":base_objc", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 272 | "../api:array_view", |
Florent Castelli | 8d4e9fb | 2022-04-04 15:18:21 | [diff] [blame] | 273 | "../api:sequence_checker", |
Danil Chapovalov | a6cb150 | 2019-06-27 13:16:34 | [diff] [blame] | 274 | "../api/task_queue", |
| 275 | "../api/task_queue:default_task_queue_factory", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 276 | "../modules/audio_device:audio_device_api", |
| 277 | "../modules/audio_device:audio_device_buffer", |
| 278 | "../modules/audio_device:audio_device_generic", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 279 | "../rtc_base", |
Florent Castelli | bddfe02 | 2022-04-04 13:03:10 | [diff] [blame] | 280 | "../rtc_base:atomicops", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 281 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 282 | "../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 283 | "../rtc_base:macromagic", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 284 | "../rtc_base:refcount", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 285 | "../rtc_base:threading", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 286 | "../rtc_base:timeutils", |
Kári Tristan Helgason | f49429d | 2019-03-28 10:03:27 | [diff] [blame] | 287 | "../system_wrappers:field_trial", |
Mirko Bonadei | 17f4878 | 2018-09-28 06:51:10 | [diff] [blame] | 288 | "../system_wrappers:metrics", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 289 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 290 | absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 291 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 292 | frameworks = [ "AudioToolbox.framework" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 293 | } |
| 294 | |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 295 | # This target exists to expose :audio_session_objc and |
| 296 | # :audio_session_delegate_adapter_objc for backward compatibility, |
| 297 | # and should be deprecated. |
| 298 | group("audio_objc") { |
| 299 | public_deps = [ # no-presubmit-check TODO(webrtc:11238) |
| 300 | ":audio_session_delegate_adapter_objc", |
| 301 | ":audio_session_objc", |
| 302 | ] |
| 303 | } |
| 304 | |
| 305 | rtc_library("audio_session_delegate_adapter_objc") { |
| 306 | sources = [ |
| 307 | "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.h", |
| 308 | "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.mm", |
| 309 | ] |
| 310 | |
| 311 | configs += [ |
| 312 | "..:common_objc", |
| 313 | ":used_from_extension", |
| 314 | ] |
| 315 | |
| 316 | public_configs = [ ":common_config_objc" ] |
| 317 | |
| 318 | deps = [ |
| 319 | ":audio_session_objc", |
| 320 | ":audio_session_observer", |
| 321 | ":base_objc", |
| 322 | ] |
| 323 | } |
| 324 | |
| 325 | rtc_library("audio_session_objc") { |
Joe Chen | 3b19b27 | 2020-01-09 16:31:06 | [diff] [blame] | 326 | visibility = [ "*" ] |
| 327 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 328 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 329 | "objc/components/audio/RTCAudioSession+Configuration.mm", |
| 330 | "objc/components/audio/RTCAudioSession+Private.h", |
| 331 | "objc/components/audio/RTCAudioSession.h", |
| 332 | "objc/components/audio/RTCAudioSession.mm", |
| 333 | "objc/components/audio/RTCAudioSessionConfiguration.h", |
| 334 | "objc/components/audio/RTCAudioSessionConfiguration.m", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 335 | ] |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 336 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 337 | configs += [ |
| 338 | "..:common_objc", |
| 339 | ":used_from_extension", |
| 340 | ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 341 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 342 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 8ecfd80 | 2017-09-15 12:07:30 | [diff] [blame] | 343 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 344 | frameworks = [ "AVFoundation.framework" ] |
Jiawei Ou | c9e6b96 | 2018-10-09 19:33:06 | [diff] [blame] | 345 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 346 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 347 | ":base_objc", |
| 348 | ":helpers_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 349 | "../rtc_base", |
Florent Castelli | bddfe02 | 2022-04-04 13:03:10 | [diff] [blame] | 350 | "../rtc_base:atomicops", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 351 | "../rtc_base:checks", |
| 352 | "../rtc_base:rtc_base_approved", |
Niels Möller | 072c008 | 2021-02-15 15:30:44 | [diff] [blame] | 353 | "../rtc_base/synchronization:mutex", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 354 | ] |
Byoungchan Lee | 0a54e7a | 2021-09-06 13:32:52 | [diff] [blame] | 355 | |
| 356 | absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 357 | } |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 358 | |
| 359 | rtc_source_set("network_monitor_observer") { |
| 360 | visibility = [ ":*" ] |
| 361 | |
| 362 | sources = [ "objc/native/src/network_monitor_observer.h" ] |
| 363 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 364 | deps = [ |
| 365 | "../rtc_base", |
| 366 | "../rtc_base:network_constants", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 367 | "../rtc_base:stringutils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 368 | "../rtc_base:threading", |
| 369 | ] |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 370 | |
| 371 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | rtc_library("network_monitor_objc") { |
| 375 | visibility = [ "*" ] |
| 376 | |
| 377 | sources = [ |
| 378 | "objc/components/network/RTCNetworkMonitor+Private.h", |
| 379 | "objc/components/network/RTCNetworkMonitor.h", |
| 380 | "objc/components/network/RTCNetworkMonitor.mm", |
| 381 | ] |
| 382 | |
| 383 | configs += [ ":used_from_extension" ] |
| 384 | |
| 385 | frameworks = [ "Network.framework" ] |
| 386 | |
| 387 | deps = [ |
| 388 | ":base_objc", |
| 389 | ":helpers_objc", |
| 390 | ":network_monitor_observer", |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 391 | "../rtc_base:stringutils", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 392 | "../rtc_base/system:gcd_helpers", |
| 393 | ] |
| 394 | } |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 395 | } |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 396 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 397 | rtc_library("videosource_objc") { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 398 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 399 | "objc/api/peerconnection/RTCVideoSource+Private.h", |
| 400 | "objc/api/peerconnection/RTCVideoSource.h", |
| 401 | "objc/api/peerconnection/RTCVideoSource.mm", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 402 | ] |
| 403 | |
| 404 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 405 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 406 | ":mediasource_objc", |
| 407 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 408 | ":videoframebuffer_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 409 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 410 | "../api:media_stream_interface", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 411 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 412 | "../api/video:video_rtp_headers", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 413 | "../common_video", |
| 414 | "../media:rtc_media_base", |
Harald Alvestrand | e5a73f5 | 2022-03-28 12:06:34 | [diff] [blame] | 415 | "../pc:video_track_source_proxy", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 416 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 417 | "../rtc_base:checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 418 | "../rtc_base:threading", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 419 | "//third_party/libyuv", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 420 | ] |
| 421 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 422 | configs += [ |
| 423 | "..:common_objc", |
| 424 | ":used_from_extension", |
| 425 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 426 | } |
| 427 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 428 | rtc_library("videoframebuffer_objc") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 429 | visibility = [ "*" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 430 | sources = [ |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 431 | "objc/api/video_frame_buffer/RTCNativeI420Buffer+Private.h", |
| 432 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 433 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.mm", |
| 434 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
| 435 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 436 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 437 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 438 | ] |
| 439 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 440 | ":base_objc", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 441 | "../rtc_base:logging", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 442 | "//api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 443 | "//api/video:video_rtp_headers", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 444 | "//common_video", |
| 445 | "//rtc_base:checks", |
| 446 | "//rtc_base:rtc_base_approved", |
| 447 | "//third_party/libyuv", |
| 448 | ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 449 | configs += [ |
| 450 | "..:common_objc", |
| 451 | ":used_from_extension", |
| 452 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 453 | frameworks = [ |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 454 | "VideoToolbox.framework", |
Oleh Prypin | b3f78de | 2019-07-18 20:25:48 | [diff] [blame] | 455 | "CoreGraphics.framework", |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 456 | "CoreVideo.framework", |
| 457 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 458 | } |
| 459 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 460 | rtc_library("opengl_objc") { |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 461 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 462 | "objc/components/renderer/opengl/RTCDefaultShader.h", |
| 463 | "objc/components/renderer/opengl/RTCDefaultShader.mm", |
| 464 | "objc/components/renderer/opengl/RTCI420TextureCache.h", |
| 465 | "objc/components/renderer/opengl/RTCI420TextureCache.mm", |
| 466 | "objc/components/renderer/opengl/RTCOpenGLDefines.h", |
| 467 | "objc/components/renderer/opengl/RTCShader.h", |
| 468 | "objc/components/renderer/opengl/RTCShader.mm", |
| 469 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 470 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 471 | frameworks = [ "CoreVideo.framework" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 472 | if (is_ios) { |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 473 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 474 | "objc/components/renderer/opengl/RTCNV12TextureCache.h", |
| 475 | "objc/components/renderer/opengl/RTCNV12TextureCache.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 476 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 477 | frameworks += [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 478 | "GLKit.framework", |
| 479 | "OpenGLES.framework", |
| 480 | "QuartzCore.framework", |
| 481 | ] |
| 482 | } else if (is_mac) { |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 483 | frameworks += [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 484 | "CoreMedia.framework", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 485 | "OpenGL.framework", |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 486 | ] |
| 487 | } |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 488 | |
| 489 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 490 | # workaround. |
Björn Terelius | 02768ae | 2021-07-02 14:19:32 | [diff] [blame] | 491 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 492 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 493 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 494 | ":base_objc", |
| 495 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 496 | ":mediaconstraints_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 497 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 498 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 499 | ":videosource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 500 | "../api:libjingle_peerconnection_api", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 501 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 502 | "../api/video:video_rtp_headers", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 503 | "../common_video", |
| 504 | "../media:rtc_media_base", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 505 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 506 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 507 | "../rtc_base:logging", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 508 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 509 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 510 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 511 | configs += [ |
| 512 | "..:common_objc", |
| 513 | ":used_from_extension", |
| 514 | ] |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 515 | } |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 516 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 517 | rtc_library("opengl_ui_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 518 | visibility = [ "*" ] |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 519 | allow_poison = [ |
| 520 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 521 | "default_task_queue", |
| 522 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 523 | if (is_ios) { |
| 524 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 525 | "objc/components/renderer/opengl/RTCDisplayLinkTimer.h", |
| 526 | "objc/components/renderer/opengl/RTCDisplayLinkTimer.m", |
| 527 | "objc/components/renderer/opengl/RTCEAGLVideoView.h", |
| 528 | "objc/components/renderer/opengl/RTCEAGLVideoView.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 529 | ] |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 530 | |
| 531 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 532 | # workaround. |
Björn Terelius | 02768ae | 2021-07-02 14:19:32 | [diff] [blame] | 533 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 534 | } |
| 535 | if (is_mac) { |
| 536 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 537 | "objc/components/renderer/opengl/RTCNSGLVideoView.h", |
| 538 | "objc/components/renderer/opengl/RTCNSGLVideoView.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 539 | ] |
| 540 | } |
| 541 | configs += [ "..:common_objc" ] |
| 542 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 543 | ":base_objc", |
| 544 | ":helpers_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 545 | ":metal_objc", |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 546 | ":opengl_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 547 | ":videocapture_objc", |
| 548 | ":videoframebuffer_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 549 | ] |
| 550 | } |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 551 | |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 552 | rtc_library("metal_objc") { |
| 553 | visibility = [ "*" ] |
| 554 | allow_poison = [ |
| 555 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 556 | "default_task_queue", |
| 557 | ] |
| 558 | sources = [ |
| 559 | "objc/components/renderer/metal/RTCMTLI420Renderer.h", |
| 560 | "objc/components/renderer/metal/RTCMTLI420Renderer.mm", |
| 561 | "objc/components/renderer/metal/RTCMTLNV12Renderer.h", |
| 562 | "objc/components/renderer/metal/RTCMTLNV12Renderer.mm", |
| 563 | "objc/components/renderer/metal/RTCMTLRGBRenderer.h", |
| 564 | "objc/components/renderer/metal/RTCMTLRGBRenderer.mm", |
| 565 | "objc/components/renderer/metal/RTCMTLRenderer+Private.h", |
| 566 | "objc/components/renderer/metal/RTCMTLRenderer.h", |
| 567 | "objc/components/renderer/metal/RTCMTLRenderer.mm", |
| 568 | ] |
| 569 | frameworks = [ |
| 570 | "CoreVideo.framework", |
| 571 | "Metal.framework", |
| 572 | "MetalKit.framework", |
| 573 | ] |
| 574 | if (is_ios) { |
| 575 | sources += [ |
| 576 | "objc/components/renderer/metal/RTCMTLVideoView.h", |
| 577 | "objc/components/renderer/metal/RTCMTLVideoView.m", |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 578 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 579 | } |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 580 | if (is_mac) { |
| 581 | sources += [ |
| 582 | "objc/components/renderer/metal/RTCMTLNSVideoView.h", |
| 583 | "objc/components/renderer/metal/RTCMTLNSVideoView.m", |
| 584 | ] |
| 585 | frameworks += [ "AppKit.framework" ] |
| 586 | } |
| 587 | deps = [ |
| 588 | ":base_objc", |
| 589 | ":peerconnectionfactory_base_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 590 | ":videoframebuffer_objc", |
| 591 | "../api/video:video_frame", |
| 592 | "../api/video:video_rtp_headers", |
| 593 | "../rtc_base:checks", |
| 594 | "../rtc_base:rtc_base_approved", |
| 595 | ] |
| 596 | configs += [ "..:common_objc" ] |
| 597 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 598 | } |
| 599 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 600 | # TODO(bugs.webrtc.org/9627): Remove this target. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 601 | rtc_library("videocapturebase_objc") { |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 602 | visibility = [ "*" ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 603 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 604 | |
| 605 | configs += [ "..:common_objc" ] |
| 606 | |
| 607 | public_configs = [ ":common_config_objc" ] |
| 608 | |
| 609 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 610 | ":base_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 611 | ":videoframebuffer_objc", |
| 612 | ] |
| 613 | } |
| 614 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 615 | rtc_library("videocapture_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 616 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 617 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 618 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 619 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 620 | "objc/components/capturer/RTCCameraVideoCapturer.m", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 621 | "objc/components/capturer/RTCFileVideoCapturer.h", |
| 622 | "objc/components/capturer/RTCFileVideoCapturer.m", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 623 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 624 | frameworks = [ |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 625 | "AVFoundation.framework", |
| 626 | "CoreVideo.framework", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 627 | "QuartzCore.framework", |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 628 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 629 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 630 | configs += [ "..:common_objc" ] |
| 631 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 632 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 633 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 634 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 635 | ":base_objc", |
| 636 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 637 | ":videoframebuffer_objc", |
Yura Yaroshevich | ebf739b | 2020-03-16 15:00:59 | [diff] [blame] | 638 | "../rtc_base/system:gcd_helpers", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 639 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 640 | } |
| 641 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 642 | rtc_library("videocodec_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 643 | visibility = [ "*" ] |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 644 | configs += [ "..:no_global_constructors" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 645 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 646 | "objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h", |
| 647 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 648 | "objc/components/video_codec/RTCCodecSpecificInfoH264.mm", |
| 649 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 650 | "objc/components/video_codec/RTCH264ProfileLevelId.mm", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 651 | ] |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 652 | if (is_ios) { |
| 653 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 654 | "objc/components/video_codec/UIDevice+H264Profile.h", |
| 655 | "objc/components/video_codec/UIDevice+H264Profile.mm", |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 656 | ] |
| 657 | } |
Mirko Bonadei | fc52b91 | 2019-03-01 09:32:56 | [diff] [blame] | 658 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 659 | public_configs = [ ":common_config_objc" ] |
| 660 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 661 | ":base_objc", |
| 662 | ":helpers_objc", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 663 | "../api/video_codecs:video_codecs_api", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 664 | "../common_video", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 665 | "../media:rtc_media_base", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 666 | "../modules/video_coding:video_codec_interface", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 667 | "../rtc_base:checks", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 668 | "../rtc_base:rtc_base_approved", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 669 | ] |
| 670 | } |
| 671 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 672 | rtc_library("default_codec_factory_objc") { |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 673 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 674 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 675 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.m", |
| 676 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 677 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.m", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 678 | ] |
| 679 | |
| 680 | deps = [ |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 681 | ":av1", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 682 | ":base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 683 | ":native_video", |
| 684 | ":videocodec_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 685 | ":videotoolbox_objc", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 686 | ":vp8", |
| 687 | ":vp9", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 688 | ":vpx_codec_constants", |
| 689 | ] |
| 690 | } |
| 691 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 692 | rtc_library("vpx_codec_constants") { |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 693 | configs += [ "..:no_global_constructors" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 694 | sources = [ |
| 695 | "objc/api/video_codec/RTCVideoCodecConstants.h", |
| 696 | "objc/api/video_codec/RTCVideoCodecConstants.mm", |
| 697 | ] |
| 698 | |
| 699 | deps = [ |
| 700 | ":base_objc", |
| 701 | "../media:rtc_media_base", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 702 | ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 703 | } |
| 704 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 705 | rtc_library("vp8") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 706 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 02:31:53 | [diff] [blame] | 707 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 708 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 709 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 710 | "objc/api/video_codec/RTCVideoDecoderVP8.mm", |
| 711 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 712 | "objc/api/video_codec/RTCVideoEncoderVP8.mm", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 713 | ] |
| 714 | |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 715 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 716 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 717 | ":wrapped_native_codec_objc", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 718 | "../modules/video_coding:webrtc_vp8", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 719 | ] |
| 720 | } |
| 721 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 722 | rtc_library("vp9") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 723 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 02:31:53 | [diff] [blame] | 724 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 725 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 726 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
| 727 | "objc/api/video_codec/RTCVideoDecoderVP9.mm", |
| 728 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
| 729 | "objc/api/video_codec/RTCVideoEncoderVP9.mm", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 730 | ] |
| 731 | |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 732 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 733 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 734 | ":wrapped_native_codec_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 735 | "../media:rtc_media_base", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 736 | "../modules/video_coding:webrtc_vp9", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 737 | ] |
| 738 | } |
| 739 | |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 740 | rtc_library("av1") { |
| 741 | visibility = [ "*" ] |
| 742 | allow_poison = [ "software_video_codecs" ] |
| 743 | sources = [ |
| 744 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
| 745 | "objc/api/video_codec/RTCVideoDecoderAV1.mm", |
| 746 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
| 747 | "objc/api/video_codec/RTCVideoEncoderAV1.mm", |
| 748 | ] |
| 749 | |
| 750 | deps = [ |
| 751 | ":base_objc", |
| 752 | ":wrapped_native_codec_objc", |
| 753 | "../media:rtc_media_base", |
| 754 | "../modules/video_coding/codecs/av1:libaom_av1_decoder", |
philipel | 9570150 | 2022-01-18 17:47:52 | [diff] [blame] | 755 | "../modules/video_coding/codecs/av1:libaom_av1_encoder_if_supported", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 756 | ] |
| 757 | } |
| 758 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 759 | # Build the PeerConnectionFactory without audio/video support. |
| 760 | # This target depends on the objc_peeerconnectionfactory_base which still |
| 761 | # includes some audio/video related objects such as RTCAudioSource because |
| 762 | # these objects are just thin wrappers of native C++ interfaces required |
| 763 | # when implementing webrtc::PeerConnectionFactoryInterface and |
| 764 | # webrtc::PeerConnectionInterface. |
Kári Tristan Helgason | a2d89fc | 2018-03-06 09:18:43 | [diff] [blame] | 765 | # The applications which only use WebRTC DataChannel can depend on this. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 766 | rtc_library("peerconnectionfactory_no_media_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 767 | visibility = [ "*" ] |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 768 | allow_poison = [ |
| 769 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 770 | "default_task_queue", |
| 771 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 772 | defines = [ "HAVE_NO_MEDIA" ] |
| 773 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 774 | sources = [ "objc/helpers/noop.mm" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 775 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 776 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 777 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 778 | deps = [ |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 779 | ":native_api", |
| 780 | ":native_video", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 781 | ":peerconnectionfactory_base_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 782 | "../api:libjingle_peerconnection_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 783 | "../rtc_base", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 784 | ] |
| 785 | } |
| 786 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 787 | rtc_library("mediaconstraints_objc") { |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 788 | configs += [ "..:no_global_constructors" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 789 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 790 | "objc/api/peerconnection/RTCMediaConstraints+Private.h", |
| 791 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 792 | "objc/api/peerconnection/RTCMediaConstraints.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 793 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 794 | |
| 795 | public_configs = [ ":common_config_objc" ] |
| 796 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 797 | ":base_objc", |
| 798 | ":helpers_objc", |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 799 | ":media_constraints", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 800 | ] |
| 801 | } |
| 802 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 803 | # TODO(bugs.webrtc.org/9627): Remove, targets should depend on base_objc. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 804 | rtc_library("videorenderer_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 805 | visibility = [ "*" ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 806 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 807 | |
| 808 | configs += [ "..:common_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 809 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 810 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 811 | deps = [ ":base_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 812 | } |
| 813 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 814 | rtc_library("videorendereradapter_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 815 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 816 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 817 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 818 | "objc/api/RTCVideoRendererAdapter+Private.h", |
| 819 | "objc/api/RTCVideoRendererAdapter.h", |
| 820 | "objc/api/RTCVideoRendererAdapter.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 821 | ] |
| 822 | |
| 823 | configs += [ "..:common_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 824 | public_configs = [ ":common_config_objc" ] |
| 825 | |
| 826 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 827 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 828 | ":native_api", |
| 829 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 830 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 831 | "../api:media_stream_interface", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 832 | ] |
| 833 | } |
| 834 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 835 | rtc_library("mediasource_objc") { |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 836 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 837 | "objc/api/peerconnection/RTCMediaSource+Private.h", |
| 838 | "objc/api/peerconnection/RTCMediaSource.h", |
| 839 | "objc/api/peerconnection/RTCMediaSource.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 840 | ] |
| 841 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 842 | configs += [ |
| 843 | "..:common_objc", |
| 844 | ":used_from_extension", |
| 845 | ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 846 | public_configs = [ ":common_config_objc" ] |
| 847 | |
| 848 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 849 | ":base_objc", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 850 | "../api:media_stream_interface", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 851 | "../rtc_base:checks", |
| 852 | ] |
| 853 | } |
| 854 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 855 | rtc_library("base_native_additions_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 856 | sources = [ |
| 857 | "objc/api/peerconnection/RTCEncodedImage+Private.h", |
| 858 | "objc/api/peerconnection/RTCEncodedImage+Private.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 859 | "objc/api/peerconnection/RTCVideoCodecInfo+Private.h", |
| 860 | "objc/api/peerconnection/RTCVideoCodecInfo+Private.mm", |
| 861 | "objc/api/peerconnection/RTCVideoEncoderSettings+Private.h", |
| 862 | "objc/api/peerconnection/RTCVideoEncoderSettings+Private.mm", |
| 863 | ] |
| 864 | |
| 865 | configs += [ "..:common_objc" ] |
| 866 | |
| 867 | public_configs = [ ":common_config_objc" ] |
| 868 | |
| 869 | deps = [ |
| 870 | ":base_objc", |
| 871 | ":helpers_objc", |
Niels Möller | 4dc66c5 | 2018-10-05 12:17:58 | [diff] [blame] | 872 | "../api/video:encoded_image", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 873 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 874 | "../modules/video_coding:video_codec_interface", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 875 | "../rtc_base", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 876 | "../rtc_base:refcount", |
Florent Castelli | e10a9f6 | 2022-04-04 15:04:37 | [diff] [blame] | 877 | "../rtc_base:safe_conversions", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 878 | ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 879 | } |
| 880 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 881 | rtc_library("peerconnectionfactory_base_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 882 | visibility = [ "*" ] |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 883 | allow_poison = [ |
| 884 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 885 | "default_task_queue", |
| 886 | ] |
Byoungchan Lee | 524a422 | 2021-11-19 10:03:49 | [diff] [blame] | 887 | configs += [ "..:no_global_constructors" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 888 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 889 | "objc/api/peerconnection/RTCAudioSource+Private.h", |
| 890 | "objc/api/peerconnection/RTCAudioSource.h", |
| 891 | "objc/api/peerconnection/RTCAudioSource.mm", |
| 892 | "objc/api/peerconnection/RTCAudioTrack+Private.h", |
| 893 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 894 | "objc/api/peerconnection/RTCAudioTrack.mm", |
| 895 | "objc/api/peerconnection/RTCCertificate.h", |
| 896 | "objc/api/peerconnection/RTCCertificate.mm", |
| 897 | "objc/api/peerconnection/RTCConfiguration+Native.h", |
| 898 | "objc/api/peerconnection/RTCConfiguration+Private.h", |
| 899 | "objc/api/peerconnection/RTCConfiguration.h", |
| 900 | "objc/api/peerconnection/RTCConfiguration.mm", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 901 | "objc/api/peerconnection/RTCCryptoOptions.h", |
| 902 | "objc/api/peerconnection/RTCCryptoOptions.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 903 | "objc/api/peerconnection/RTCDataChannel+Private.h", |
| 904 | "objc/api/peerconnection/RTCDataChannel.h", |
| 905 | "objc/api/peerconnection/RTCDataChannel.mm", |
| 906 | "objc/api/peerconnection/RTCDataChannelConfiguration+Private.h", |
| 907 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 908 | "objc/api/peerconnection/RTCDataChannelConfiguration.mm", |
| 909 | "objc/api/peerconnection/RTCDtmfSender+Private.h", |
| 910 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 911 | "objc/api/peerconnection/RTCDtmfSender.mm", |
| 912 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 913 | "objc/api/peerconnection/RTCFieldTrials.mm", |
| 914 | "objc/api/peerconnection/RTCIceCandidate+Private.h", |
| 915 | "objc/api/peerconnection/RTCIceCandidate.h", |
| 916 | "objc/api/peerconnection/RTCIceCandidate.mm", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 917 | "objc/api/peerconnection/RTCIceCandidateErrorEvent+Private.h", |
| 918 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
| 919 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 920 | "objc/api/peerconnection/RTCIceServer+Private.h", |
| 921 | "objc/api/peerconnection/RTCIceServer.h", |
| 922 | "objc/api/peerconnection/RTCIceServer.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 923 | "objc/api/peerconnection/RTCLegacyStatsReport+Private.h", |
| 924 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 925 | "objc/api/peerconnection/RTCLegacyStatsReport.mm", |
| 926 | "objc/api/peerconnection/RTCMediaStream+Private.h", |
| 927 | "objc/api/peerconnection/RTCMediaStream.h", |
| 928 | "objc/api/peerconnection/RTCMediaStream.mm", |
| 929 | "objc/api/peerconnection/RTCMediaStreamTrack+Private.h", |
| 930 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 931 | "objc/api/peerconnection/RTCMediaStreamTrack.mm", |
| 932 | "objc/api/peerconnection/RTCMetrics.h", |
| 933 | "objc/api/peerconnection/RTCMetrics.mm", |
| 934 | "objc/api/peerconnection/RTCMetricsSampleInfo+Private.h", |
| 935 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 936 | "objc/api/peerconnection/RTCMetricsSampleInfo.mm", |
| 937 | "objc/api/peerconnection/RTCPeerConnection+DataChannel.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 938 | "objc/api/peerconnection/RTCPeerConnection+Private.h", |
| 939 | "objc/api/peerconnection/RTCPeerConnection+Stats.mm", |
| 940 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 941 | "objc/api/peerconnection/RTCPeerConnection.mm", |
| 942 | "objc/api/peerconnection/RTCPeerConnectionFactory+Native.h", |
| 943 | "objc/api/peerconnection/RTCPeerConnectionFactory+Private.h", |
| 944 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 945 | "objc/api/peerconnection/RTCPeerConnectionFactory.mm", |
| 946 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.h", |
| 947 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.mm", |
| 948 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.h", |
| 949 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.mm", |
| 950 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions+Private.h", |
| 951 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 952 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.mm", |
| 953 | "objc/api/peerconnection/RTCRtcpParameters+Private.h", |
| 954 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 955 | "objc/api/peerconnection/RTCRtcpParameters.mm", |
| 956 | "objc/api/peerconnection/RTCRtpCodecParameters+Private.h", |
| 957 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 958 | "objc/api/peerconnection/RTCRtpCodecParameters.mm", |
| 959 | "objc/api/peerconnection/RTCRtpEncodingParameters+Private.h", |
| 960 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 961 | "objc/api/peerconnection/RTCRtpEncodingParameters.mm", |
| 962 | "objc/api/peerconnection/RTCRtpHeaderExtension+Private.h", |
| 963 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 964 | "objc/api/peerconnection/RTCRtpHeaderExtension.mm", |
| 965 | "objc/api/peerconnection/RTCRtpParameters+Private.h", |
| 966 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 967 | "objc/api/peerconnection/RTCRtpParameters.mm", |
Benjamin Wright | ddf1a3e | 2018-10-02 17:20:58 | [diff] [blame] | 968 | "objc/api/peerconnection/RTCRtpReceiver+Native.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 969 | "objc/api/peerconnection/RTCRtpReceiver+Private.h", |
| 970 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 971 | "objc/api/peerconnection/RTCRtpReceiver.mm", |
Benjamin Wright | ddf1a3e | 2018-10-02 17:20:58 | [diff] [blame] | 972 | "objc/api/peerconnection/RTCRtpSender+Native.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 973 | "objc/api/peerconnection/RTCRtpSender+Private.h", |
| 974 | "objc/api/peerconnection/RTCRtpSender.h", |
| 975 | "objc/api/peerconnection/RTCRtpSender.mm", |
| 976 | "objc/api/peerconnection/RTCRtpTransceiver+Private.h", |
| 977 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 978 | "objc/api/peerconnection/RTCRtpTransceiver.mm", |
| 979 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 980 | "objc/api/peerconnection/RTCSSLAdapter.mm", |
| 981 | "objc/api/peerconnection/RTCSessionDescription+Private.h", |
| 982 | "objc/api/peerconnection/RTCSessionDescription.h", |
| 983 | "objc/api/peerconnection/RTCSessionDescription.mm", |
Peter Hanspers | bed8604 | 2019-02-21 16:27:09 | [diff] [blame] | 984 | "objc/api/peerconnection/RTCStatisticsReport+Private.h", |
| 985 | "objc/api/peerconnection/RTCStatisticsReport.h", |
| 986 | "objc/api/peerconnection/RTCStatisticsReport.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 987 | "objc/api/peerconnection/RTCTracing.h", |
| 988 | "objc/api/peerconnection/RTCTracing.mm", |
| 989 | "objc/api/peerconnection/RTCVideoTrack+Private.h", |
| 990 | "objc/api/peerconnection/RTCVideoTrack.h", |
| 991 | "objc/api/peerconnection/RTCVideoTrack.mm", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 992 | ] |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 993 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 994 | configs += [ |
| 995 | "..:common_objc", |
| 996 | ":used_from_extension", |
| 997 | ] |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 998 | public_configs = [ ":common_config_objc" ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 999 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1000 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1001 | ":base_native_additions_objc", |
| 1002 | ":base_objc", |
| 1003 | ":file_logger_objc", |
| 1004 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1005 | ":mediaconstraints_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1006 | ":mediasource_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1007 | ":native_api", |
| 1008 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1009 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1010 | ":videorendereradapter_objc", |
| 1011 | ":videosource_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1012 | ":videotoolbox_objc", |
Mirko Bonadei | e51f785 | 2017-12-06 10:23:19 | [diff] [blame] | 1013 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 1014 | "../api:media_stream_interface", |
Niels Möller | 695cf6a | 2019-05-13 10:27:23 | [diff] [blame] | 1015 | "../api:rtc_event_log_output_file", |
Peter Hanspers | bed8604 | 2019-02-21 16:27:09 | [diff] [blame] | 1016 | "../api:rtc_stats_api", |
Niels Möller | 6dcd4dc | 2019-08-26 08:45:28 | [diff] [blame] | 1017 | "../api:rtp_parameters", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1018 | "../api:scoped_refptr", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1019 | "../api/audio_codecs:audio_codecs_api", |
Karl Wiberg | 5817d3d | 2018-04-06 08:06:42 | [diff] [blame] | 1020 | "../api/audio_codecs:builtin_audio_decoder_factory", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1021 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Mirko Bonadei | eaaaf41 | 2019-09-13 12:42:15 | [diff] [blame] | 1022 | "../api/crypto:frame_decryptor_interface", |
| 1023 | "../api/crypto:frame_encryptor_interface", |
Danil Chapovalov | 4ba04b7 | 2019-06-26 13:49:47 | [diff] [blame] | 1024 | "../api/rtc_event_log:rtc_event_log_factory", |
Danil Chapovalov | aaa1143 | 2019-05-17 11:20:14 | [diff] [blame] | 1025 | "../api/task_queue:default_task_queue_factory", |
Erik Språng | ceb4495 | 2020-09-22 09:36:35 | [diff] [blame] | 1026 | "../api/transport:field_trial_based_config", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1027 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1028 | "../api/video:video_rtp_headers", |
Anders Carlsson | 7e04281 | 2017-10-05 14:55:38 | [diff] [blame] | 1029 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | e5960ce | 2017-06-22 13:26:30 | [diff] [blame] | 1030 | "../common_video", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1031 | "../media:rtc_media_base", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1032 | "../modules/audio_device:audio_device_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1033 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 1034 | "../modules/audio_processing:api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1035 | "../modules/video_coding:video_codec_interface", |
Harald Alvestrand | c1e8aeb | 2022-03-31 19:53:50 | [diff] [blame] | 1036 | "../pc:peer_connection_factory", |
| 1037 | "../pc:webrtc_sdp", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1038 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1039 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1040 | "../rtc_base:logging", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1041 | "../rtc_base:network_constants", |
Florent Castelli | e10a9f6 | 2022-04-04 15:04:37 | [diff] [blame] | 1042 | "../rtc_base:safe_conversions", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1043 | "../rtc_base:timeutils", |
Harald Alvestrand | c1e8aeb | 2022-03-31 19:53:50 | [diff] [blame] | 1044 | "../stats:rtc_stats", |
Mirko Bonadei | 17f4878 | 2018-09-28 06:51:10 | [diff] [blame] | 1045 | "../system_wrappers:field_trial", |
| 1046 | "../system_wrappers:metrics", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1047 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1048 | |
| 1049 | if (is_ios) { |
| 1050 | deps += [ ":native_api_audio_device_module" ] |
| 1051 | } |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 1052 | } |
Zeke Chin | dd0e1e0 | 2016-10-11 20:27:26 | [diff] [blame] | 1053 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1054 | if (rtc_include_tests) { |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1055 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1056 | rtc_library("sdk_unittests_sources") { |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1057 | testonly = true |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1058 | include_dirs = [ "objc/" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1059 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1060 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1061 | "objc/unittests/ObjCVideoTrackSource_xctest.mm", |
| 1062 | "objc/unittests/RTCCVPixelBuffer_xctest.mm", |
| 1063 | "objc/unittests/RTCCallbackLogger_xctest.m", |
Kári Tristan Helgason | ecbdbf6 | 2020-02-20 15:34:45 | [diff] [blame] | 1064 | "objc/unittests/RTCEncodedImage_xctest.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1065 | "objc/unittests/RTCFileVideoCapturer_xctest.mm", |
| 1066 | "objc/unittests/RTCH264ProfileLevelId_xctest.m", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 1067 | "objc/unittests/RTCMTLVideoView_xctest.m", |
Aaron Golden | fb4e9bc | 2019-01-04 20:03:31 | [diff] [blame] | 1068 | "objc/unittests/RTCNV12TextureCache_xctest.m", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1069 | "objc/unittests/RTCPeerConnectionFactory_xctest.m", |
| 1070 | "objc/unittests/frame_buffer_helpers.h", |
| 1071 | "objc/unittests/frame_buffer_helpers.mm", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1072 | "objc/unittests/nalu_rewriter_xctest.mm", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1073 | ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1074 | |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 1075 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 1076 | # workaround. |
| 1077 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
| 1078 | |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1079 | # TODO(peterhanspers): Reenable these tests on simulator. |
| 1080 | # See bugs.webrtc.org/7812 |
Lahiru Ginnaliya Gamathige | 1d0e7b6 | 2020-10-20 09:43:02 | [diff] [blame] | 1081 | if (target_environment != "simulator") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1082 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1083 | "objc/unittests/RTCAudioDeviceModule_xctest.mm", |
| 1084 | "objc/unittests/RTCAudioDevice_xctest.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1085 | ] |
| 1086 | } |
| 1087 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1088 | deps = [ |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1089 | ":audio_device", |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 1090 | ":audio_session_objc", |
Kári Tristan Helgason | ecbdbf6 | 2020-02-20 15:34:45 | [diff] [blame] | 1091 | ":base_native_additions_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1092 | ":base_objc", |
| 1093 | ":callback_logger_objc", |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 1094 | ":framework_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1095 | ":mediaconstraints_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 1096 | ":metal_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1097 | ":native_api", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1098 | ":native_api_audio_device_module", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1099 | ":native_video", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1100 | ":peerconnectionfactory_base_objc", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1101 | ":video_toolbox_cc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1102 | ":videocapture_objc", |
Anders Carlsson | 79ce820 | 2018-06-01 10:51:09 | [diff] [blame] | 1103 | ":videocodec_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1104 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1105 | ":videosource_objc", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1106 | ":videotoolbox_objc", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1107 | "../api:scoped_refptr", |
Byoungchan Lee | 43bd760 | 2019-10-08 14:58:41 | [diff] [blame] | 1108 | "../api/task_queue:default_task_queue_factory", |
Ilya Nikolaevskiy | 38e9b06 | 2020-10-08 14:36:33 | [diff] [blame] | 1109 | "../api/video:video_frame", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1110 | "../common_video", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1111 | "../media:rtc_media_base", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1112 | "../media:rtc_media_tests_utils", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1113 | "../rtc_base", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1114 | "../rtc_base:gunit_helpers", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 1115 | "../rtc_base:macromagic", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 1116 | "../rtc_base:refcount", |
Byoungchan Lee | 83ceb90 | 2021-11-16 02:31:57 | [diff] [blame] | 1117 | "../rtc_base/system:unused", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1118 | "../system_wrappers", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1119 | "//third_party/libyuv", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1120 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1121 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1122 | if (rtc_ios_macos_use_opengl_rendering) { |
| 1123 | deps += [ ":opengl_objc" ] |
| 1124 | } |
| 1125 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1126 | public_deps = [ |
| 1127 | "//build/config/ios:xctest", |
| 1128 | "//third_party/ocmock", |
| 1129 | ] |
| 1130 | } |
| 1131 | |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1132 | bundle_data("sdk_unittests_bundle_data") { |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1133 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1134 | "objc/unittests/audio_short16.pcm", |
| 1135 | "objc/unittests/audio_short44.pcm", |
| 1136 | "objc/unittests/audio_short48.pcm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1137 | |
| 1138 | # Sample video taken from https://media.xiph.org/video/derf/ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1139 | "objc/unittests/foreman.mp4", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1140 | ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1141 | outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1142 | } |
| 1143 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1144 | # These tests use static linking. |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1145 | rtc_test("sdk_unittests") { |
| 1146 | is_xctest = true |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1147 | info_plist = "//test/ios/Info.plist" |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1148 | sources = [ "objc/unittests/main.mm" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1149 | |
Artem Titarenko | a2bc362 | 2019-08-19 12:24:00 | [diff] [blame] | 1150 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ] |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1151 | deps = [ |
Yura Yaroshevich | 5297bd2 | 2018-06-19 09:51:51 | [diff] [blame] | 1152 | ":peerconnectionfactory_base_objc", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1153 | ":sdk_unittests_bundle_data", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1154 | ":sdk_unittests_sources", |
Niels Möller | 5a8f860 | 2019-06-12 09:30:59 | [diff] [blame] | 1155 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1156 | "../rtc_base:threading", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1157 | "//test:test_support", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1158 | ] |
| 1159 | ldflags = [ "-all_load" ] |
| 1160 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1161 | |
| 1162 | # These tests link to the framework. |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1163 | rtc_test("sdk_framework_unittests") { |
| 1164 | is_xctest = true |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1165 | info_plist = "//test/ios/Info.plist" |
| 1166 | sources = [ |
| 1167 | "objc/unittests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1168 | "objc/unittests/main.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1169 | ] |
| 1170 | |
Artem Titarenko | a2bc362 | 2019-08-19 12:24:00 | [diff] [blame] | 1171 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1172 | deps = [ |
| 1173 | ":framework_objc+link", |
| 1174 | ":ios_framework_bundle", |
Niels Möller | 5a8f860 | 2019-06-12 09:30:59 | [diff] [blame] | 1175 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1176 | "../rtc_base:threading", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1177 | "//test:test_support", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1178 | ] |
| 1179 | } |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1180 | } |
| 1181 | |
| 1182 | # TODO(denicija): once all tests are migrated to xctest remove this source set. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1183 | rtc_library("rtc_unittests_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1184 | testonly = true |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1185 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1186 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1187 | "objc/unittests/RTCCertificateTest.mm", |
| 1188 | "objc/unittests/RTCConfigurationTest.mm", |
| 1189 | "objc/unittests/RTCDataChannelConfigurationTest.mm", |
| 1190 | "objc/unittests/RTCIceCandidateTest.mm", |
| 1191 | "objc/unittests/RTCIceServerTest.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1192 | "objc/unittests/RTCMediaConstraintsTest.mm", |
| 1193 | "objc/unittests/RTCPeerConnectionFactoryBuilderTest.mm", |
| 1194 | "objc/unittests/RTCPeerConnectionTest.mm", |
| 1195 | "objc/unittests/RTCSessionDescriptionTest.mm", |
| 1196 | "objc/unittests/RTCTracingTest.mm", |
| 1197 | "objc/unittests/objc_video_decoder_factory_tests.mm", |
| 1198 | "objc/unittests/objc_video_encoder_factory_tests.mm", |
| 1199 | "objc/unittests/scoped_cftyperef_tests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1200 | ] |
Anders Carlsson | e7dd83f | 2018-01-19 10:28:44 | [diff] [blame] | 1201 | if (is_ios) { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1202 | sources += [ "objc/unittests/RTCCameraVideoCapturerTests.mm" ] |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 1203 | } |
mbonadei | d762058 | 2017-05-30 08:50:35 | [diff] [blame] | 1204 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1205 | # |-ObjC| flag needed to make sure category method implementations |
| 1206 | # are included: |
| 1207 | # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 1208 | ldflags = [ "-ObjC" ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 1209 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1210 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1211 | ":base_objc", |
| 1212 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1213 | ":mediaconstraints_objc", |
| 1214 | ":native_api", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1215 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1216 | ":peerconnectionfactory_base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1217 | ":videocapture_objc", |
| 1218 | ":videocodec_objc", |
| 1219 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1220 | ":videosource_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1221 | ":videotoolbox_objc", |
Piotr (Peter) Slatala | e0c2e97 | 2018-10-08 16:43:21 | [diff] [blame] | 1222 | "../api:libjingle_peerconnection_api", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1223 | "../api/audio_codecs:audio_codecs_api", |
| 1224 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 1225 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 1226 | "../api/video_codecs:video_codecs_api", |
kthelgason | ebd4f79 | 2017-09-04 11:36:21 | [diff] [blame] | 1227 | "../media:rtc_media_base", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1228 | "../modules/audio_device:audio_device_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1229 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 1230 | "../modules/audio_processing:api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1231 | "../modules/video_coding:video_codec_interface", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1232 | "../rtc_base:gunit_helpers", |
Byoungchan Lee | 0a54e7a | 2021-09-06 13:32:52 | [diff] [blame] | 1233 | "../rtc_base:rtc_event", |
Niels Möller | a12c42a | 2018-07-25 14:05:48 | [diff] [blame] | 1234 | "../rtc_base/system:unused", |
Yves Gerey | 21cddff | 2018-10-30 20:12:42 | [diff] [blame] | 1235 | "../test:test_support", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1236 | "//third_party/ocmock", |
| 1237 | ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 1238 | |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 1239 | if (is_ios) { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1240 | sources += [ "objc/unittests/RTCAudioSessionTest.mm" ] |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 1241 | deps += [ ":audio_session_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1242 | } |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1243 | } |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 1244 | } |
| 1245 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1246 | if (is_ios) { |
Byoungchan Lee | 26b23b8 | 2022-04-08 09:23:14 | [diff] [blame] | 1247 | apple_framework_bundle_with_umbrella_header("framework_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1248 | info_plist = "objc/Info.plist" |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1249 | output_name = "WebRTC" |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 | [diff] [blame] | 1250 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1251 | common_objc_headers = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1252 | "objc/base/RTCCodecSpecificInfo.h", |
| 1253 | "objc/base/RTCEncodedImage.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1254 | "objc/base/RTCI420Buffer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1255 | "objc/base/RTCLogging.h", |
| 1256 | "objc/base/RTCMacros.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1257 | "objc/base/RTCMutableI420Buffer.h", |
| 1258 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1259 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1260 | "objc/base/RTCVideoCapturer.h", |
| 1261 | "objc/base/RTCVideoCodecInfo.h", |
| 1262 | "objc/base/RTCVideoDecoder.h", |
| 1263 | "objc/base/RTCVideoDecoderFactory.h", |
| 1264 | "objc/base/RTCVideoEncoder.h", |
| 1265 | "objc/base/RTCVideoEncoderFactory.h", |
| 1266 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 1267 | "objc/base/RTCVideoEncoderSettings.h", |
| 1268 | "objc/base/RTCVideoFrame.h", |
| 1269 | "objc/base/RTCVideoFrameBuffer.h", |
| 1270 | "objc/base/RTCVideoRenderer.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1271 | "objc/base/RTCYUVPlanarBuffer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1272 | "objc/components/audio/RTCAudioSession.h", |
| 1273 | "objc/components/audio/RTCAudioSessionConfiguration.h", |
| 1274 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 1275 | "objc/components/capturer/RTCFileVideoCapturer.h", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1276 | "objc/components/network/RTCNetworkMonitor.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1277 | "objc/components/renderer/metal/RTCMTLVideoView.h", |
| 1278 | "objc/components/renderer/opengl/RTCEAGLVideoView.h", |
| 1279 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
| 1280 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 1281 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 1282 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 1283 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 1284 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1285 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1286 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1287 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1288 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 1289 | "objc/helpers/RTCCameraPreviewView.h", |
| 1290 | "objc/helpers/RTCDispatcher.h", |
| 1291 | "objc/helpers/UIDevice+RTCDevice.h", |
| 1292 | "objc/api/peerconnection/RTCAudioSource.h", |
| 1293 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 1294 | "objc/api/peerconnection/RTCConfiguration.h", |
| 1295 | "objc/api/peerconnection/RTCDataChannel.h", |
| 1296 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 1297 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 1298 | "objc/api/peerconnection/RTCIceCandidate.h", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 1299 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1300 | "objc/api/peerconnection/RTCIceServer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1301 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 1302 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 1303 | "objc/api/peerconnection/RTCMediaSource.h", |
| 1304 | "objc/api/peerconnection/RTCMediaStream.h", |
| 1305 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 1306 | "objc/api/peerconnection/RTCMetrics.h", |
| 1307 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 1308 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 1309 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 1310 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 1311 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 1312 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 1313 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 1314 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 1315 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 1316 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 1317 | "objc/api/peerconnection/RTCRtpSender.h", |
| 1318 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 1319 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 1320 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 1321 | "objc/api/peerconnection/RTCSessionDescription.h", |
CZ Theng | 682dabd | 2019-10-21 03:25:18 | [diff] [blame] | 1322 | "objc/api/peerconnection/RTCStatisticsReport.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1323 | "objc/api/peerconnection/RTCTracing.h", |
| 1324 | "objc/api/peerconnection/RTCCertificate.h", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 1325 | "objc/api/peerconnection/RTCCryptoOptions.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1326 | "objc/api/peerconnection/RTCVideoSource.h", |
| 1327 | "objc/api/peerconnection/RTCVideoTrack.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1328 | "objc/api/video_codec/RTCVideoCodecConstants.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1329 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 1330 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1331 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1332 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 1333 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1334 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1335 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 1336 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1337 | ] |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 1338 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1339 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1340 | common_objc_headers += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1341 | "objc/api/logging/RTCCallbackLogger.h", |
| 1342 | "objc/api/peerconnection/RTCFileLogger.h", |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 1343 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1344 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1345 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1346 | sources = common_objc_headers |
| 1347 | public_headers = common_objc_headers |
| 1348 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1349 | ldflags = [ |
| 1350 | "-all_load", |
| 1351 | "-install_name", |
| 1352 | "@rpath/$output_name.framework/$output_name", |
| 1353 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1354 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1355 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1356 | ":audio_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1357 | ":base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1358 | ":default_codec_factory_objc", |
Mirko Bonadei | 91d3975 | 2022-01-19 07:43:17 | [diff] [blame] | 1359 | ":metal_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1360 | ":native_api", |
| 1361 | ":native_video", |
| 1362 | ":peerconnectionfactory_base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1363 | ":videocapture_objc", |
| 1364 | ":videocodec_objc", |
| 1365 | ":videotoolbox_objc", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 1366 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1367 | ] |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1368 | if (rtc_ios_macos_use_opengl_rendering) { |
| 1369 | deps += [ ":opengl_ui_objc" ] |
| 1370 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1371 | if (!build_with_chromium) { |
| 1372 | deps += [ |
| 1373 | ":callback_logger_objc", |
| 1374 | ":file_logger_objc", |
| 1375 | ] |
| 1376 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1377 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1378 | frameworks = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1379 | "AVFoundation.framework", |
| 1380 | "CoreGraphics.framework", |
| 1381 | "CoreMedia.framework", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1382 | ] |
| 1383 | |
Byoungchan Lee | 26b23b8 | 2022-04-08 09:23:14 | [diff] [blame] | 1384 | configs = [ |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 1385 | "..:common_objc", |
| 1386 | ":used_from_extension", |
| 1387 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1388 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1389 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1390 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1391 | |
| 1392 | bundle_data("ios_framework_bundle") { |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1393 | deps = [ "../sdk:framework_objc" ] |
| 1394 | sources = [ "$root_build_dir/WebRTC.framework" ] |
| 1395 | outputs = [ "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1396 | } |
| 1397 | } |
| 1398 | |
| 1399 | if (is_mac) { |
Byoungchan Lee | 26b23b8 | 2022-04-08 09:23:14 | [diff] [blame] | 1400 | apple_framework_bundle_with_umbrella_header("mac_framework_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1401 | info_plist = "objc/Info.plist" |
| 1402 | output_name = "WebRTC" |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1403 | |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1404 | sources = [ |
| 1405 | "objc/api/peerconnection/RTCAudioSource.h", |
| 1406 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 1407 | "objc/api/peerconnection/RTCCertificate.h", |
| 1408 | "objc/api/peerconnection/RTCConfiguration.h", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 1409 | "objc/api/peerconnection/RTCCryptoOptions.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1410 | "objc/api/peerconnection/RTCDataChannel.h", |
| 1411 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 1412 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 1413 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 1414 | "objc/api/peerconnection/RTCIceCandidate.h", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 1415 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1416 | "objc/api/peerconnection/RTCIceServer.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1417 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 1418 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 1419 | "objc/api/peerconnection/RTCMediaSource.h", |
| 1420 | "objc/api/peerconnection/RTCMediaStream.h", |
| 1421 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 1422 | "objc/api/peerconnection/RTCMetrics.h", |
| 1423 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 1424 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 1425 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 1426 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 1427 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 1428 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 1429 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 1430 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 1431 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 1432 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 1433 | "objc/api/peerconnection/RTCRtpSender.h", |
| 1434 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 1435 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 1436 | "objc/api/peerconnection/RTCSessionDescription.h", |
Saúl Ibarra Corretgé | f7aa267 | 2021-07-28 21:09:14 | [diff] [blame] | 1437 | "objc/api/peerconnection/RTCStatisticsReport.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1438 | "objc/api/peerconnection/RTCTracing.h", |
| 1439 | "objc/api/peerconnection/RTCVideoSource.h", |
| 1440 | "objc/api/peerconnection/RTCVideoTrack.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1441 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1442 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 1443 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1444 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1445 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 1446 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
| 1447 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 1448 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
| 1449 | "objc/base/RTCCodecSpecificInfo.h", |
| 1450 | "objc/base/RTCEncodedImage.h", |
| 1451 | "objc/base/RTCI420Buffer.h", |
| 1452 | "objc/base/RTCLogging.h", |
| 1453 | "objc/base/RTCMacros.h", |
| 1454 | "objc/base/RTCMutableI420Buffer.h", |
| 1455 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1456 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1457 | "objc/base/RTCVideoCapturer.h", |
| 1458 | "objc/base/RTCVideoCodecInfo.h", |
| 1459 | "objc/base/RTCVideoDecoder.h", |
| 1460 | "objc/base/RTCVideoDecoderFactory.h", |
| 1461 | "objc/base/RTCVideoEncoder.h", |
| 1462 | "objc/base/RTCVideoEncoderFactory.h", |
| 1463 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 1464 | "objc/base/RTCVideoEncoderSettings.h", |
| 1465 | "objc/base/RTCVideoFrame.h", |
| 1466 | "objc/base/RTCVideoFrameBuffer.h", |
| 1467 | "objc/base/RTCVideoRenderer.h", |
| 1468 | "objc/base/RTCYUVPlanarBuffer.h", |
| 1469 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 1470 | "objc/components/capturer/RTCFileVideoCapturer.h", |
| 1471 | "objc/components/renderer/metal/RTCMTLNSVideoView.h", |
| 1472 | "objc/components/renderer/opengl/RTCNSGLVideoView.h", |
| 1473 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
| 1474 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 1475 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 1476 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 1477 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 1478 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1479 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1480 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1481 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1482 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 1483 | "objc/helpers/RTCDispatcher.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1484 | ] |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1485 | if (!build_with_chromium) { |
| 1486 | sources += [ |
| 1487 | "objc/api/logging/RTCCallbackLogger.h", |
| 1488 | "objc/api/peerconnection/RTCFileLogger.h", |
| 1489 | ] |
| 1490 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1491 | |
| 1492 | deps = [ |
| 1493 | ":base_objc", |
| 1494 | ":default_codec_factory_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1495 | ":native_api", |
| 1496 | ":native_video", |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1497 | ":opengl_ui_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1498 | ":peerconnectionfactory_base_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1499 | ":videocapture_objc", |
| 1500 | ":videocodec_objc", |
| 1501 | ":videotoolbox_objc", |
| 1502 | "../rtc_base:rtc_base_approved", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1503 | ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1504 | if (!build_with_chromium) { |
| 1505 | deps += [ |
| 1506 | ":callback_logger_objc", |
| 1507 | ":file_logger_objc", |
| 1508 | ] |
| 1509 | } |
| 1510 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1511 | frameworks = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1512 | "AVFoundation.framework", |
| 1513 | "CoreGraphics.framework", |
| 1514 | "CoreMedia.framework", |
| 1515 | "OpenGL.framework", |
| 1516 | ] |
| 1517 | |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1518 | configs = [ "..:common_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1519 | |
| 1520 | public_configs = [ ":common_config_objc" ] |
| 1521 | } |
| 1522 | |
| 1523 | bundle_data("mac_framework_bundle") { |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1524 | deps = [ "../sdk:mac_framework_objc" ] |
| 1525 | sources = [ "$root_build_dir/WebRTC.framework" ] |
| 1526 | outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1527 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1528 | } |
| 1529 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1530 | rtc_library("wrapped_native_codec_objc") { |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1531 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1532 | "objc/api/video_codec/RTCWrappedNativeVideoDecoder.h", |
| 1533 | "objc/api/video_codec/RTCWrappedNativeVideoDecoder.mm", |
| 1534 | "objc/api/video_codec/RTCWrappedNativeVideoEncoder.h", |
| 1535 | "objc/api/video_codec/RTCWrappedNativeVideoEncoder.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1536 | ] |
| 1537 | |
| 1538 | configs += [ "..:common_objc" ] |
| 1539 | public_configs = [ ":common_config_objc" ] |
| 1540 | |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1541 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1542 | ":base_objc", |
| 1543 | ":helpers_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1544 | "../api/video_codecs:video_codecs_api", |
| 1545 | "../media:rtc_media_base", |
| 1546 | ] |
| 1547 | } |
| 1548 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1549 | # The native API is currently experimental and may change without notice. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1550 | rtc_library("native_api") { |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1551 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 1552 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1553 | sources = [ |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1554 | "objc/native/api/network_monitor_factory.h", |
| 1555 | "objc/native/api/network_monitor_factory.mm", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1556 | "objc/native/api/ssl_certificate_verifier.h", |
| 1557 | "objc/native/api/ssl_certificate_verifier.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1558 | "objc/native/api/video_capturer.h", |
| 1559 | "objc/native/api/video_capturer.mm", |
| 1560 | "objc/native/api/video_decoder_factory.h", |
| 1561 | "objc/native/api/video_decoder_factory.mm", |
| 1562 | "objc/native/api/video_encoder_factory.h", |
| 1563 | "objc/native/api/video_encoder_factory.mm", |
| 1564 | "objc/native/api/video_frame.h", |
| 1565 | "objc/native/api/video_frame.mm", |
| 1566 | "objc/native/api/video_frame_buffer.h", |
| 1567 | "objc/native/api/video_frame_buffer.mm", |
| 1568 | "objc/native/api/video_renderer.h", |
| 1569 | "objc/native/api/video_renderer.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1570 | ] |
| 1571 | |
| 1572 | configs += [ "..:common_objc" ] |
| 1573 | |
| 1574 | public_configs = [ ":common_config_objc" ] |
| 1575 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1576 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1577 | ":base_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1578 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1579 | ":videoframebuffer_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1580 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 1581 | "../api:media_stream_interface", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1582 | "../api:scoped_refptr", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1583 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1584 | "../api/video:video_rtp_headers", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1585 | "../api/video_codecs:video_codecs_api", |
| 1586 | "../common_video", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1587 | "../rtc_base", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1588 | "../rtc_base:logging", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 1589 | "../rtc_base:refcount", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1590 | "../rtc_base:threading", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1591 | ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1592 | if (is_ios) { |
| 1593 | deps += [ ":native_network_monitor" ] |
| 1594 | } |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 1595 | absl_deps = [ "//third_party/abseil-cpp/absl/memory" ] |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1596 | } |
| 1597 | |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1598 | if (is_ios) { |
| 1599 | rtc_library("native_network_monitor") { |
| 1600 | visibility = [ "*" ] |
| 1601 | |
| 1602 | sources = [ |
| 1603 | "objc/native/src/objc_network_monitor.h", |
| 1604 | "objc/native/src/objc_network_monitor.mm", |
| 1605 | ] |
| 1606 | |
| 1607 | deps = [ |
| 1608 | ":network_monitor_objc", |
| 1609 | ":network_monitor_observer", |
Jonas Oreland | e62c2f2 | 2022-03-29 09:04:48 | [diff] [blame] | 1610 | "../api:field_trials_view", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 1611 | "../api:sequence_checker", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1612 | "../rtc_base", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1613 | "../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 1614 | "../rtc_base:macromagic", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 1615 | "../rtc_base:stringutils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1616 | "../rtc_base:threading", |
Niels Möller | be140b4 | 2021-03-11 09:24:06 | [diff] [blame] | 1617 | "../rtc_base/task_utils:pending_task_safety_flag", |
| 1618 | "../rtc_base/task_utils:to_queued_task", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1619 | ] |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 1620 | |
| 1621 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1622 | } |
| 1623 | } |
| 1624 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1625 | rtc_library("native_video") { |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1626 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1627 | "objc/native/src/objc_frame_buffer.h", |
| 1628 | "objc/native/src/objc_frame_buffer.mm", |
| 1629 | "objc/native/src/objc_video_decoder_factory.h", |
| 1630 | "objc/native/src/objc_video_decoder_factory.mm", |
| 1631 | "objc/native/src/objc_video_encoder_factory.h", |
| 1632 | "objc/native/src/objc_video_encoder_factory.mm", |
| 1633 | "objc/native/src/objc_video_frame.h", |
| 1634 | "objc/native/src/objc_video_frame.mm", |
| 1635 | "objc/native/src/objc_video_renderer.h", |
| 1636 | "objc/native/src/objc_video_renderer.mm", |
| 1637 | "objc/native/src/objc_video_track_source.h", |
| 1638 | "objc/native/src/objc_video_track_source.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1639 | ] |
| 1640 | |
| 1641 | configs += [ "..:common_objc" ] |
| 1642 | |
| 1643 | public_configs = [ ":common_config_objc" ] |
| 1644 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1645 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1646 | ":base_native_additions_objc", |
| 1647 | ":base_objc", |
| 1648 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1649 | ":videocodec_objc", |
| 1650 | ":videoframebuffer_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1651 | ":vpx_codec_constants", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1652 | ":wrapped_native_codec_objc", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1653 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1654 | "../api/video:video_rtp_headers", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1655 | "../api/video_codecs:video_codecs_api", |
| 1656 | "../common_video", |
| 1657 | "../media:rtc_audio_video", |
| 1658 | "../media:rtc_media_base", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1659 | "../modules/video_coding:video_codec_interface", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1660 | "../rtc_base", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1661 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1662 | "../rtc_base:logging", |
Florent Castelli | b1dc4e4 | 2022-04-14 11:20:12 | [diff] [blame^] | 1663 | "../rtc_base:timestamp_aligner", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1664 | "../rtc_base:timeutils", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1665 | ] |
| 1666 | } |
| 1667 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1668 | rtc_library("video_toolbox_cc") { |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1669 | visibility = [ |
Mirko Bonadei | 08574ae | 2020-09-16 07:22:57 | [diff] [blame] | 1670 | ":sdk_unittests_sources", |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1671 | ":videotoolbox_objc", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1672 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1673 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1674 | "objc/components/video_codec/helpers.cc", |
| 1675 | "objc/components/video_codec/helpers.h", |
| 1676 | "objc/components/video_codec/nalu_rewriter.cc", |
| 1677 | "objc/components/video_codec/nalu_rewriter.h", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1678 | ] |
| 1679 | deps = [ |
| 1680 | "../common_video", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1681 | "../modules/video_coding:webrtc_h264", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1682 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1683 | "../rtc_base:logging", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1684 | "../rtc_base:rtc_base_approved", |
| 1685 | ] |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1686 | } |
| 1687 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1688 | rtc_library("videotoolbox_objc") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1689 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 1690 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1691 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1692 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1693 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.m", |
| 1694 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1695 | "objc/components/video_codec/RTCVideoDecoderH264.mm", |
| 1696 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1697 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.m", |
| 1698 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1699 | "objc/components/video_codec/RTCVideoEncoderH264.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1700 | ] |
| 1701 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 1702 | configs += [ |
| 1703 | "..:common_objc", |
| 1704 | ":used_from_extension", |
| 1705 | ] |
| 1706 | |
| 1707 | if (is_ios && rtc_apprtcmobile_broadcast_extension) { |
| 1708 | defines = [ "RTC_APPRTCMOBILE_BROADCAST_EXTENSION" ] |
| 1709 | } |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1710 | |
| 1711 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1712 | ":base_native_additions_objc", |
| 1713 | ":base_objc", |
| 1714 | ":helpers_objc", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1715 | ":video_toolbox_cc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1716 | ":videocodec_objc", |
| 1717 | ":videoframebuffer_objc", |
Johannes Kron | c3fcee7 | 2021-04-19 07:09:26 | [diff] [blame] | 1718 | "../api/video_codecs:video_codecs_api", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1719 | "../common_video", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1720 | "../modules/video_coding:video_codec_interface", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1721 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1722 | "../rtc_base:logging", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 1723 | "../rtc_base:rtc_base_approved", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1724 | "../rtc_base:timeutils", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 1725 | "//third_party/libyuv", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1726 | ] |
| 1727 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1728 | frameworks = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1729 | "CoreFoundation.framework", |
| 1730 | "CoreMedia.framework", |
| 1731 | "CoreVideo.framework", |
| 1732 | "VideoToolbox.framework", |
| 1733 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1734 | } |
| 1735 | } |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1736 | } |