Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: webrtc/sdk/BUILD.gn

Issue 2483273002: Revert of Add a webrtc{en,de}coderfactory implementation for VideoToolbox (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 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 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 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 if (is_mac) { 10 if (is_mac) {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 } 24 }
25 25
26 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { 26 if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
27 config("rtc_sdk_common_objc_config") { 27 config("rtc_sdk_common_objc_config") {
28 include_dirs = [ 28 include_dirs = [
29 "objc/Framework/Classes", 29 "objc/Framework/Classes",
30 "objc/Framework/Headers", 30 "objc/Framework/Headers",
31 ] 31 ]
32 } 32 }
33 config("webrtc_h264_video_toolbox_warnings_config") {
34 if (is_clang) {
35 # TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard s et
36 # of warnings.
37 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307
38 cflags = [ "-Wno-thread-safety-analysis" ]
39 }
40 }
41 33
42 rtc_static_library("rtc_sdk_common_objc") { 34 rtc_static_library("rtc_sdk_common_objc") {
43 deps = [ 35 deps = [
44 "../base:rtc_base", 36 "../base:rtc_base",
45 ] 37 ]
46 configs += [ 38 configs += [
47 "..:common_objc", 39 "..:common_objc",
48 "//build/config/compiler:enable_arc", 40 "//build/config/compiler:enable_arc",
49 ] 41 ]
50 public_configs = [ ":rtc_sdk_common_objc_config" ] 42 public_configs = [ ":rtc_sdk_common_objc_config" ]
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 "objc/Framework/Classes/RTCVideoFrame.mm", 136 "objc/Framework/Classes/RTCVideoFrame.mm",
145 "objc/Framework/Classes/RTCVideoRendererAdapter+Private.h", 137 "objc/Framework/Classes/RTCVideoRendererAdapter+Private.h",
146 "objc/Framework/Classes/RTCVideoRendererAdapter.h", 138 "objc/Framework/Classes/RTCVideoRendererAdapter.h",
147 "objc/Framework/Classes/RTCVideoRendererAdapter.mm", 139 "objc/Framework/Classes/RTCVideoRendererAdapter.mm",
148 "objc/Framework/Classes/RTCVideoSource+Private.h", 140 "objc/Framework/Classes/RTCVideoSource+Private.h",
149 "objc/Framework/Classes/RTCVideoSource.mm", 141 "objc/Framework/Classes/RTCVideoSource.mm",
150 "objc/Framework/Classes/RTCVideoTrack+Private.h", 142 "objc/Framework/Classes/RTCVideoTrack+Private.h",
151 "objc/Framework/Classes/RTCVideoTrack.mm", 143 "objc/Framework/Classes/RTCVideoTrack.mm",
152 "objc/Framework/Classes/avfoundationvideocapturer.h", 144 "objc/Framework/Classes/avfoundationvideocapturer.h",
153 "objc/Framework/Classes/avfoundationvideocapturer.mm", 145 "objc/Framework/Classes/avfoundationvideocapturer.mm",
154 "objc/Framework/Classes/videotoolboxvideocodecfactory.cc",
155 "objc/Framework/Classes/videotoolboxvideocodecfactory.h",
156 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 146 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
157 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 147 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
158 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 148 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
159 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 149 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
160 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 150 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
161 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 151 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
162 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", 152 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
163 "objc/Framework/Headers/WebRTC/RTCIceServer.h", 153 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
164 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", 154 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
165 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", 155 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
(...skipping 19 matching lines...) Expand all
185 "objc/Framework/Classes/RTCEAGLVideoView.m", 175 "objc/Framework/Classes/RTCEAGLVideoView.m",
186 "objc/Framework/Classes/RTCNativeNV12Shader.mm", 176 "objc/Framework/Classes/RTCNativeNV12Shader.mm",
187 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", 177 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
188 ] 178 ]
189 libs = [ 179 libs = [
190 "CoreGraphics.framework", 180 "CoreGraphics.framework",
191 "GLKit.framework", 181 "GLKit.framework",
192 "OpenGLES.framework", 182 "OpenGLES.framework",
193 "QuartzCore.framework", 183 "QuartzCore.framework",
194 ] 184 ]
195 deps = [
196 ":webrtc_h264_video_toolbox",
197 ]
198 } 185 }
199 186
200 if (is_mac) { 187 if (is_mac) {
201 sources += [ 188 sources += [
202 "objc/Framework/Classes/RTCNSGLVideoView.m", 189 "objc/Framework/Classes/RTCNSGLVideoView.m",
203 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", 190 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
204 ] 191 ]
205 libs = [ 192 libs = [
206 "CoreMedia.framework", 193 "CoreMedia.framework",
207 "OpenGL.framework", 194 "OpenGL.framework",
208 ] 195 ]
209 deps = []
210 } 196 }
211 197
212 configs += [ 198 configs += [
213 "..:common_objc", 199 "..:common_objc",
214 "//build/config/compiler:enable_arc", 200 "//build/config/compiler:enable_arc",
215 ] 201 ]
216 202
217 public_configs = [ ":rtc_sdk_common_objc_config" ] 203 public_configs = [ ":rtc_sdk_common_objc_config" ]
218 204
219 if (!build_with_chromium && is_clang) { 205 if (!build_with_chromium && is_clang) {
220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
222 } 208 }
223 209
224 libs += [ "AVFoundation.framework" ] 210 libs += [ "AVFoundation.framework" ]
225 211
226 deps += [ 212 deps = [
227 ":rtc_sdk_common_objc", 213 ":rtc_sdk_common_objc",
228 "../api:libjingle_peerconnection", 214 "../api:libjingle_peerconnection",
229 ] 215 ]
230 216
231 if (rtc_build_libyuv) { 217 if (rtc_build_libyuv) {
232 deps += [ "$rtc_libyuv_dir" ] 218 deps += [ "$rtc_libyuv_dir" ]
233 public_deps = [ 219 public_deps = [
234 "$rtc_libyuv_dir", 220 "$rtc_libyuv_dir",
235 ] 221 ]
236 } 222 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) 344 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
359 configs -= [ "//build/config/clang:find_bad_constructs" ] 345 configs -= [ "//build/config/clang:find_bad_constructs" ]
360 } 346 }
361 } 347 }
362 } 348 }
363 349
364 rtc_static_library("rtc_sdk_objc") { 350 rtc_static_library("rtc_sdk_objc") {
365 complete_static_lib = true 351 complete_static_lib = true
366 deps = [ 352 deps = [
367 ":rtc_sdk_peerconnection_objc", 353 ":rtc_sdk_peerconnection_objc",
368 "//webrtc/system_wrappers:field_trial_default", 354 "../system_wrappers:field_trial_default",
369 "//webrtc/system_wrappers:metrics_default", 355 "../system_wrappers:metrics_default",
370 ] 356 ]
371 } 357 }
372
373 rtc_static_library("webrtc_h264_video_toolbox") {
374 sources = [
375 "objc/Framework/Classes/h264_video_toolbox_decoder.cc",
376 "objc/Framework/Classes/h264_video_toolbox_decoder.h",
377 "objc/Framework/Classes/h264_video_toolbox_encoder.h",
378 "objc/Framework/Classes/h264_video_toolbox_encoder.mm",
379 "objc/Framework/Classes/h264_video_toolbox_nalu.cc",
380 "objc/Framework/Classes/h264_video_toolbox_nalu.h",
381 ]
382
383 configs += [
384 ":webrtc_h264_video_toolbox_warnings_config",
385 "//webrtc:common_objc",
386 "//build/config/compiler:enable_arc",
387 ]
388
389 deps = [
390 ":rtc_sdk_common_objc",
391 ]
392
393 libs = [
394 "CoreFoundation.framework",
395 "CoreMedia.framework",
396 "CoreVideo.framework",
397 "VideoToolbox.framework",
398 ]
399
400 if (!build_with_chromium && is_clang) {
401 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
402 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
403 }
404
405 if (rtc_build_libyuv) {
406 deps += [ "$rtc_libyuv_dir" ]
407 public_deps = [
408 "$rtc_libyuv_dir",
409 ]
410 } else {
411 # Need to add a directory normally exported by libyuv.
412 include_dirs = [ "$rtc_libyuv_dir/include" ]
413 }
414 }
415 } 358 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc ('k') | webrtc/sdk/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698