hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 1 | # 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 Hjelle | 29d5e57 | 2016-01-06 11:49:11 -0800 | [diff] [blame] | 19 | '../../talk/libjingle.gyp:libjingle_peerconnection', |
hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 20 | ], |
| 21 | 'sources': [ |
Jon Hjelle | 7ac8bab | 2016-01-21 11:44:55 -0800 | [diff] [blame] | 22 | 'objc/RTCAVFoundationVideoSource+Private.h', |
| 23 | 'objc/RTCAVFoundationVideoSource.h', |
| 24 | 'objc/RTCAVFoundationVideoSource.mm', |
Jon Hjelle | 2bf9a5f | 2016-01-21 16:14:11 -0800 | [diff] [blame] | 25 | 'objc/RTCAudioTrack+Private.h', |
| 26 | 'objc/RTCAudioTrack.h', |
| 27 | 'objc/RTCAudioTrack.mm', |
hjon | e373dc2 | 2016-01-22 14:04:27 -0800 | [diff] [blame] | 28 | 'objc/RTCDataChannel+Private.h', |
| 29 | 'objc/RTCDataChannel.h', |
| 30 | 'objc/RTCDataChannel.mm', |
Jon Hjelle | 29d5e57 | 2016-01-06 11:49:11 -0800 | [diff] [blame] | 31 | 'objc/RTCIceCandidate+Private.h', |
| 32 | 'objc/RTCIceCandidate.h', |
| 33 | 'objc/RTCIceCandidate.mm', |
hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 34 | 'objc/RTCIceServer+Private.h', |
| 35 | 'objc/RTCIceServer.h', |
| 36 | 'objc/RTCIceServer.mm', |
hjon | 6f5ca08 | 2016-01-07 09:29:29 -0800 | [diff] [blame] | 37 | 'objc/RTCMediaConstraints+Private.h', |
| 38 | 'objc/RTCMediaConstraints.h', |
| 39 | 'objc/RTCMediaConstraints.mm', |
Jon Hjelle | 2bf9a5f | 2016-01-21 16:14:11 -0800 | [diff] [blame] | 40 | 'objc/RTCMediaStream+Private.h', |
| 41 | 'objc/RTCMediaStream.h', |
| 42 | 'objc/RTCMediaStream.mm', |
Jon Hjelle | 8102879 | 2016-01-11 13:16:13 -0800 | [diff] [blame] | 43 | 'objc/RTCMediaStreamTrack+Private.h', |
| 44 | 'objc/RTCMediaStreamTrack.h', |
| 45 | 'objc/RTCMediaStreamTrack.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 46 | 'objc/RTCOpenGLVideoRenderer.h', |
| 47 | 'objc/RTCOpenGLVideoRenderer.mm', |
Jon Hjelle | da99da8 | 2016-01-20 13:40:30 -0800 | [diff] [blame] | 48 | 'objc/RTCPeerConnectionFactory+Private.h', |
| 49 | 'objc/RTCPeerConnectionFactory.h', |
| 50 | 'objc/RTCPeerConnectionFactory.mm', |
Jon Hjelle | 67e83d6 | 2016-01-06 12:05:22 -0800 | [diff] [blame] | 51 | 'objc/RTCSessionDescription+Private.h', |
| 52 | 'objc/RTCSessionDescription.h', |
| 53 | 'objc/RTCSessionDescription.mm', |
Jon Hjelle | a2c353f | 2016-01-11 13:11:38 -0800 | [diff] [blame] | 54 | 'objc/RTCStatsReport+Private.h', |
| 55 | 'objc/RTCStatsReport.h', |
| 56 | 'objc/RTCStatsReport.mm', |
Jon Hjelle | 7823495 | 2016-01-11 09:47:07 -0800 | [diff] [blame] | 57 | 'objc/RTCVideoFrame+Private.h', |
| 58 | 'objc/RTCVideoFrame.h', |
| 59 | 'objc/RTCVideoFrame.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 60 | 'objc/RTCVideoRenderer.h', |
Jon Hjelle | 891a446 | 2016-01-21 11:42:05 -0800 | [diff] [blame] | 61 | 'objc/RTCVideoRendererAdapter+Private.h', |
| 62 | 'objc/RTCVideoRendererAdapter.h', |
| 63 | 'objc/RTCVideoRendererAdapter.mm', |
Jon Hjelle | 065aacc | 2016-01-20 13:25:44 -0800 | [diff] [blame] | 64 | 'objc/RTCVideoSource+Private.h', |
| 65 | 'objc/RTCVideoSource.h', |
| 66 | 'objc/RTCVideoSource.mm', |
Jon Hjelle | ca91e38 | 2016-01-21 15:36:47 -0800 | [diff] [blame] | 67 | 'objc/RTCVideoTrack+Private.h', |
| 68 | 'objc/RTCVideoTrack.h', |
| 69 | 'objc/RTCVideoTrack.mm', |
Jon Hjelle | 7ac8bab | 2016-01-21 11:44:55 -0800 | [diff] [blame] | 70 | 'objc/avfoundationvideocapturer.h', |
| 71 | 'objc/avfoundationvideocapturer.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 72 | ], |
| 73 | 'conditions': [ |
| 74 | ['OS=="ios"', { |
| 75 | 'sources': [ |
| 76 | 'objc/RTCEAGLVideoView.h', |
| 77 | 'objc/RTCEAGLVideoView.m', |
| 78 | ], |
| 79 | 'all_dependent_settings': { |
| 80 | 'xcode_settings': { |
| 81 | 'OTHER_LDFLAGS': [ |
| 82 | '-framework CoreGraphics', |
| 83 | '-framework GLKit', |
| 84 | '-framework OpenGLES', |
| 85 | '-framework QuartzCore', |
| 86 | ] |
| 87 | } |
| 88 | } |
| 89 | }], |
| 90 | ['OS=="mac"', { |
| 91 | 'sources': [ |
| 92 | 'objc/RTCNSGLVideoView.h', |
| 93 | 'objc/RTCNSGLVideoView.m', |
| 94 | ], |
| 95 | }], |
hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 96 | ], |
| 97 | 'xcode_settings': { |
| 98 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 99 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
| 100 | 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch', |
| 101 | }, |
| 102 | } |
| 103 | ], |
| 104 | }], # OS=="ios" |
| 105 | ], |
| 106 | } |