kjellander@webrtc.org | 9b8df25 | 2016-02-12 06:47:59 +0100 | [diff] [blame] | 1 | # |
| 2 | # libjingle |
| 3 | # Copyright 2012 Google Inc. |
| 4 | # |
| 5 | # Redistribution and use in source and binary forms, with or without |
| 6 | # modification, are permitted provided that the following conditions are met: |
| 7 | # |
| 8 | # 1. Redistributions of source code must retain the above copyright notice, |
| 9 | # this list of conditions and the following disclaimer. |
| 10 | # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 | # this list of conditions and the following disclaimer in the documentation |
| 12 | # and/or other materials provided with the distribution. |
| 13 | # 3. The name of the author may not be used to endorse or promote products |
| 14 | # derived from this software without specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 19 | # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 20 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | |
| 27 | { |
| 28 | 'includes': ['../../build/common.gypi'], |
| 29 | 'conditions': [ |
| 30 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
| 31 | # The >= 10.7 above is required for ARC. |
| 32 | 'targets': [ |
| 33 | { |
| 34 | 'target_name': 'libjingle_peerconnection_objc', |
| 35 | 'type': 'static_library', |
| 36 | 'dependencies': [ |
| 37 | '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', |
| 38 | ], |
| 39 | 'sources': [ |
| 40 | 'objc/RTCAudioTrack+Internal.h', |
| 41 | 'objc/RTCAudioTrack.mm', |
| 42 | 'objc/RTCDataChannel+Internal.h', |
| 43 | 'objc/RTCDataChannel.mm', |
| 44 | 'objc/RTCEnumConverter.h', |
| 45 | 'objc/RTCEnumConverter.mm', |
kjellander@webrtc.org | 9b8df25 | 2016-02-12 06:47:59 +0100 | [diff] [blame] | 46 | 'objc/RTCI420Frame+Internal.h', |
| 47 | 'objc/RTCI420Frame.mm', |
| 48 | 'objc/RTCICECandidate+Internal.h', |
| 49 | 'objc/RTCICECandidate.mm', |
| 50 | 'objc/RTCICEServer+Internal.h', |
| 51 | 'objc/RTCICEServer.mm', |
| 52 | 'objc/RTCLogging.mm', |
| 53 | 'objc/RTCMediaConstraints+Internal.h', |
| 54 | 'objc/RTCMediaConstraints.mm', |
| 55 | 'objc/RTCMediaConstraintsNative.cc', |
| 56 | 'objc/RTCMediaConstraintsNative.h', |
| 57 | 'objc/RTCMediaSource+Internal.h', |
| 58 | 'objc/RTCMediaSource.mm', |
| 59 | 'objc/RTCMediaStream+Internal.h', |
| 60 | 'objc/RTCMediaStream.mm', |
| 61 | 'objc/RTCMediaStreamTrack+Internal.h', |
| 62 | 'objc/RTCMediaStreamTrack.mm', |
| 63 | 'objc/RTCOpenGLVideoRenderer.mm', |
| 64 | 'objc/RTCPair.m', |
| 65 | 'objc/RTCPeerConnection+Internal.h', |
| 66 | 'objc/RTCPeerConnection.mm', |
| 67 | 'objc/RTCPeerConnectionFactory.mm', |
| 68 | 'objc/RTCPeerConnectionInterface+Internal.h', |
| 69 | 'objc/RTCPeerConnectionInterface.mm', |
| 70 | 'objc/RTCPeerConnectionObserver.h', |
| 71 | 'objc/RTCPeerConnectionObserver.mm', |
| 72 | 'objc/RTCSessionDescription+Internal.h', |
| 73 | 'objc/RTCSessionDescription.mm', |
| 74 | 'objc/RTCStatsReport+Internal.h', |
| 75 | 'objc/RTCStatsReport.mm', |
| 76 | 'objc/RTCVideoCapturer+Internal.h', |
| 77 | 'objc/RTCVideoCapturer.mm', |
| 78 | 'objc/RTCVideoRendererAdapter.h', |
| 79 | 'objc/RTCVideoRendererAdapter.mm', |
| 80 | 'objc/RTCVideoSource+Internal.h', |
| 81 | 'objc/RTCVideoSource.mm', |
| 82 | 'objc/RTCVideoTrack+Internal.h', |
| 83 | 'objc/RTCVideoTrack.mm', |
| 84 | 'objc/public/RTCAudioSource.h', |
| 85 | 'objc/public/RTCAudioTrack.h', |
| 86 | 'objc/public/RTCDataChannel.h', |
| 87 | 'objc/public/RTCFileLogger.h', |
| 88 | 'objc/public/RTCI420Frame.h', |
| 89 | 'objc/public/RTCICECandidate.h', |
| 90 | 'objc/public/RTCICEServer.h', |
| 91 | 'objc/public/RTCLogging.h', |
| 92 | 'objc/public/RTCMediaConstraints.h', |
| 93 | 'objc/public/RTCMediaSource.h', |
| 94 | 'objc/public/RTCMediaStream.h', |
| 95 | 'objc/public/RTCMediaStreamTrack.h', |
| 96 | 'objc/public/RTCOpenGLVideoRenderer.h', |
| 97 | 'objc/public/RTCPair.h', |
| 98 | 'objc/public/RTCPeerConnection.h', |
| 99 | 'objc/public/RTCPeerConnectionDelegate.h', |
| 100 | 'objc/public/RTCPeerConnectionFactory.h', |
| 101 | 'objc/public/RTCPeerConnectionInterface.h', |
| 102 | 'objc/public/RTCSessionDescription.h', |
| 103 | 'objc/public/RTCSessionDescriptionDelegate.h', |
| 104 | 'objc/public/RTCStatsDelegate.h', |
| 105 | 'objc/public/RTCStatsReport.h', |
| 106 | 'objc/public/RTCTypes.h', |
| 107 | 'objc/public/RTCVideoCapturer.h', |
| 108 | 'objc/public/RTCVideoRenderer.h', |
| 109 | 'objc/public/RTCVideoSource.h', |
| 110 | 'objc/public/RTCVideoTrack.h', |
| 111 | ], |
| 112 | 'direct_dependent_settings': { |
| 113 | 'include_dirs': [ |
| 114 | '<(DEPTH)/talk/app/webrtc/objc/public', |
| 115 | ], |
| 116 | }, |
| 117 | 'include_dirs': [ |
| 118 | '<(webrtc_root)/webrtc/api', |
| 119 | '<(DEPTH)/talk/app/webrtc/objc', |
| 120 | '<(DEPTH)/talk/app/webrtc/objc/public', |
| 121 | ], |
| 122 | 'link_settings': { |
| 123 | 'libraries': [ |
| 124 | '-lstdc++', |
| 125 | ], |
| 126 | }, |
| 127 | 'all_dependent_settings': { |
| 128 | 'xcode_settings': { |
| 129 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 130 | }, |
| 131 | }, |
| 132 | 'xcode_settings': { |
| 133 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 134 | # common.gypi enables this for mac but we want this to be disabled |
| 135 | # like it is for ios. |
| 136 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 137 | # Disabled due to failing when compiled with -Wall, see |
| 138 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5397 |
| 139 | 'WARNING_CFLAGS': ['-Wno-unused-property-ivar'], |
| 140 | }, |
| 141 | 'conditions': [ |
| 142 | ['OS=="ios"', { |
| 143 | 'sources': [ |
| 144 | 'objc/avfoundationvideocapturer.h', |
| 145 | 'objc/avfoundationvideocapturer.mm', |
| 146 | 'objc/RTCAVFoundationVideoSource+Internal.h', |
| 147 | 'objc/RTCAVFoundationVideoSource.mm', |
| 148 | 'objc/RTCEAGLVideoView.m', |
| 149 | 'objc/public/RTCEAGLVideoView.h', |
| 150 | 'objc/public/RTCAVFoundationVideoSource.h', |
| 151 | ], |
| 152 | 'dependencies': [ |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 153 | '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', |
kjellander@webrtc.org | 9b8df25 | 2016-02-12 06:47:59 +0100 | [diff] [blame] | 154 | ], |
| 155 | 'link_settings': { |
| 156 | 'xcode_settings': { |
| 157 | 'OTHER_LDFLAGS': [ |
| 158 | '-framework CoreGraphics', |
| 159 | '-framework GLKit', |
nisse | b99395a | 2016-04-29 00:58:42 -0700 | [diff] [blame] | 160 | '-framework OpenGLES', |
| 161 | '-framework QuartzCore', |
kjellander@webrtc.org | 9b8df25 | 2016-02-12 06:47:59 +0100 | [diff] [blame] | 162 | ], |
| 163 | }, |
| 164 | }, |
| 165 | }], |
| 166 | ['OS=="mac"', { |
| 167 | 'sources': [ |
| 168 | 'objc/RTCNSGLVideoView.m', |
| 169 | 'objc/public/RTCNSGLVideoView.h', |
| 170 | ], |
| 171 | 'xcode_settings': { |
| 172 | # Need to build against 10.7 framework for full ARC support |
| 173 | # on OSX. |
| 174 | 'MACOSX_DEPLOYMENT_TARGET' : '10.7', |
| 175 | # RTCVideoTrack.mm uses code with partial availability. |
| 176 | # https://code.google.com/p/webrtc/issues/detail?id=4695 |
| 177 | 'WARNING_CFLAGS!': ['-Wpartial-availability'], |
| 178 | }, |
| 179 | 'link_settings': { |
| 180 | 'xcode_settings': { |
| 181 | 'OTHER_LDFLAGS': [ |
| 182 | '-framework Cocoa', |
solenberg | 8ad582d | 2016-03-16 09:34:56 -0700 | [diff] [blame] | 183 | '-framework OpenGL', |
kjellander@webrtc.org | 9b8df25 | 2016-02-12 06:47:59 +0100 | [diff] [blame] | 184 | ], |
| 185 | }, |
| 186 | }, |
| 187 | }], |
| 188 | ], |
| 189 | }, # target libjingle_peerconnection_objc |
| 190 | ], |
| 191 | }], |
| 192 | ], |
| 193 | } |