blob: 5f848d7663c71d77c90737b01d9156e86c9fc358 [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',
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 Hjelle2bf9a5f2016-01-21 16:14:11 -080037 'objc/RTCMediaStream+Private.h',
38 'objc/RTCMediaStream.h',
39 'objc/RTCMediaStream.mm',
Jon Hjelle81028792016-01-11 13:16:13 -080040 'objc/RTCMediaStreamTrack+Private.h',
41 'objc/RTCMediaStreamTrack.h',
42 'objc/RTCMediaStreamTrack.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080043 'objc/RTCOpenGLVideoRenderer.h',
44 'objc/RTCOpenGLVideoRenderer.mm',
Jon Hjelleda99da82016-01-20 13:40:30 -080045 'objc/RTCPeerConnectionFactory+Private.h',
46 'objc/RTCPeerConnectionFactory.h',
47 'objc/RTCPeerConnectionFactory.mm',
Jon Hjelle67e83d62016-01-06 12:05:22 -080048 'objc/RTCSessionDescription+Private.h',
49 'objc/RTCSessionDescription.h',
50 'objc/RTCSessionDescription.mm',
Jon Hjellea2c353f2016-01-11 13:11:38 -080051 'objc/RTCStatsReport+Private.h',
52 'objc/RTCStatsReport.h',
53 'objc/RTCStatsReport.mm',
Jon Hjelle78234952016-01-11 09:47:07 -080054 'objc/RTCVideoFrame+Private.h',
55 'objc/RTCVideoFrame.h',
56 'objc/RTCVideoFrame.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080057 'objc/RTCVideoRenderer.h',
Jon Hjelle891a4462016-01-21 11:42:05 -080058 'objc/RTCVideoRendererAdapter+Private.h',
59 'objc/RTCVideoRendererAdapter.h',
60 'objc/RTCVideoRendererAdapter.mm',
Jon Hjelle065aacc2016-01-20 13:25:44 -080061 'objc/RTCVideoSource+Private.h',
62 'objc/RTCVideoSource.h',
63 'objc/RTCVideoSource.mm',
Jon Hjelleca91e382016-01-21 15:36:47 -080064 'objc/RTCVideoTrack+Private.h',
65 'objc/RTCVideoTrack.h',
66 'objc/RTCVideoTrack.mm',
Jon Hjelle7ac8bab2016-01-21 11:44:55 -080067 'objc/avfoundationvideocapturer.h',
68 'objc/avfoundationvideocapturer.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080069 ],
70 'conditions': [
71 ['OS=="ios"', {
72 'sources': [
73 'objc/RTCEAGLVideoView.h',
74 'objc/RTCEAGLVideoView.m',
75 ],
76 'all_dependent_settings': {
77 'xcode_settings': {
78 'OTHER_LDFLAGS': [
79 '-framework CoreGraphics',
80 '-framework GLKit',
81 '-framework OpenGLES',
82 '-framework QuartzCore',
83 ]
84 }
85 }
86 }],
87 ['OS=="mac"', {
88 'sources': [
89 'objc/RTCNSGLVideoView.h',
90 'objc/RTCNSGLVideoView.m',
91 ],
92 }],
hjonaa32c3e2015-12-13 19:58:11 -080093 ],
94 'xcode_settings': {
95 'CLANG_ENABLE_OBJC_ARC': 'YES',
96 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
97 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch',
98 },
99 }
100 ],
101 }], # OS=="ios"
102 ],
103}