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

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

Issue 2487723004: Reland of Add a webrtc{en,de}coderfactory implementation for VideoToolbox (Closed)
Patch Set: fix gyp build 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 }
33 41
34 rtc_static_library("rtc_sdk_common_objc") { 42 rtc_static_library("rtc_sdk_common_objc") {
35 deps = [ 43 deps = [
36 "../base:rtc_base", 44 "../base:rtc_base",
37 ] 45 ]
38 configs += [ 46 configs += [
39 "..:common_objc", 47 "..:common_objc",
40 "//build/config/compiler:enable_arc", 48 "//build/config/compiler:enable_arc",
41 ] 49 ]
42 public_configs = [ ":rtc_sdk_common_objc_config" ] 50 public_configs = [ ":rtc_sdk_common_objc_config" ]
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 "objc/Framework/Classes/RTCVideoFrame.mm", 144 "objc/Framework/Classes/RTCVideoFrame.mm",
137 "objc/Framework/Classes/RTCVideoRendererAdapter+Private.h", 145 "objc/Framework/Classes/RTCVideoRendererAdapter+Private.h",
138 "objc/Framework/Classes/RTCVideoRendererAdapter.h", 146 "objc/Framework/Classes/RTCVideoRendererAdapter.h",
139 "objc/Framework/Classes/RTCVideoRendererAdapter.mm", 147 "objc/Framework/Classes/RTCVideoRendererAdapter.mm",
140 "objc/Framework/Classes/RTCVideoSource+Private.h", 148 "objc/Framework/Classes/RTCVideoSource+Private.h",
141 "objc/Framework/Classes/RTCVideoSource.mm", 149 "objc/Framework/Classes/RTCVideoSource.mm",
142 "objc/Framework/Classes/RTCVideoTrack+Private.h", 150 "objc/Framework/Classes/RTCVideoTrack+Private.h",
143 "objc/Framework/Classes/RTCVideoTrack.mm", 151 "objc/Framework/Classes/RTCVideoTrack.mm",
144 "objc/Framework/Classes/avfoundationvideocapturer.h", 152 "objc/Framework/Classes/avfoundationvideocapturer.h",
145 "objc/Framework/Classes/avfoundationvideocapturer.mm", 153 "objc/Framework/Classes/avfoundationvideocapturer.mm",
154 "objc/Framework/Classes/videotoolboxvideocodecfactory.cc",
155 "objc/Framework/Classes/videotoolboxvideocodecfactory.h",
146 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 156 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
147 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 157 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
148 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 158 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
149 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 159 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
150 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 160 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
151 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 161 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
152 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", 162 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
153 "objc/Framework/Headers/WebRTC/RTCIceServer.h", 163 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
154 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", 164 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
155 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", 165 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
(...skipping 19 matching lines...) Expand all
175 "objc/Framework/Classes/RTCEAGLVideoView.m", 185 "objc/Framework/Classes/RTCEAGLVideoView.m",
176 "objc/Framework/Classes/RTCNativeNV12Shader.mm", 186 "objc/Framework/Classes/RTCNativeNV12Shader.mm",
177 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", 187 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
178 ] 188 ]
179 libs = [ 189 libs = [
180 "CoreGraphics.framework", 190 "CoreGraphics.framework",
181 "GLKit.framework", 191 "GLKit.framework",
182 "OpenGLES.framework", 192 "OpenGLES.framework",
183 "QuartzCore.framework", 193 "QuartzCore.framework",
184 ] 194 ]
195 deps = [
196 ":webrtc_h264_video_toolbox",
197 ]
185 } 198 }
186 199
187 if (is_mac) { 200 if (is_mac) {
188 sources += [ 201 sources += [
189 "objc/Framework/Classes/RTCNSGLVideoView.m", 202 "objc/Framework/Classes/RTCNSGLVideoView.m",
190 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", 203 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
191 ] 204 ]
192 libs = [ 205 libs = [
193 "CoreMedia.framework", 206 "CoreMedia.framework",
194 "OpenGL.framework", 207 "OpenGL.framework",
195 ] 208 ]
209 deps = []
196 } 210 }
197 211
198 configs += [ 212 configs += [
199 "..:common_objc", 213 "..:common_objc",
200 "//build/config/compiler:enable_arc", 214 "//build/config/compiler:enable_arc",
201 ] 215 ]
202 216
203 public_configs = [ ":rtc_sdk_common_objc_config" ] 217 public_configs = [ ":rtc_sdk_common_objc_config" ]
204 218
205 if (!build_with_chromium && is_clang) { 219 if (!build_with_chromium && is_clang) {
206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
208 } 222 }
209 223
210 libs += [ "AVFoundation.framework" ] 224 libs += [ "AVFoundation.framework" ]
211 225
212 deps = [ 226 deps += [
213 ":rtc_sdk_common_objc", 227 ":rtc_sdk_common_objc",
214 "../api:libjingle_peerconnection", 228 "../api:libjingle_peerconnection",
215 ] 229 ]
216 230
217 if (rtc_build_libyuv) { 231 if (rtc_build_libyuv) {
218 deps += [ "$rtc_libyuv_dir" ] 232 deps += [ "$rtc_libyuv_dir" ]
219 public_deps = [ 233 public_deps = [
220 "$rtc_libyuv_dir", 234 "$rtc_libyuv_dir",
221 ] 235 ]
222 } 236 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) 358 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
345 configs -= [ "//build/config/clang:find_bad_constructs" ] 359 configs -= [ "//build/config/clang:find_bad_constructs" ]
346 } 360 }
347 } 361 }
348 } 362 }
349 363
350 rtc_static_library("rtc_sdk_objc") { 364 rtc_static_library("rtc_sdk_objc") {
351 complete_static_lib = true 365 complete_static_lib = true
352 deps = [ 366 deps = [
353 ":rtc_sdk_peerconnection_objc", 367 ":rtc_sdk_peerconnection_objc",
354 "../system_wrappers:field_trial_default", 368 "//webrtc/system_wrappers:field_trial_default",
355 "../system_wrappers:metrics_default", 369 "//webrtc/system_wrappers:metrics_default",
356 ] 370 ]
357 } 371 }
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 }
358 } 415 }
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