henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | # |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 2 | # Copyright 2012 The WebRTC Project Authors. All rights reserved. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 3 | # |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 4 | # Use of this source code is governed by a BSD-style license |
| 5 | # that can be found in the LICENSE file in the root of the source |
| 6 | # tree. An additional intellectual property rights grant can be found |
| 7 | # in the file PATENTS. All contributing project authors may |
| 8 | # be found in the AUTHORS file in the root of the source tree. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 9 | |
| 10 | { |
| 11 | 'includes': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 12 | '../talk/build/common.gypi', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 16 | 'target_name': 'relayserver', |
| 17 | 'type': 'executable', |
| 18 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 19 | '../talk/libjingle.gyp:libjingle', |
| 20 | '../talk/libjingle.gyp:libjingle_p2p', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 23 | 'examples/relayserver/relayserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 24 | ], |
| 25 | }, # target relayserver |
| 26 | { |
| 27 | 'target_name': 'stunserver', |
| 28 | 'type': 'executable', |
| 29 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 30 | '../talk/libjingle.gyp:libjingle', |
| 31 | '../talk/libjingle.gyp:libjingle_p2p', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 32 | ], |
| 33 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 34 | 'examples/stunserver/stunserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 35 | ], |
| 36 | }, # target stunserver |
| 37 | { |
| 38 | 'target_name': 'turnserver', |
| 39 | 'type': 'executable', |
| 40 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 41 | '../talk/libjingle.gyp:libjingle', |
| 42 | '../talk/libjingle.gyp:libjingle_p2p', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 43 | ], |
| 44 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 45 | 'examples/turnserver/turnserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 46 | ], |
| 47 | }, # target turnserver |
| 48 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 49 | 'target_name': 'peerconnection_server', |
| 50 | 'type': 'executable', |
| 51 | 'sources': [ |
| 52 | 'examples/peerconnection/server/data_socket.cc', |
| 53 | 'examples/peerconnection/server/data_socket.h', |
| 54 | 'examples/peerconnection/server/main.cc', |
| 55 | 'examples/peerconnection/server/peer_channel.cc', |
| 56 | 'examples/peerconnection/server/peer_channel.h', |
| 57 | 'examples/peerconnection/server/utils.cc', |
| 58 | 'examples/peerconnection/server/utils.h', |
| 59 | ], |
| 60 | 'dependencies': [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 61 | '<(webrtc_root)/common.gyp:webrtc_common', |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 62 | '../talk/libjingle.gyp:libjingle', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 63 | ], |
| 64 | # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations. |
| 65 | 'msvs_disabled_warnings': [ 4309, ], |
| 66 | }, # target peerconnection_server |
| 67 | ], |
| 68 | 'conditions': [ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 69 | ['OS=="linux" or OS=="win"', { |
| 70 | 'targets': [ |
| 71 | { |
| 72 | 'target_name': 'peerconnection_client', |
| 73 | 'type': 'executable', |
| 74 | 'sources': [ |
| 75 | 'examples/peerconnection/client/conductor.cc', |
| 76 | 'examples/peerconnection/client/conductor.h', |
| 77 | 'examples/peerconnection/client/defaults.cc', |
| 78 | 'examples/peerconnection/client/defaults.h', |
| 79 | 'examples/peerconnection/client/peer_connection_client.cc', |
| 80 | 'examples/peerconnection/client/peer_connection_client.h', |
| 81 | ], |
| 82 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 83 | '../talk/libjingle.gyp:libjingle_peerconnection', |
buildbot@webrtc.org | 21b4da8 | 2014-07-23 19:07:53 +0000 | [diff] [blame] | 84 | '<@(libjingle_tests_additional_deps)', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 85 | ], |
| 86 | 'conditions': [ |
Henrik Kjellander | e6cefb6 | 2015-04-27 14:39:04 +0200 | [diff] [blame] | 87 | ['build_json==1', { |
| 88 | 'dependencies': [ |
| 89 | '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
| 90 | ], |
| 91 | }], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 92 | # TODO(ronghuawu): Move these files to a win/ directory then they |
| 93 | # can be excluded automatically. |
| 94 | ['OS=="win"', { |
| 95 | 'sources': [ |
| 96 | 'examples/peerconnection/client/flagdefs.h', |
| 97 | 'examples/peerconnection/client/main.cc', |
| 98 | 'examples/peerconnection/client/main_wnd.cc', |
| 99 | 'examples/peerconnection/client/main_wnd.h', |
| 100 | ], |
| 101 | 'msvs_settings': { |
| 102 | 'VCLinkerTool': { |
| 103 | 'SubSystem': '2', # Windows |
| 104 | }, |
| 105 | }, |
| 106 | }], # OS=="win" |
| 107 | ['OS=="linux"', { |
| 108 | 'sources': [ |
| 109 | 'examples/peerconnection/client/linux/main.cc', |
| 110 | 'examples/peerconnection/client/linux/main_wnd.cc', |
| 111 | 'examples/peerconnection/client/linux/main_wnd.h', |
| 112 | ], |
| 113 | 'cflags': [ |
| 114 | '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gtk+-2.0)', |
| 115 | ], |
| 116 | 'link_settings': { |
| 117 | 'ldflags': [ |
| 118 | '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0' |
| 119 | ' gobject-2.0 gthread-2.0 gtk+-2.0)', |
| 120 | ], |
| 121 | 'libraries': [ |
| 122 | '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0' |
| 123 | ' gthread-2.0 gtk+-2.0)', |
| 124 | '-lX11', |
| 125 | '-lXcomposite', |
| 126 | '-lXext', |
| 127 | '-lXrender', |
| 128 | ], |
| 129 | }, |
| 130 | }], # OS=="linux" |
| 131 | ], # conditions |
| 132 | }, # target peerconnection_client |
| 133 | ], # targets |
| 134 | }], # OS=="linux" or OS=="win" |
| 135 | |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 136 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.8")', { |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 137 | 'targets': [ |
Zeke Chin | 2d3b7e2 | 2015-07-14 12:55:44 -0700 | [diff] [blame] | 138 | { |
| 139 | 'target_name': 'apprtc_common', |
| 140 | 'type': 'static_library', |
tkchin | c3f46a9 | 2015-07-23 12:50:55 -0700 | [diff] [blame] | 141 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 142 | '../talk/libjingle.gyp:libjingle_peerconnection_objc', |
tkchin | c3f46a9 | 2015-07-23 12:50:55 -0700 | [diff] [blame] | 143 | ], |
Zeke Chin | 2d3b7e2 | 2015-07-14 12:55:44 -0700 | [diff] [blame] | 144 | 'sources': [ |
Zeke Chin | 2d3b7e2 | 2015-07-14 12:55:44 -0700 | [diff] [blame] | 145 | 'examples/objc/AppRTCDemo/common/ARDUtilities.h', |
| 146 | 'examples/objc/AppRTCDemo/common/ARDUtilities.m', |
| 147 | ], |
| 148 | 'include_dirs': [ |
| 149 | 'examples/objc/AppRTCDemo/common', |
| 150 | ], |
| 151 | 'direct_dependent_settings': { |
| 152 | 'include_dirs': [ |
| 153 | 'examples/objc/AppRTCDemo/common', |
| 154 | ], |
| 155 | }, |
| 156 | 'conditions': [ |
| 157 | ['OS=="mac"', { |
| 158 | 'xcode_settings': { |
| 159 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 160 | }, |
| 161 | }], |
| 162 | ], |
| 163 | }, |
| 164 | { |
| 165 | 'target_name': 'apprtc_signaling', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 166 | 'type': 'static_library', |
| 167 | 'dependencies': [ |
Zeke Chin | 2d3b7e2 | 2015-07-14 12:55:44 -0700 | [diff] [blame] | 168 | 'apprtc_common', |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 169 | '../talk/libjingle.gyp:libjingle_peerconnection_objc', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 170 | 'socketrocket', |
| 171 | ], |
| 172 | 'sources': [ |
| 173 | 'examples/objc/AppRTCDemo/ARDAppClient.h', |
| 174 | 'examples/objc/AppRTCDemo/ARDAppClient.m', |
| 175 | 'examples/objc/AppRTCDemo/ARDAppClient+Internal.h', |
| 176 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.h', |
| 177 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.m', |
| 178 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.h', |
| 179 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.m', |
tkchin@webrtc.org | 36401ab | 2015-01-27 21:34:39 +0000 | [diff] [blame] | 180 | 'examples/objc/AppRTCDemo/ARDJoinResponse.h', |
| 181 | 'examples/objc/AppRTCDemo/ARDJoinResponse.m', |
| 182 | 'examples/objc/AppRTCDemo/ARDJoinResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 183 | 'examples/objc/AppRTCDemo/ARDMessageResponse.h', |
| 184 | 'examples/objc/AppRTCDemo/ARDMessageResponse.m', |
| 185 | 'examples/objc/AppRTCDemo/ARDMessageResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 186 | 'examples/objc/AppRTCDemo/ARDRoomServerClient.h', |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 187 | 'examples/objc/AppRTCDemo/ARDSDPUtils.h', |
| 188 | 'examples/objc/AppRTCDemo/ARDSDPUtils.m', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 189 | 'examples/objc/AppRTCDemo/ARDSignalingChannel.h', |
| 190 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.h', |
| 191 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.m', |
| 192 | 'examples/objc/AppRTCDemo/ARDTURNClient.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 193 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.h', |
| 194 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.m', |
| 195 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.h', |
| 196 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.m', |
| 197 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.h', |
| 198 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.m', |
| 199 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.h', |
| 200 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.m', |
| 201 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.h', |
| 202 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.m', |
| 203 | ], |
| 204 | 'include_dirs': [ |
tkchin@webrtc.org | 9650ab4 | 2015-02-26 20:58:08 +0000 | [diff] [blame] | 205 | 'examples/objc/AppRTCDemo', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 206 | ], |
| 207 | 'direct_dependent_settings': { |
| 208 | 'include_dirs': [ |
tkchin@webrtc.org | 9650ab4 | 2015-02-26 20:58:08 +0000 | [diff] [blame] | 209 | 'examples/objc/AppRTCDemo', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 210 | ], |
| 211 | }, |
| 212 | 'export_dependent_settings': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 213 | '../talk/libjingle.gyp:libjingle_peerconnection_objc', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 214 | ], |
| 215 | 'conditions': [ |
| 216 | ['OS=="mac"', { |
| 217 | 'xcode_settings': { |
| 218 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 219 | }, |
| 220 | }], |
| 221 | ], |
| 222 | }, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 223 | { |
| 224 | 'target_name': 'AppRTCDemo', |
| 225 | 'type': 'executable', |
| 226 | 'product_name': 'AppRTCDemo', |
| 227 | 'mac_bundle': 1, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 228 | 'dependencies': [ |
Zeke Chin | 2d3b7e2 | 2015-07-14 12:55:44 -0700 | [diff] [blame] | 229 | 'apprtc_common', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 230 | 'apprtc_signaling', |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 231 | ], |
| 232 | 'conditions': [ |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 233 | ['OS=="ios"', { |
| 234 | 'mac_bundle_resources': [ |
tkchin | 0d7dbde | 2015-07-01 18:26:35 -0700 | [diff] [blame] | 235 | 'examples/objc/AppRTCDemo/ios/resources/iPhone5@2x.png', |
| 236 | 'examples/objc/AppRTCDemo/ios/resources/iPhone6@2x.png', |
| 237 | 'examples/objc/AppRTCDemo/ios/resources/iPhone6p@3x.png', |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 238 | 'examples/objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf', |
| 239 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.png', |
| 240 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2x.png', |
| 241 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png', |
| 242 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.png', |
Zeke Chin | 57cc74e | 2015-05-05 07:52:31 -0700 | [diff] [blame] | 243 | 'examples/objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp.png', |
| 244 | 'examples/objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp@2x.png', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 245 | 'examples/objc/Icon.png', |
| 246 | ], |
| 247 | 'sources': [ |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 248 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.h', |
| 249 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.m', |
| 250 | 'examples/objc/AppRTCDemo/ios/ARDMainView.h', |
| 251 | 'examples/objc/AppRTCDemo/ios/ARDMainView.m', |
| 252 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.h', |
| 253 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.m', |
| 254 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.h', |
| 255 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.m', |
| 256 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.h', |
| 257 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 258 | 'examples/objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch', |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 259 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.h', |
| 260 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 261 | 'examples/objc/AppRTCDemo/ios/main.m', |
| 262 | ], |
| 263 | 'xcode_settings': { |
| 264 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/ios/Info.plist', |
| 265 | }, |
| 266 | }], |
| 267 | ['OS=="mac"', { |
| 268 | 'sources': [ |
| 269 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.h', |
| 270 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m', |
| 271 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.h', |
| 272 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.m', |
| 273 | 'examples/objc/AppRTCDemo/mac/main.m', |
| 274 | ], |
| 275 | 'xcode_settings': { |
| 276 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 277 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/mac/Info.plist', |
| 278 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 279 | 'OTHER_LDFLAGS': [ |
| 280 | '-framework AVFoundation', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 281 | ], |
| 282 | }, |
| 283 | }], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 284 | ['target_arch=="ia32"', { |
| 285 | 'dependencies' : [ |
| 286 | '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
| 287 | ], |
| 288 | }], |
| 289 | ], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 290 | }, # target AppRTCDemo |
tkchin@webrtc.org | 87776a8 | 2014-12-09 19:32:35 +0000 | [diff] [blame] | 291 | { |
| 292 | # TODO(tkchin): move this into the real third party location and |
| 293 | # have it mirrored on chrome infra. |
| 294 | 'target_name': 'socketrocket', |
| 295 | 'type': 'static_library', |
| 296 | 'sources': [ |
| 297 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h', |
| 298 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m', |
| 299 | ], |
| 300 | 'conditions': [ |
| 301 | ['OS=="mac"', { |
| 302 | 'xcode_settings': { |
| 303 | # SocketRocket autosynthesizes some properties. Disable the |
| 304 | # warning so we can compile successfully. |
| 305 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 306 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
Henrik Kjellander | a8202aa | 2015-05-29 20:13:24 +0200 | [diff] [blame] | 307 | # SRWebSocket.m uses code with partial availability. |
| 308 | # https://code.google.com/p/webrtc/issues/detail?id=4695 |
| 309 | 'WARNING_CFLAGS!': ['-Wpartial-availability'], |
tkchin@webrtc.org | 87776a8 | 2014-12-09 19:32:35 +0000 | [diff] [blame] | 310 | }, |
| 311 | }], |
| 312 | ], |
| 313 | 'direct_dependent_settings': { |
| 314 | 'include_dirs': [ |
| 315 | 'examples/objc/AppRTCDemo/third_party/SocketRocket', |
| 316 | ], |
| 317 | }, |
| 318 | 'xcode_settings': { |
| 319 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 320 | 'WARNING_CFLAGS': [ |
| 321 | '-Wno-deprecated-declarations', |
| 322 | ], |
| 323 | }, |
| 324 | 'link_settings': { |
| 325 | 'xcode_settings': { |
| 326 | 'OTHER_LDFLAGS': [ |
| 327 | '-framework CFNetwork', |
| 328 | ], |
| 329 | }, |
| 330 | 'libraries': [ |
| 331 | '$(SDKROOT)/usr/lib/libicucore.dylib', |
| 332 | ], |
| 333 | } |
| 334 | }, # target socketrocket |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 335 | ], # targets |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 336 | }], # OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.8") |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 337 | |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 338 | ['OS=="android"', { |
| 339 | 'targets': [ |
| 340 | { |
| 341 | 'target_name': 'AppRTCDemo', |
| 342 | 'type': 'none', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 343 | 'dependencies': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 344 | '../talk/libjingle.gyp:libjingle_peerconnection_java', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 345 | ], |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 346 | 'variables': { |
| 347 | 'apk_name': 'AppRTCDemo', |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 348 | 'java_in_dir': 'examples/androidapp', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 349 | 'has_java_resources': 1, |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 350 | 'resource_dir': 'examples/androidapp/res', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 351 | 'R_package': 'org.appspot.apprtc', |
| 352 | 'R_package_relpath': 'org/appspot/apprtc', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 353 | 'input_jars_paths': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 354 | 'examples/androidapp/third_party/autobanh/autobanh.jar', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 355 | ], |
| 356 | 'library_dexed_jars_paths': [ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame^] | 357 | 'examples/androidapp/third_party/autobanh/autobanh.jar', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 358 | ], |
| 359 | 'native_lib_target': 'libjingle_peerconnection_so', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 360 | 'add_to_dependents_classpaths':1, |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 361 | }, |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 362 | 'includes': [ '../build/java_apk.gypi' ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 363 | }, # target AppRTCDemo |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 364 | |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 365 | { |
| 366 | # AppRTCDemo creates a .jar as a side effect. Any java targets |
| 367 | # that need that .jar in their classpath should depend on this target, |
| 368 | # AppRTCDemo_apk. Dependents of AppRTCDemo_apk receive its |
| 369 | # jar path in the variable 'apk_output_jar_path'. |
| 370 | # This target should only be used by targets which instrument |
| 371 | # AppRTCDemo_apk. |
| 372 | 'target_name': 'AppRTCDemo_apk', |
| 373 | 'type': 'none', |
| 374 | 'dependencies': [ |
| 375 | 'AppRTCDemo', |
| 376 | ], |
| 377 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
| 378 | }, # target AppRTCDemo_apk |
| 379 | |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 380 | { |
| 381 | 'target_name': 'AppRTCDemoTest', |
| 382 | 'type': 'none', |
| 383 | 'dependencies': [ |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 384 | 'AppRTCDemo_apk', |
| 385 | ], |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 386 | 'variables': { |
| 387 | 'apk_name': 'AppRTCDemoTest', |
| 388 | 'java_in_dir': 'examples/androidtests', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 389 | 'is_test_apk': 1, |
| 390 | }, |
| 391 | 'includes': [ '../build/java_apk.gypi' ], |
| 392 | }, |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 393 | ], # targets |
| 394 | }], # OS=="android" |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 395 | ], |
| 396 | } |