blob: ec51b4772819758fd92c5cdc8836c5852d74a9e8 [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
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
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'includes': [ '../build/common.gypi', ],
11 'conditions': [
12 ['OS=="ios"', {
13 'targets': [
14 {
15 'target_name': 'rtc_api_objc',
16 'type': 'static_library',
17 'dependencies': [
18 '<(webrtc_root)/base/base.gyp:rtc_base_objc',
Jon Hjelle29d5e572016-01-06 11:49:11 -080019 '../../talk/libjingle.gyp:libjingle_peerconnection',
hjonaa32c3e2015-12-13 19:58:11 -080020 ],
21 'sources': [
Jon Hjelle7ac8bab2016-01-21 11:44:55 -080022 'objc/RTCAVFoundationVideoSource+Private.h',
23 'objc/RTCAVFoundationVideoSource.h',
24 'objc/RTCAVFoundationVideoSource.mm',
Jon Hjelle2bf9a5f2016-01-21 16:14:11 -080025 'objc/RTCAudioTrack+Private.h',
26 'objc/RTCAudioTrack.h',
27 'objc/RTCAudioTrack.mm',
hjon6d49a8e2016-01-26 13:06:42 -080028 'objc/RTCConfiguration+Private.h',
29 'objc/RTCConfiguration.h',
30 'objc/RTCConfiguration.mm',
hjone373dc22016-01-22 14:04:27 -080031 'objc/RTCDataChannel+Private.h',
32 'objc/RTCDataChannel.h',
33 'objc/RTCDataChannel.mm',
hjonda2183c2016-01-27 13:42:28 -080034 'objc/RTCDataChannelConfiguration+Private.h',
35 'objc/RTCDataChannelConfiguration.h',
36 'objc/RTCDataChannelConfiguration.mm',
Jon Hjelle29d5e572016-01-06 11:49:11 -080037 'objc/RTCIceCandidate+Private.h',
38 'objc/RTCIceCandidate.h',
39 'objc/RTCIceCandidate.mm',
hjonaa32c3e2015-12-13 19:58:11 -080040 'objc/RTCIceServer+Private.h',
41 'objc/RTCIceServer.h',
42 'objc/RTCIceServer.mm',
hjon6f5ca082016-01-07 09:29:29 -080043 'objc/RTCMediaConstraints+Private.h',
44 'objc/RTCMediaConstraints.h',
45 'objc/RTCMediaConstraints.mm',
Jon Hjelle2bf9a5f2016-01-21 16:14:11 -080046 'objc/RTCMediaStream+Private.h',
47 'objc/RTCMediaStream.h',
48 'objc/RTCMediaStream.mm',
Jon Hjelle81028792016-01-11 13:16:13 -080049 'objc/RTCMediaStreamTrack+Private.h',
50 'objc/RTCMediaStreamTrack.h',
51 'objc/RTCMediaStreamTrack.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080052 'objc/RTCOpenGLVideoRenderer.h',
53 'objc/RTCOpenGLVideoRenderer.mm',
Jon Hjelleda99da82016-01-20 13:40:30 -080054 'objc/RTCPeerConnectionFactory+Private.h',
55 'objc/RTCPeerConnectionFactory.h',
56 'objc/RTCPeerConnectionFactory.mm',
Jon Hjelle67e83d62016-01-06 12:05:22 -080057 'objc/RTCSessionDescription+Private.h',
58 'objc/RTCSessionDescription.h',
59 'objc/RTCSessionDescription.mm',
Jon Hjellea2c353f2016-01-11 13:11:38 -080060 'objc/RTCStatsReport+Private.h',
61 'objc/RTCStatsReport.h',
62 'objc/RTCStatsReport.mm',
Jon Hjelle78234952016-01-11 09:47:07 -080063 'objc/RTCVideoFrame+Private.h',
64 'objc/RTCVideoFrame.h',
65 'objc/RTCVideoFrame.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080066 'objc/RTCVideoRenderer.h',
Jon Hjelle891a4462016-01-21 11:42:05 -080067 'objc/RTCVideoRendererAdapter+Private.h',
68 'objc/RTCVideoRendererAdapter.h',
69 'objc/RTCVideoRendererAdapter.mm',
Jon Hjelle065aacc2016-01-20 13:25:44 -080070 'objc/RTCVideoSource+Private.h',
71 'objc/RTCVideoSource.h',
72 'objc/RTCVideoSource.mm',
Jon Hjelleca91e382016-01-21 15:36:47 -080073 'objc/RTCVideoTrack+Private.h',
74 'objc/RTCVideoTrack.h',
75 'objc/RTCVideoTrack.mm',
Jon Hjelle7ac8bab2016-01-21 11:44:55 -080076 'objc/avfoundationvideocapturer.h',
77 'objc/avfoundationvideocapturer.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080078 ],
79 'conditions': [
80 ['OS=="ios"', {
81 'sources': [
82 'objc/RTCEAGLVideoView.h',
83 'objc/RTCEAGLVideoView.m',
84 ],
85 'all_dependent_settings': {
86 'xcode_settings': {
87 'OTHER_LDFLAGS': [
88 '-framework CoreGraphics',
89 '-framework GLKit',
90 '-framework OpenGLES',
91 '-framework QuartzCore',
92 ]
93 }
94 }
95 }],
96 ['OS=="mac"', {
97 'sources': [
98 'objc/RTCNSGLVideoView.h',
99 'objc/RTCNSGLVideoView.m',
100 ],
101 }],
hjonaa32c3e2015-12-13 19:58:11 -0800102 ],
103 'xcode_settings': {
104 'CLANG_ENABLE_OBJC_ARC': 'YES',
105 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
106 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch',
107 },
108 }
109 ],
110 }], # OS=="ios"
111 ],
112}