blob: 430fee70d9a0d18411161af8464247d9a12fc1f7 [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 Hjelle29d5e572016-01-06 11:49:11 -080022 'objc/RTCIceCandidate+Private.h',
23 'objc/RTCIceCandidate.h',
24 'objc/RTCIceCandidate.mm',
hjonaa32c3e2015-12-13 19:58:11 -080025 'objc/RTCIceServer+Private.h',
26 'objc/RTCIceServer.h',
27 'objc/RTCIceServer.mm',
hjon6f5ca082016-01-07 09:29:29 -080028 'objc/RTCMediaConstraints+Private.h',
29 'objc/RTCMediaConstraints.h',
30 'objc/RTCMediaConstraints.mm',
Jon Hjelle81028792016-01-11 13:16:13 -080031 'objc/RTCMediaStreamTrack+Private.h',
32 'objc/RTCMediaStreamTrack.h',
33 'objc/RTCMediaStreamTrack.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080034 'objc/RTCOpenGLVideoRenderer.h',
35 'objc/RTCOpenGLVideoRenderer.mm',
Jon Hjelle67e83d62016-01-06 12:05:22 -080036 'objc/RTCSessionDescription+Private.h',
37 'objc/RTCSessionDescription.h',
38 'objc/RTCSessionDescription.mm',
Jon Hjellea2c353f2016-01-11 13:11:38 -080039 'objc/RTCStatsReport+Private.h',
40 'objc/RTCStatsReport.h',
41 'objc/RTCStatsReport.mm',
Jon Hjelle78234952016-01-11 09:47:07 -080042 'objc/RTCVideoFrame+Private.h',
43 'objc/RTCVideoFrame.h',
44 'objc/RTCVideoFrame.mm',
Jon Hjellee799bad2016-01-11 13:47:11 -080045 'objc/RTCVideoRenderer.h',
46 ],
47 'conditions': [
48 ['OS=="ios"', {
49 'sources': [
50 'objc/RTCEAGLVideoView.h',
51 'objc/RTCEAGLVideoView.m',
52 ],
53 'all_dependent_settings': {
54 'xcode_settings': {
55 'OTHER_LDFLAGS': [
56 '-framework CoreGraphics',
57 '-framework GLKit',
58 '-framework OpenGLES',
59 '-framework QuartzCore',
60 ]
61 }
62 }
63 }],
64 ['OS=="mac"', {
65 'sources': [
66 'objc/RTCNSGLVideoView.h',
67 'objc/RTCNSGLVideoView.m',
68 ],
69 }],
hjonaa32c3e2015-12-13 19:58:11 -080070 ],
71 'xcode_settings': {
72 'CLANG_ENABLE_OBJC_ARC': 'YES',
73 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
74 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch',
75 },
76 }
77 ],
78 }], # OS=="ios"
79 ],
80}