| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 "objc/Framework/Classes/helpers.mm", | 43 "objc/Framework/Classes/helpers.mm", |
| 44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 46 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 46 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 47 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 47 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 51 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 51 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
| 52 ] | 52 ] |
| 53 configs += [ | |
| 54 "..:common_objc", | |
| 55 "//build/config/compiler:enable_arc", | |
| 56 ] | |
| 57 public_configs = [ ":rtc_sdk_common_objc_config" ] | |
| 58 deps = [ | 53 deps = [ |
| 59 "../base:rtc_base", | 54 "../base:rtc_base", |
| 60 ] | 55 ] |
| 56 configs += [ "..:common_objc" ] |
| 57 |
| 58 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 61 if (is_ios) { | 59 if (is_ios) { |
| 62 sources += [ | 60 sources += [ |
| 63 "objc/Framework/Classes/RTCCameraPreviewView.m", | 61 "objc/Framework/Classes/RTCCameraPreviewView.m", |
| 64 "objc/Framework/Classes/RTCUIApplication.h", | 62 "objc/Framework/Classes/RTCUIApplication.h", |
| 65 "objc/Framework/Classes/RTCUIApplication.mm", | 63 "objc/Framework/Classes/RTCUIApplication.mm", |
| 66 "objc/Framework/Classes/UIDevice+RTCDevice.mm", | 64 "objc/Framework/Classes/UIDevice+RTCDevice.mm", |
| 67 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 65 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 68 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 66 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
| 69 ] | 67 ] |
| 70 if (current_cpu == "arm64") { | 68 if (current_cpu == "arm64") { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", | 186 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
| 189 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", | 187 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
| 190 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 188 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
| 191 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", | 189 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
| 192 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 190 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
| 193 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 191 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
| 194 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 192 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
| 195 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 193 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
| 196 ] | 194 ] |
| 197 | 195 |
| 198 configs += [ | |
| 199 "..:common_objc", | |
| 200 "//build/config/compiler:enable_arc", | |
| 201 ] | |
| 202 | |
| 203 public_configs = [ ":rtc_sdk_common_objc_config" ] | |
| 204 | |
| 205 deps = [ | 196 deps = [ |
| 206 ":webrtc_h264_video_toolbox", | 197 ":webrtc_h264_video_toolbox", |
| 207 "../api:video_frame_api", | 198 "../api:video_frame_api", |
| 208 "../base:rtc_base", | 199 "../base:rtc_base", |
| 209 "../base:rtc_base_approved", | 200 "../base:rtc_base_approved", |
| 210 "../common_video", | 201 "../common_video", |
| 211 "../media:rtc_media", | 202 "../media:rtc_media", |
| 212 "../media:rtc_media_base", | 203 "../media:rtc_media_base", |
| 213 "../system_wrappers", | 204 "../system_wrappers", |
| 214 ] | 205 ] |
| (...skipping 23 matching lines...) Expand all Loading... |
| 238 ] | 229 ] |
| 239 libs = [ | 230 libs = [ |
| 240 "CoreVideo.framework", | 231 "CoreVideo.framework", |
| 241 "CoreMedia.framework", | 232 "CoreMedia.framework", |
| 242 "OpenGL.framework", | 233 "OpenGL.framework", |
| 243 "Metal.framework", | 234 "Metal.framework", |
| 244 "MetalKit.framework", | 235 "MetalKit.framework", |
| 245 ] | 236 ] |
| 246 } | 237 } |
| 247 | 238 |
| 239 configs += [ "..:common_objc" ] |
| 240 |
| 241 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 242 |
| 248 if (!build_with_chromium && is_clang) { | 243 if (!build_with_chromium && is_clang) { |
| 249 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 244 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 250 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 245 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 251 } | 246 } |
| 252 | 247 |
| 253 libs += [ "AVFoundation.framework" ] | 248 libs += [ "AVFoundation.framework" ] |
| 254 | 249 |
| 255 deps += [ | 250 deps += [ |
| 256 ":rtc_sdk_common_objc", | 251 ":rtc_sdk_common_objc", |
| 257 "../pc:libjingle_peerconnection", | 252 "../pc:libjingle_peerconnection", |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 356 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 362 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 357 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
| 363 } | 358 } |
| 364 | 359 |
| 365 ldflags = [ | 360 ldflags = [ |
| 366 "-all_load", | 361 "-all_load", |
| 367 "-install_name", | 362 "-install_name", |
| 368 "@rpath/$output_name.framework/$output_name", | 363 "@rpath/$output_name.framework/$output_name", |
| 369 ] | 364 ] |
| 370 | 365 |
| 371 configs += [ | |
| 372 "..:common_objc", | |
| 373 "//build/config/compiler:enable_arc", | |
| 374 ] | |
| 375 | |
| 376 public_configs = [ ":rtc_sdk_common_objc_config" ] | |
| 377 | |
| 378 deps = [ | 366 deps = [ |
| 379 ":rtc_sdk_peerconnection_objc", | 367 ":rtc_sdk_peerconnection_objc", |
| 380 "../system_wrappers:field_trial_default", | 368 "../system_wrappers:field_trial_default", |
| 381 "../system_wrappers:metrics_default", | 369 "../system_wrappers:metrics_default", |
| 382 ] | 370 ] |
| 383 | 371 |
| 384 libs = [ | 372 libs = [ |
| 385 "AVFoundation.framework", | 373 "AVFoundation.framework", |
| 386 "AudioToolbox.framework", | 374 "AudioToolbox.framework", |
| 387 "CoreGraphics.framework", | 375 "CoreGraphics.framework", |
| 388 "CoreMedia.framework", | 376 "CoreMedia.framework", |
| 389 "GLKit.framework", | 377 "GLKit.framework", |
| 390 "VideoToolbox.framework", | 378 "VideoToolbox.framework", |
| 391 ] | 379 ] |
| 392 | 380 |
| 381 configs += [ "..:common_objc" ] |
| 382 |
| 383 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 384 |
| 393 if (!build_with_chromium && is_clang) { | 385 if (!build_with_chromium && is_clang) { |
| 394 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) | 386 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) |
| 395 configs -= [ "//build/config/clang:find_bad_constructs" ] | 387 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 396 } | 388 } |
| 397 } | 389 } |
| 398 } | 390 } |
| 399 | 391 |
| 400 rtc_static_library("rtc_sdk_objc") { | 392 rtc_static_library("rtc_sdk_objc") { |
| 401 complete_static_lib = true | 393 complete_static_lib = true |
| 402 deps = [ | 394 deps = [ |
| 403 ":rtc_sdk_peerconnection_objc", | 395 ":rtc_sdk_peerconnection_objc", |
| 404 "//webrtc/system_wrappers:field_trial_default", | 396 "//webrtc/system_wrappers:field_trial_default", |
| 405 "//webrtc/system_wrappers:metrics_default", | 397 "//webrtc/system_wrappers:metrics_default", |
| 406 ] | 398 ] |
| 407 } | 399 } |
| 408 | 400 |
| 409 rtc_static_library("webrtc_h264_video_toolbox") { | 401 rtc_static_library("webrtc_h264_video_toolbox") { |
| 410 sources = [ | 402 sources = [ |
| 411 "objc/Framework/Classes/h264_video_toolbox_decoder.cc", | 403 "objc/Framework/Classes/h264_video_toolbox_decoder.cc", |
| 412 "objc/Framework/Classes/h264_video_toolbox_decoder.h", | 404 "objc/Framework/Classes/h264_video_toolbox_decoder.h", |
| 413 "objc/Framework/Classes/h264_video_toolbox_encoder.h", | 405 "objc/Framework/Classes/h264_video_toolbox_encoder.h", |
| 414 "objc/Framework/Classes/h264_video_toolbox_encoder.mm", | 406 "objc/Framework/Classes/h264_video_toolbox_encoder.mm", |
| 415 "objc/Framework/Classes/h264_video_toolbox_nalu.cc", | 407 "objc/Framework/Classes/h264_video_toolbox_nalu.cc", |
| 416 "objc/Framework/Classes/h264_video_toolbox_nalu.h", | 408 "objc/Framework/Classes/h264_video_toolbox_nalu.h", |
| 417 ] | 409 ] |
| 418 | 410 |
| 419 configs += [ | 411 configs += [ "//webrtc:common_objc" ] |
| 420 "//webrtc:common_objc", | |
| 421 "//build/config/compiler:enable_arc", | |
| 422 ] | |
| 423 | 412 |
| 424 deps = [ | 413 deps = [ |
| 425 ":rtc_sdk_common_objc", | 414 ":rtc_sdk_common_objc", |
| 426 "../api:video_frame_api", | 415 "../api:video_frame_api", |
| 427 "../base:rtc_base_approved", | 416 "../base:rtc_base_approved", |
| 428 "../common_video", | 417 "../common_video", |
| 429 "../media:rtc_media_base", | 418 "../media:rtc_media_base", |
| 430 "../modules/video_coding:video_coding_utility", | 419 "../modules/video_coding:video_coding_utility", |
| 431 "../modules/video_coding:webrtc_h264", | 420 "../modules/video_coding:webrtc_h264", |
| 432 "../system_wrappers", | 421 "../system_wrappers", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 448 deps += [ "$rtc_libyuv_dir" ] | 437 deps += [ "$rtc_libyuv_dir" ] |
| 449 public_deps = [ | 438 public_deps = [ |
| 450 "$rtc_libyuv_dir", | 439 "$rtc_libyuv_dir", |
| 451 ] | 440 ] |
| 452 } else { | 441 } else { |
| 453 # Need to add a directory normally exported by libyuv. | 442 # Need to add a directory normally exported by libyuv. |
| 454 include_dirs = [ "$rtc_libyuv_dir/include" ] | 443 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 455 } | 444 } |
| 456 } | 445 } |
| 457 } | 446 } |
| OLD | NEW |