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

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

Issue 2993473002: Clean up ObjC BUILD file
Patch Set: Created 3 years, 4 months 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("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_ios) { 10 if (is_ios) {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 201 }
202 if (is_mac) { 202 if (is_mac) {
203 sources = [ 203 sources = [
204 "objc/Framework/Classes/UI/RTCNSGLVideoView.m", 204 "objc/Framework/Classes/UI/RTCNSGLVideoView.m",
205 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", 205 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
206 ] 206 ]
207 } 207 }
208 configs += [ "..:common_objc" ] 208 configs += [ "..:common_objc" ]
209 deps = [ 209 deps = [
210 ":objc_common", 210 ":objc_common",
211 ":objc_peerconnection", 211 ":objc_video",
212 ] 212 ]
213 if (rtc_use_metal_rendering) {
214 deps += [ ":objc_metal" ]
215 }
213 } 216 }
214 217
215 if (rtc_use_metal_rendering) { 218 if (rtc_use_metal_rendering) {
216 rtc_static_library("objc_metal") { 219 rtc_static_library("objc_metal") {
217 sources = [ 220 sources = [
218 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", 221 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h",
219 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", 222 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm",
220 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", 223 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h",
221 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", 224 "objc/Framework/Classes/Metal/RTCMTLRenderer.h",
222 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", 225 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm",
(...skipping 20 matching lines...) Expand all
243 deps = [ 246 deps = [
244 ":objc_video", 247 ":objc_video",
245 "../api:video_frame_api", 248 "../api:video_frame_api",
246 "../rtc_base:rtc_base_approved", 249 "../rtc_base:rtc_base_approved",
247 ] 250 ]
248 configs += [ "..:common_objc" ] 251 configs += [ "..:common_objc" ]
249 public_configs = [ ":objc_common_config" ] 252 public_configs = [ ":objc_common_config" ]
250 } 253 }
251 } 254 }
252 255
253 rtc_static_library("objc_peerconnection") { 256 rtc_static_library("objc_videocapture") {
254 sources = [ 257 sources = [
255 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", 258 "objc/Framework/Classes/VideoCapture/RTCCameraVideoCapturer.m",
256 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", 259 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
257 ] 260 ]
258 if (is_ios) { 261 if (is_ios) {
259 sources += [ 262 sources += [
260 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", 263 "objc/Framework/Classes/VideoCapture/RTCFileVideoCapturer.h",
261 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", 264 "objc/Framework/Classes/VideoCapture/RTCFileVideoCapturer.m",
262 ] 265 ]
263 } 266 }
264 libs = [ "AVFoundation.framework" ] 267 libs = [ "AVFoundation.framework" ]
265 268
266 if (is_ios) {
267 libs += [ "CoreGraphics.framework" ]
268 }
269
270 configs += [ "..:common_objc" ] 269 configs += [ "..:common_objc" ]
271 270
272 public_configs = [ ":objc_common_config" ] 271 public_configs = [ ":objc_common_config" ]
273 272
274 if (!build_with_chromium && is_clang) { 273 if (!build_with_chromium && is_clang) {
275 # Suppress warnings from the Chromium Clang plugin 274 # Suppress warnings from the Chromium Clang plugin
276 # (bugs.webrtc.org/163). 275 # (bugs.webrtc.org/163).
277 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 276 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
278 } 277 }
279 278
280 deps = [ 279 deps = [
281 ":objc_common", 280 ":objc_common",
282 ":objc_corevideoframebuffer", 281 ":objc_peerconnectionfactory_base",
283 ":objc_peerconnectionfactory",
284 ":objc_video",
285 "../api:video_frame_api",
286 "../media:rtc_media_base",
287 "../pc:libjingle_peerconnection",
288 "../rtc_base:rtc_base",
289 ] 282 ]
290
291 if (rtc_use_metal_rendering) {
292 deps += [ ":objc_metal" ]
293 }
294
295 if (rtc_build_libyuv) {
296 deps += [ "$rtc_libyuv_dir" ]
297 public_deps = [
298 "$rtc_libyuv_dir",
299 ]
300 }
301 } 283 }
302 284
303 rtc_static_library("objc_peerconnectionfactory") { 285 rtc_static_library("objc_peerconnectionfactory") {
304 sources = [ 286 sources = [
305 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", 287 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
306 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", 288 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
307 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", 289 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm",
308 ] 290 ]
309 291
310 public_configs = [ ":objc_common_config" ] 292 public_configs = [ ":objc_common_config" ]
311 293
312 if (!build_with_chromium && is_clang) { 294 if (!build_with_chromium && is_clang) {
313 # Suppress warnings from the Chromium Clang plugin 295 # Suppress warnings from the Chromium Clang plugin
314 # (bugs.webrtc.org/163). 296 # (bugs.webrtc.org/163).
315 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 297 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
316 } 298 }
317 299
318 deps = [ 300 deps = [
319 ":objc_common", 301 ":objc_common",
320 ":objc_corevideoframebuffer", 302 ":objc_corevideoframebuffer",
321 ":objc_peerconnectionfactory_base", 303 ":objc_peerconnectionfactory_base",
322 ":objc_video",
daniela-webrtc 2017/08/01 08:35:08 Is this removed intentionally?
323 ":objc_videotoolbox", 304 ":objc_videotoolbox",
324 ":objc_videotracksource", 305 ":objc_videotracksource",
325 "../api:video_frame_api", 306 "../api:video_frame_api",
326 "../api/video_codecs:video_codecs_api", 307 "../api/video_codecs:video_codecs_api",
327 "../media:rtc_audio_video", 308 "../media:rtc_audio_video",
328 "../media:rtc_media_base", 309 "../media:rtc_media_base",
329 "../pc:create_pc_factory", 310 "../pc:create_pc_factory",
330 "../pc:peerconnection", 311 "../pc:peerconnection",
331 "../rtc_base:rtc_base", 312 "../rtc_base:rtc_base",
332 "../system_wrappers:field_trial_api", 313 "../system_wrappers:field_trial_api",
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ] 496 [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ]
516 } 497 }
517 498
518 # |-ObjC| flag needed to make sure category method implementations 499 # |-ObjC| flag needed to make sure category method implementations
519 # are included: 500 # are included:
520 # https://developer.apple.com/library/mac/qa/qa1490/_index.html 501 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
521 ldflags = [ "-ObjC" ] 502 ldflags = [ "-ObjC" ]
522 503
523 defines = [ "GTEST_RELATIVE_PATH" ] 504 defines = [ "GTEST_RELATIVE_PATH" ]
524 deps = [ 505 deps = [
525 ":objc_peerconnection",
526 ":objc_peerconnectionfactory", 506 ":objc_peerconnectionfactory",
507 ":objc_ui",
508 ":objc_videocapture",
527 ":objc_videotoolbox", 509 ":objc_videotoolbox",
528 ":objc_videotracksource", 510 ":objc_videotracksource",
529 "..//system_wrappers:system_wrappers_default", 511 "..//system_wrappers:system_wrappers_default",
530 "../modules:module_api", 512 "../modules:module_api",
531 "../rtc_base:rtc_base_tests_utils", 513 "../rtc_base:rtc_base_tests_utils",
532 "../system_wrappers:system_wrappers_default", 514 "../system_wrappers:system_wrappers_default",
533 "//third_party/ocmock", 515 "//third_party/ocmock",
534 ] 516 ]
535 517
536 if (is_ios) { 518 if (is_ios) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 603 }
622 604
623 ldflags = [ 605 ldflags = [
624 "-all_load", 606 "-all_load",
625 "-install_name", 607 "-install_name",
626 "@rpath/$output_name.framework/$output_name", 608 "@rpath/$output_name.framework/$output_name",
627 ] 609 ]
628 610
629 deps = [ 611 deps = [
630 ":objc_audio", 612 ":objc_audio",
631 ":objc_peerconnection", 613 ":objc_peerconnectionfactory",
632 ":objc_ui", 614 ":objc_ui",
615 ":objc_videocapture",
633 "../rtc_base:rtc_base_approved", 616 "../rtc_base:rtc_base_approved",
634 "../system_wrappers:field_trial_default", 617 "../system_wrappers:field_trial_default",
635 "../system_wrappers:metrics_default", 618 "../system_wrappers:metrics_default",
636 ] 619 ]
637 620
638 libs = [ 621 libs = [
639 "AVFoundation.framework", 622 "AVFoundation.framework",
640 "CoreGraphics.framework", 623 "CoreGraphics.framework",
641 "CoreMedia.framework", 624 "CoreMedia.framework",
642 "GLKit.framework", 625 "GLKit.framework",
643 ] 626 ]
644 627
645 configs += [ "..:common_objc" ] 628 configs += [ "..:common_objc" ]
646 629
647 public_configs = [ ":objc_common_config" ] 630 public_configs = [ ":objc_common_config" ]
648 631
649 if (!build_with_chromium && is_clang) { 632 if (!build_with_chromium && is_clang) {
650 # Suppress warnings from the Chromium Clang plugin 633 # Suppress warnings from the Chromium Clang plugin
651 # (bugs.webrtc.org/163). 634 # (bugs.webrtc.org/163).
652 configs -= [ "//build/config/clang:find_bad_constructs" ] 635 configs -= [ "//build/config/clang:find_bad_constructs" ]
653 } 636 }
654 } 637 }
655 } 638 }
656 639
657 rtc_static_library("rtc_sdk_objc") { 640 rtc_static_library("rtc_sdk_objc") {
658 complete_static_lib = true 641 complete_static_lib = true
659 deps = [ 642 deps = [
660 ":objc_peerconnection", 643 ":objc_audio",
644 ":objc_peerconnectionfactory",
661 ":objc_ui", 645 ":objc_ui",
646 ":objc_videocapture",
662 "../system_wrappers:field_trial_default", 647 "../system_wrappers:field_trial_default",
663 "../system_wrappers:metrics_default", 648 "../system_wrappers:metrics_default",
664 ] 649 ]
665 } 650 }
666 651
667 rtc_static_library("objc_corevideoframebuffer") { 652 rtc_static_library("objc_corevideoframebuffer") {
668 sources = [ 653 sources = [
669 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", 654 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc",
670 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", 655 "objc/Framework/Classes/Video/corevideo_frame_buffer.h",
671 ] 656 ]
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 public_deps = [ 719 public_deps = [
735 "$rtc_libyuv_dir", 720 "$rtc_libyuv_dir",
736 ] 721 ]
737 } else { 722 } else {
738 # Need to add a directory normally exported by libyuv. 723 # Need to add a directory normally exported by libyuv.
739 include_dirs = [ "$rtc_libyuv_dir/include" ] 724 include_dirs = [ "$rtc_libyuv_dir/include" ]
740 } 725 }
741 } 726 }
742 } 727 }
743 } 728 }
OLDNEW
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698