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 | 29d5e57 | 2016-01-06 11:49:11 -0800 | [diff] [blame] | 22 | 'objc/RTCIceCandidate+Private.h', |
| 23 | 'objc/RTCIceCandidate.h', |
| 24 | 'objc/RTCIceCandidate.mm', |
hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 25 | 'objc/RTCIceServer+Private.h', |
| 26 | 'objc/RTCIceServer.h', |
| 27 | 'objc/RTCIceServer.mm', |
hjon | 6f5ca08 | 2016-01-07 09:29:29 -0800 | [diff] [blame] | 28 | 'objc/RTCMediaConstraints+Private.h', |
| 29 | 'objc/RTCMediaConstraints.h', |
| 30 | 'objc/RTCMediaConstraints.mm', |
Jon Hjelle | 8102879 | 2016-01-11 13:16:13 -0800 | [diff] [blame] | 31 | 'objc/RTCMediaStreamTrack+Private.h', |
| 32 | 'objc/RTCMediaStreamTrack.h', |
| 33 | 'objc/RTCMediaStreamTrack.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 34 | 'objc/RTCOpenGLVideoRenderer.h', |
| 35 | 'objc/RTCOpenGLVideoRenderer.mm', |
Jon Hjelle | 67e83d6 | 2016-01-06 12:05:22 -0800 | [diff] [blame] | 36 | 'objc/RTCSessionDescription+Private.h', |
| 37 | 'objc/RTCSessionDescription.h', |
| 38 | 'objc/RTCSessionDescription.mm', |
Jon Hjelle | a2c353f | 2016-01-11 13:11:38 -0800 | [diff] [blame] | 39 | 'objc/RTCStatsReport+Private.h', |
| 40 | 'objc/RTCStatsReport.h', |
| 41 | 'objc/RTCStatsReport.mm', |
Jon Hjelle | 7823495 | 2016-01-11 09:47:07 -0800 | [diff] [blame] | 42 | 'objc/RTCVideoFrame+Private.h', |
| 43 | 'objc/RTCVideoFrame.h', |
| 44 | 'objc/RTCVideoFrame.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 45 | 'objc/RTCVideoRenderer.h', |
Jon Hjelle | 065aacc | 2016-01-20 13:25:44 -0800 | [diff] [blame^] | 46 | 'objc/RTCVideoSource+Private.h', |
| 47 | 'objc/RTCVideoSource.h', |
| 48 | 'objc/RTCVideoSource.mm', |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 49 | ], |
| 50 | 'conditions': [ |
| 51 | ['OS=="ios"', { |
| 52 | 'sources': [ |
| 53 | 'objc/RTCEAGLVideoView.h', |
| 54 | 'objc/RTCEAGLVideoView.m', |
| 55 | ], |
| 56 | 'all_dependent_settings': { |
| 57 | 'xcode_settings': { |
| 58 | 'OTHER_LDFLAGS': [ |
| 59 | '-framework CoreGraphics', |
| 60 | '-framework GLKit', |
| 61 | '-framework OpenGLES', |
| 62 | '-framework QuartzCore', |
| 63 | ] |
| 64 | } |
| 65 | } |
| 66 | }], |
| 67 | ['OS=="mac"', { |
| 68 | 'sources': [ |
| 69 | 'objc/RTCNSGLVideoView.h', |
| 70 | 'objc/RTCNSGLVideoView.m', |
| 71 | ], |
| 72 | }], |
hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [diff] [blame] | 73 | ], |
| 74 | 'xcode_settings': { |
| 75 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 76 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
| 77 | 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch', |
| 78 | }, |
| 79 | } |
| 80 | ], |
| 81 | }], # OS=="ios" |
| 82 | ], |
| 83 | } |