| OLD | NEW |
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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 | 10 |
| 11 config("ios_config") { |
| 12 libs = [ |
| 13 "CoreGraphics.framework", |
| 14 "GLKit.framework", |
| 15 "OpenGLES.framework", |
| 16 "QuartzCore.framework", |
| 17 ] |
| 18 } |
| 19 |
| 11 if (is_ios) { | 20 if (is_ios) { |
| 12 source_set("rtc_api_objc") { | 21 source_set("rtc_api_objc") { |
| 13 deps = [ | 22 deps = [ |
| 14 "//webrtc/base:rtc_base_objc", | 23 "//webrtc/base:rtc_base_objc", |
| 15 #"//talk/libjingle:libjingle_peerconnection", | 24 #"//talk/libjingle:libjingle_peerconnection", |
| 16 ] | 25 ] |
| 17 cflags = [ | 26 cflags = [ |
| 18 "-fobjc-arc", | 27 "-fobjc-arc", |
| 19 "-Wobjc-missing-property-synthesis", | 28 "-Wobjc-missing-property-synthesis", |
| 20 ] | 29 ] |
| 21 sources = [ | 30 sources = [ |
| 22 # Add these when there's a BUILD.gn for peer connection APIs | 31 # Add these when there's a BUILD.gn for peer connection APIs |
| 23 #"objc/RTCIceCandidate+Private.h", | 32 #"objc/RTCIceCandidate+Private.h", |
| 24 #"objc/RTCIceCandidate.h", | 33 #"objc/RTCIceCandidate.h", |
| 25 #"objc/RTCIceCandidate.mm", | 34 #"objc/RTCIceCandidate.mm", |
| 26 #"objc/RTCMediaStreamTrack+Private.h", | 35 #"objc/RTCMediaStreamTrack+Private.h", |
| 27 #"objc/RTCMediaStreamTrack.h", | 36 #"objc/RTCMediaStreamTrack.h", |
| 28 #"objc/RTCMediaStreamTrack.mm", | 37 #"objc/RTCMediaStreamTrack.mm", |
| 29 "objc/RTCIceServer+Private.h", | 38 "objc/RTCIceServer+Private.h", |
| 30 "objc/RTCIceServer.h", | 39 "objc/RTCIceServer.h", |
| 31 "objc/RTCIceServer.mm", | 40 "objc/RTCIceServer.mm", |
| 32 "objc/RTCMediaConstraints+Private.h", | 41 "objc/RTCMediaConstraints+Private.h", |
| 33 "objc/RTCMediaConstraints.h", | 42 "objc/RTCMediaConstraints.h", |
| 34 "objc/RTCMediaConstraints.mm", | 43 "objc/RTCMediaConstraints.mm", |
| 44 "objc/RTCOpenGLVideoRenderer.h", |
| 45 "objc/RTCOpenGLVideoRenderer.mm", |
| 35 "objc/RTCSessionDescription+Private.h", | 46 "objc/RTCSessionDescription+Private.h", |
| 36 "objc/RTCSessionDescription.h", | 47 "objc/RTCSessionDescription.h", |
| 37 "objc/RTCSessionDescription.mm", | 48 "objc/RTCSessionDescription.mm", |
| 38 "objc/RTCStatsReport+Private.h", | 49 "objc/RTCStatsReport+Private.h", |
| 39 "objc/RTCStatsReport.h", | 50 "objc/RTCStatsReport.h", |
| 40 "objc/RTCStatsReport.mm", | 51 "objc/RTCStatsReport.mm", |
| 41 "objc/RTCVideoFrame+Private.h", | 52 "objc/RTCVideoFrame+Private.h", |
| 42 "objc/RTCVideoFrame.h", | 53 "objc/RTCVideoFrame.h", |
| 43 "objc/RTCVideoFrame.mm", | 54 "objc/RTCVideoFrame.mm", |
| 55 "objc/RTCVideoRenderer.h", |
| 44 "objc/WebRTC-Prefix.pch", | 56 "objc/WebRTC-Prefix.pch", |
| 45 ] | 57 ] |
| 58 |
| 59 if (is_ios) { |
| 60 sources += [ |
| 61 "objc/RTCEAGLVideoView.h", |
| 62 "objc/RTCEAGLVideoView.m", |
| 63 ] |
| 64 } |
| 65 |
| 66 if (is_mac) { |
| 67 sources += [ |
| 68 "objc/RTCNSGLVideoView.h", |
| 69 "objc/RTCNSGLVideoView.m", |
| 70 ] |
| 71 } |
| 46 } | 72 } |
| 47 } | 73 } |
| OLD | NEW |