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 | |
11 config("ios_config") { | |
12 libs = [ | |
13 "CoreGraphics.framework", | |
14 "GLKit.framework", | |
15 "OpenGLES.framework", | |
16 "QuartzCore.framework", | |
17 ] | |
18 } | |
19 | |
20 if (is_ios) { | |
21 source_set("rtc_api_objc") { | |
22 deps = [ | |
23 "../base:rtc_base_objc", | |
24 #"../../talk/libjingle:libjingle_peerconnection", | |
25 ] | |
26 cflags = [ | |
27 "-fobjc-arc", | |
28 "-Wobjc-missing-property-synthesis", | |
29 ] | |
30 sources = [ | |
31 # Add these when there's a BUILD.gn for peer connection APIs | |
32 #"objc/RTCAVFoundationVideoSource+Private.h", | |
33 #"objc/RTCAVFoundationVideoSource.h", | |
34 #"objc/RTCAVFoundationVideoSource.mm", | |
35 #"objc/RTCAudioTrack+Private.h", | |
36 #"objc/RTCAudioTrack.h", | |
37 #"objc/RTCAudioTrack.mm", | |
38 #"objc/RTCConfiguration+Private.h", | |
39 #"objc/RTCConfiguration.h", | |
40 #"objc/RTCConfiguration.mm", | |
41 #"objc/RTCDataChannel+Private.h", | |
42 #"objc/RTCDataChannel.h", | |
43 #"objc/RTCDataChannel.mm", | |
44 #"objc/RTCDataChannelConfiguration+Private.h", | |
45 #"objc/RTCDataChannelConfiguration.h", | |
46 #"objc/RTCDataChannelConfiguration.mm", | |
47 #"objc/RTCIceCandidate+Private.h", | |
48 #"objc/RTCIceCandidate.h", | |
49 #"objc/RTCIceCandidate.mm", | |
50 #"objc/RTCMediaStream+Private.h", | |
51 #"objc/RTCMediaStream.h", | |
52 #"objc/RTCMediaStream.mm", | |
53 #"objc/RTCMediaStreamTrack+Private.h", | |
54 #"objc/RTCMediaStreamTrack.h", | |
55 #"objc/RTCMediaStreamTrack.mm", | |
56 #"objc/RTCPeerConnection+DataChannel.h", | |
57 #"objc/RTCPeerConnection+Private.h", | |
58 #"objc/RTCPeerConnection+Stats.h", | |
59 #"objc/RTCPeerConnection.h", | |
60 #"objc/RTCPeerConnection.mm", | |
61 #"objc/RTCPeerConnectionFactory+Private.h", | |
62 #"objc/RTCPeerConnectionFactory.h", | |
63 #"objc/RTCPeerConnectionFactory.mm", | |
64 #"objc/RTCRtpCodecParameters+Private.h", | |
65 #"objc/RTCRtpCodecParameters.h", | |
66 #"objc/RTCRtpCodecParameters.mm", | |
67 #"objc/RTCRtpEncodingParameters+Private.h", | |
68 #"objc/RTCRtpEncodingParameters.h", | |
69 #"objc/RTCRtpEncodingParameters.mm", | |
70 #"objc/RTCRtpParameters+Private.h", | |
71 #"objc/RTCRtpParameters.h", | |
72 #"objc/RTCRtpParameters.mm", | |
73 #"objc/RTCRtpSender+Private.h", | |
74 #"objc/RTCRtpSender.h", | |
75 #"objc/RTCRtpSender.mm", | |
76 #"objc/RTCVideoSource+Private.h", | |
77 #"objc/RTCVideoSource.h", | |
78 #"objc/RTCVideoSource.mm", | |
79 #"objc/RTCVideoTrack+Private.h", | |
80 #"objc/RTCVideoTrack.h", | |
81 #"objc/RTCVideoTrack.mm", | |
82 "objc/RTCIceServer+Private.h", | |
83 "objc/RTCIceServer.h", | |
84 "objc/RTCIceServer.mm", | |
85 "objc/RTCMediaConstraints+Private.h", | |
86 "objc/RTCMediaConstraints.h", | |
87 "objc/RTCMediaConstraints.mm", | |
88 "objc/RTCOpenGLVideoRenderer.h", | |
89 "objc/RTCOpenGLVideoRenderer.mm", | |
90 "objc/RTCSessionDescription+Private.h", | |
91 "objc/RTCSessionDescription.h", | |
92 "objc/RTCSessionDescription.mm", | |
93 "objc/RTCStatsReport+Private.h", | |
94 "objc/RTCStatsReport.h", | |
95 "objc/RTCStatsReport.mm", | |
96 "objc/RTCVideoFrame+Private.h", | |
97 "objc/RTCVideoFrame.h", | |
98 "objc/RTCVideoFrame.mm", | |
99 "objc/RTCVideoRenderer.h", | |
100 "objc/RTCVideoRendererAdapter+Private.h", | |
101 "objc/RTCVideoRendererAdapter.h", | |
102 "objc/RTCVideoRendererAdapter.mm", | |
103 "objc/WebRTC-Prefix.pch", | |
104 "objc/avfoundationvideocapturer.h", | |
105 "objc/avfoundationvideocapturer.mm", | |
106 ] | |
107 | |
108 if (is_ios) { | |
109 sources += [ | |
110 "objc/RTCEAGLVideoView.h", | |
111 "objc/RTCEAGLVideoView.m", | |
112 ] | |
113 } | |
114 | |
115 if (is_mac) { | |
116 sources += [ | |
117 "objc/RTCNSGLVideoView.h", | |
118 "objc/RTCNSGLVideoView.m", | |
119 ] | |
120 } | |
121 } | |
122 } | |
OLD | NEW |