blob: 5d40cd0f398b80583a17676a822934da67d7f610 [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 Hjelleca91e382016-01-21 15:36:47 -080022 'objc/RTCAudioTrack+Private.h',
23 'objc/RTCAudioTrack.h',
24 'objc/RTCAudioTrack.mm',
Jon Hjelle7ac8bab2016-01-21 11:44:55 -080025 'objc/RTCAVFoundationVideoSource+Private.h',
26 'objc/RTCAVFoundationVideoSource.h',
27 'objc/RTCAVFoundationVideoSource.mm',
Jon Hjelle29d5e572016-01-06 11:49:11 -080028 'objc/RTCIceCandidate+Private.h',
29 'objc/RTCIceCandidate.h',
30 'objc/RTCIceCandidate.mm',
hjonaa32c3e2015-12-13 19:58:11 -080031 'objc/RTCIceServer+Private.h',
32 'objc/RTCIceServer.h',
33 'objc/RTCIceServer.mm',
hjon6f5ca082016-01-07 09:29:29 -080034 'objc/RTCMediaConstraints+Private.h',
35 'objc/RTCMediaConstraints.h',
36 'objc/RTCMediaConstraints.mm',
Jon Hjelle81028792016-01-11 13:16:13 -080037 'objc/RTCMediaStreamTrack+Private.h',
38 'objc/RTCMediaStreamTrack.h',
39 'objc/RTCMediaStreamTrack.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080040 'objc/RTCOpenGLVideoRenderer.h',
41 'objc/RTCOpenGLVideoRenderer.mm',
Jon Hjelleda99da82016-01-20 13:40:30 -080042 'objc/RTCPeerConnectionFactory+Private.h',
43 'objc/RTCPeerConnectionFactory.h',
44 'objc/RTCPeerConnectionFactory.mm',
Jon Hjelle67e83d62016-01-06 12:05:22 -080045 'objc/RTCSessionDescription+Private.h',
46 'objc/RTCSessionDescription.h',
47 'objc/RTCSessionDescription.mm',
Jon Hjellea2c353f2016-01-11 13:11:38 -080048 'objc/RTCStatsReport+Private.h',
49 'objc/RTCStatsReport.h',
50 'objc/RTCStatsReport.mm',
Jon Hjelle78234952016-01-11 09:47:07 -080051 'objc/RTCVideoFrame+Private.h',
52 'objc/RTCVideoFrame.h',
53 'objc/RTCVideoFrame.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080054 'objc/RTCVideoRenderer.h',
Jon Hjelle891a4462016-01-21 11:42:05 -080055 'objc/RTCVideoRendererAdapter+Private.h',
56 'objc/RTCVideoRendererAdapter.h',
57 'objc/RTCVideoRendererAdapter.mm',
Jon Hjelle065aacc2016-01-20 13:25:44 -080058 'objc/RTCVideoSource+Private.h',
59 'objc/RTCVideoSource.h',
60 'objc/RTCVideoSource.mm',
Jon Hjelleca91e382016-01-21 15:36:47 -080061 'objc/RTCVideoTrack+Private.h',
62 'objc/RTCVideoTrack.h',
63 'objc/RTCVideoTrack.mm',
Jon Hjelle7ac8bab2016-01-21 11:44:55 -080064 'objc/avfoundationvideocapturer.h',
65 'objc/avfoundationvideocapturer.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080066 ],
67 'conditions': [
68 ['OS=="ios"', {
69 'sources': [
70 'objc/RTCEAGLVideoView.h',
71 'objc/RTCEAGLVideoView.m',
72 ],
73 'all_dependent_settings': {
74 'xcode_settings': {
75 'OTHER_LDFLAGS': [
76 '-framework CoreGraphics',
77 '-framework GLKit',
78 '-framework OpenGLES',
79 '-framework QuartzCore',
80 ]
81 }
82 }
83 }],
84 ['OS=="mac"', {
85 'sources': [
86 'objc/RTCNSGLVideoView.h',
87 'objc/RTCNSGLVideoView.m',
88 ],
89 }],
hjonaa32c3e2015-12-13 19:58:11 -080090 ],
91 'xcode_settings': {
92 'CLANG_ENABLE_OBJC_ARC': 'YES',
93 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
94 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch',
95 },
96 }
97 ],
98 }], # OS=="ios"
99 ],
100}