Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC Project Authors. All rights reserved. |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 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 | { |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 9 | 'conditions': [ |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 10 | ['OS=="linux" or OS=="win"', { |
| 11 | 'targets': [ |
| 12 | { |
tkchin | 62837f4 | 2016-03-12 04:45:16 | [diff] [blame] | 13 | 'target_name': 'relayserver', |
| 14 | 'type': 'executable', |
| 15 | 'dependencies': [ |
| 16 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
| 17 | '<(webrtc_root)/pc/pc.gyp:rtc_pc', |
| 18 | ], |
| 19 | 'sources': [ |
| 20 | 'examples/relayserver/relayserver_main.cc', |
| 21 | ], |
| 22 | }, # target relayserver |
| 23 | { |
| 24 | 'target_name': 'stunserver', |
| 25 | 'type': 'executable', |
| 26 | 'dependencies': [ |
| 27 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
| 28 | '<(webrtc_root)/pc/pc.gyp:rtc_pc', |
| 29 | ], |
| 30 | 'sources': [ |
| 31 | 'examples/stunserver/stunserver_main.cc', |
| 32 | ], |
| 33 | }, # target stunserver |
| 34 | { |
| 35 | 'target_name': 'turnserver', |
| 36 | 'type': 'executable', |
| 37 | 'dependencies': [ |
| 38 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
| 39 | '<(webrtc_root)/pc/pc.gyp:rtc_pc', |
| 40 | ], |
| 41 | 'sources': [ |
| 42 | 'examples/turnserver/turnserver_main.cc', |
| 43 | ], |
| 44 | }, # target turnserver |
| 45 | { |
| 46 | 'target_name': 'peerconnection_server', |
| 47 | 'type': 'executable', |
| 48 | 'sources': [ |
| 49 | 'examples/peerconnection/server/data_socket.cc', |
| 50 | 'examples/peerconnection/server/data_socket.h', |
| 51 | 'examples/peerconnection/server/main.cc', |
| 52 | 'examples/peerconnection/server/peer_channel.cc', |
| 53 | 'examples/peerconnection/server/peer_channel.h', |
| 54 | 'examples/peerconnection/server/utils.cc', |
| 55 | 'examples/peerconnection/server/utils.h', |
| 56 | ], |
| 57 | 'dependencies': [ |
| 58 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
| 59 | '<(webrtc_root)/common.gyp:webrtc_common', |
| 60 | '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', |
| 61 | ], |
| 62 | # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations. |
| 63 | 'msvs_disabled_warnings': [ 4309, ], |
| 64 | }, # target peerconnection_server |
| 65 | { |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 66 | 'target_name': 'peerconnection_client', |
| 67 | 'type': 'executable', |
| 68 | 'sources': [ |
| 69 | 'examples/peerconnection/client/conductor.cc', |
| 70 | 'examples/peerconnection/client/conductor.h', |
| 71 | 'examples/peerconnection/client/defaults.cc', |
| 72 | 'examples/peerconnection/client/defaults.h', |
| 73 | 'examples/peerconnection/client/peer_connection_client.cc', |
| 74 | 'examples/peerconnection/client/peer_connection_client.h', |
| 75 | ], |
| 76 | 'dependencies': [ |
Henrik Kjellander | bd0ae45 | 2016-02-10 09:53:12 | [diff] [blame] | 77 | 'api/api.gyp:libjingle_peerconnection', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 78 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default', |
kjellander | 6bd8e1a | 2016-06-01 12:28:54 | [diff] [blame] | 79 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 80 | ], |
| 81 | 'conditions': [ |
| 82 | ['build_json==1', { |
| 83 | 'dependencies': [ |
| 84 | '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
| 85 | ], |
| 86 | }], |
| 87 | # TODO(ronghuawu): Move these files to a win/ directory then they |
| 88 | # can be excluded automatically. |
| 89 | ['OS=="win"', { |
| 90 | 'sources': [ |
| 91 | 'examples/peerconnection/client/flagdefs.h', |
| 92 | 'examples/peerconnection/client/main.cc', |
| 93 | 'examples/peerconnection/client/main_wnd.cc', |
| 94 | 'examples/peerconnection/client/main_wnd.h', |
| 95 | ], |
| 96 | 'msvs_settings': { |
| 97 | 'VCLinkerTool': { |
| 98 | 'SubSystem': '2', # Windows |
| 99 | }, |
| 100 | }, |
| 101 | }], # OS=="win" |
kjellander | 1841c4e | 2015-12-16 22:05:29 | [diff] [blame] | 102 | ['OS=="win" and clang==1', { |
| 103 | 'msvs_settings': { |
| 104 | 'VCCLCompilerTool': { |
| 105 | 'AdditionalOptions': [ |
| 106 | # Disable warnings failing when compiling with Clang on Windows. |
| 107 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 108 | '-Wno-reorder', |
| 109 | '-Wno-unused-function', |
| 110 | ], |
| 111 | }, |
| 112 | }, |
| 113 | }], # OS=="win" and clang==1 |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 114 | ['OS=="linux"', { |
| 115 | 'sources': [ |
| 116 | 'examples/peerconnection/client/linux/main.cc', |
| 117 | 'examples/peerconnection/client/linux/main_wnd.cc', |
| 118 | 'examples/peerconnection/client/linux/main_wnd.h', |
| 119 | ], |
| 120 | 'cflags': [ |
| 121 | '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gtk+-2.0)', |
| 122 | ], |
| 123 | 'link_settings': { |
| 124 | 'ldflags': [ |
| 125 | '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0' |
| 126 | ' gobject-2.0 gthread-2.0 gtk+-2.0)', |
| 127 | ], |
| 128 | 'libraries': [ |
| 129 | '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0' |
| 130 | ' gthread-2.0 gtk+-2.0)', |
| 131 | '-lX11', |
| 132 | '-lXcomposite', |
| 133 | '-lXext', |
| 134 | '-lXrender', |
| 135 | ], |
| 136 | }, |
| 137 | }], # OS=="linux" |
Henrik Kjellander | 3d5ef5c | 2016-02-18 20:52:21 | [diff] [blame] | 138 | ['OS=="linux" and target_arch=="ia32"', { |
| 139 | 'cflags': [ |
| 140 | '-Wno-sentinel', |
| 141 | ], |
| 142 | }], # OS=="linux" and target_arch=="ia32" |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 143 | ], # conditions |
| 144 | }, # target peerconnection_client |
| 145 | ], # targets |
| 146 | }], # OS=="linux" or OS=="win" |
| 147 | |
tkchin | 5c85590 | 2015-12-03 00:42:18 | [diff] [blame] | 148 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 149 | 'targets': [ |
| 150 | { |
| 151 | 'target_name': 'apprtc_common', |
| 152 | 'type': 'static_library', |
| 153 | 'dependencies': [ |
tkchin | 09716bd | 2016-04-27 08:54:20 | [diff] [blame] | 154 | '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 155 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default', |
kjellander | 6bd8e1a | 2016-06-01 12:28:54 | [diff] [blame] | 156 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 157 | ], |
| 158 | 'sources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 159 | 'examples/objc/AppRTCMobile/common/ARDUtilities.h', |
| 160 | 'examples/objc/AppRTCMobile/common/ARDUtilities.m', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 161 | ], |
| 162 | 'include_dirs': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 163 | 'examples/objc/AppRTCMobile/common', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 164 | ], |
| 165 | 'direct_dependent_settings': { |
| 166 | 'include_dirs': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 167 | 'examples/objc/AppRTCMobile/common', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 168 | ], |
| 169 | }, |
| 170 | 'conditions': [ |
kjellander@webrtc.org | c2dc777 | 2016-02-18 19:30:14 | [diff] [blame] | 171 | ['OS=="ios"', { |
| 172 | 'xcode_settings': { |
| 173 | 'WARNING_CFLAGS': [ |
| 174 | # Suppress compiler warnings about deprecated that triggered |
| 175 | # when moving from ios_deployment_target 7.0 to 9.0. |
| 176 | # See webrtc:5549 for more details. |
| 177 | '-Wno-deprecated-declarations', |
| 178 | ], |
| 179 | }, |
| 180 | }], |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 181 | ['OS=="mac"', { |
| 182 | 'xcode_settings': { |
| 183 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 184 | }, |
| 185 | }], |
| 186 | ], |
hjon | 3551d9d | 2016-03-14 05:08:26 | [diff] [blame] | 187 | 'xcode_settings': { |
| 188 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 189 | }, |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 190 | 'link_settings': { |
| 191 | 'xcode_settings': { |
| 192 | 'OTHER_LDFLAGS': [ |
| 193 | '-framework QuartzCore', |
| 194 | ], |
| 195 | }, |
| 196 | }, |
| 197 | }, |
| 198 | { |
| 199 | 'target_name': 'apprtc_signaling', |
| 200 | 'type': 'static_library', |
| 201 | 'dependencies': [ |
tkchin | 09716bd | 2016-04-27 08:54:20 | [diff] [blame] | 202 | '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_peerconnection_objc', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 203 | 'apprtc_common', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 204 | 'socketrocket', |
| 205 | ], |
| 206 | 'sources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 207 | 'examples/objc/AppRTCMobile/ARDAppClient.h', |
| 208 | 'examples/objc/AppRTCMobile/ARDAppClient.m', |
| 209 | 'examples/objc/AppRTCMobile/ARDAppClient+Internal.h', |
| 210 | 'examples/objc/AppRTCMobile/ARDAppEngineClient.h', |
| 211 | 'examples/objc/AppRTCMobile/ARDAppEngineClient.m', |
| 212 | 'examples/objc/AppRTCMobile/ARDBitrateTracker.h', |
| 213 | 'examples/objc/AppRTCMobile/ARDBitrateTracker.m', |
| 214 | 'examples/objc/AppRTCMobile/ARDCEODTURNClient.h', |
| 215 | 'examples/objc/AppRTCMobile/ARDCEODTURNClient.m', |
| 216 | 'examples/objc/AppRTCMobile/ARDJoinResponse.h', |
| 217 | 'examples/objc/AppRTCMobile/ARDJoinResponse.m', |
| 218 | 'examples/objc/AppRTCMobile/ARDJoinResponse+Internal.h', |
| 219 | 'examples/objc/AppRTCMobile/ARDMessageResponse.h', |
| 220 | 'examples/objc/AppRTCMobile/ARDMessageResponse.m', |
| 221 | 'examples/objc/AppRTCMobile/ARDMessageResponse+Internal.h', |
| 222 | 'examples/objc/AppRTCMobile/ARDRoomServerClient.h', |
| 223 | 'examples/objc/AppRTCMobile/ARDSDPUtils.h', |
| 224 | 'examples/objc/AppRTCMobile/ARDSDPUtils.m', |
| 225 | 'examples/objc/AppRTCMobile/ARDSignalingChannel.h', |
| 226 | 'examples/objc/AppRTCMobile/ARDSignalingMessage.h', |
| 227 | 'examples/objc/AppRTCMobile/ARDSignalingMessage.m', |
| 228 | 'examples/objc/AppRTCMobile/ARDStatsBuilder.h', |
| 229 | 'examples/objc/AppRTCMobile/ARDStatsBuilder.m', |
| 230 | 'examples/objc/AppRTCMobile/ARDTURNClient.h', |
| 231 | 'examples/objc/AppRTCMobile/ARDWebSocketChannel.h', |
| 232 | 'examples/objc/AppRTCMobile/ARDWebSocketChannel.m', |
| 233 | 'examples/objc/AppRTCMobile/RTCIceCandidate+JSON.h', |
| 234 | 'examples/objc/AppRTCMobile/RTCIceCandidate+JSON.m', |
| 235 | 'examples/objc/AppRTCMobile/RTCIceServer+JSON.h', |
| 236 | 'examples/objc/AppRTCMobile/RTCIceServer+JSON.m', |
| 237 | 'examples/objc/AppRTCMobile/RTCMediaConstraints+JSON.h', |
| 238 | 'examples/objc/AppRTCMobile/RTCMediaConstraints+JSON.m', |
| 239 | 'examples/objc/AppRTCMobile/RTCSessionDescription+JSON.h', |
| 240 | 'examples/objc/AppRTCMobile/RTCSessionDescription+JSON.m', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 241 | ], |
| 242 | 'include_dirs': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 243 | 'examples/objc/AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 244 | ], |
| 245 | 'direct_dependent_settings': { |
| 246 | 'include_dirs': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 247 | 'examples/objc/AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 248 | ], |
| 249 | }, |
| 250 | 'export_dependent_settings': [ |
tkchin | 09716bd | 2016-04-27 08:54:20 | [diff] [blame] | 251 | '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_peerconnection_objc', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 252 | ], |
| 253 | 'conditions': [ |
kjellander@webrtc.org | c2dc777 | 2016-02-18 19:30:14 | [diff] [blame] | 254 | ['OS=="ios"', { |
| 255 | 'xcode_settings': { |
| 256 | 'WARNING_CFLAGS': [ |
| 257 | # Suppress compiler warnings about deprecated that triggered |
| 258 | # when moving from ios_deployment_target 7.0 to 9.0. |
| 259 | # See webrtc:5549 for more details. |
| 260 | '-Wno-deprecated-declarations', |
| 261 | ], |
| 262 | }, |
| 263 | }], |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 264 | ['OS=="mac"', { |
| 265 | 'xcode_settings': { |
| 266 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 267 | }, |
| 268 | }], |
| 269 | ], |
hjon | 3551d9d | 2016-03-14 05:08:26 | [diff] [blame] | 270 | 'xcode_settings': { |
| 271 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 272 | }, |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 273 | }, |
| 274 | { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 275 | 'target_name': 'AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 276 | 'type': 'executable', |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 277 | 'product_name': 'AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 278 | 'mac_bundle': 1, |
| 279 | 'dependencies': [ |
| 280 | 'apprtc_common', |
| 281 | 'apprtc_signaling', |
| 282 | ], |
| 283 | 'conditions': [ |
| 284 | ['OS=="ios"', { |
| 285 | 'mac_bundle_resources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 286 | 'examples/objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf', |
| 287 | 'examples/objc/AppRTCMobile/ios/resources/iPhone5@2x.png', |
| 288 | 'examples/objc/AppRTCMobile/ios/resources/iPhone6@2x.png', |
| 289 | 'examples/objc/AppRTCMobile/ios/resources/iPhone6p@3x.png', |
| 290 | 'examples/objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png', |
| 291 | 'examples/objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png', |
| 292 | 'examples/objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png', |
| 293 | 'examples/objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png', |
| 294 | 'examples/objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png', |
| 295 | 'examples/objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png', |
| 296 | 'examples/objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png', |
| 297 | 'examples/objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png', |
| 298 | 'examples/objc/AppRTCMobile/ios/resources/mozart.mp3', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 299 | 'examples/objc/Icon.png', |
| 300 | ], |
| 301 | 'sources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 302 | 'examples/objc/AppRTCMobile/ios/ARDAppDelegate.h', |
| 303 | 'examples/objc/AppRTCMobile/ios/ARDAppDelegate.m', |
| 304 | 'examples/objc/AppRTCMobile/ios/ARDMainView.h', |
| 305 | 'examples/objc/AppRTCMobile/ios/ARDMainView.m', |
| 306 | 'examples/objc/AppRTCMobile/ios/ARDMainViewController.h', |
| 307 | 'examples/objc/AppRTCMobile/ios/ARDMainViewController.m', |
| 308 | 'examples/objc/AppRTCMobile/ios/ARDStatsView.h', |
| 309 | 'examples/objc/AppRTCMobile/ios/ARDStatsView.m', |
| 310 | 'examples/objc/AppRTCMobile/ios/ARDVideoCallView.h', |
| 311 | 'examples/objc/AppRTCMobile/ios/ARDVideoCallView.m', |
| 312 | 'examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.h', |
| 313 | 'examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m', |
| 314 | 'examples/objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch', |
| 315 | 'examples/objc/AppRTCMobile/ios/UIImage+ARDUtilities.h', |
| 316 | 'examples/objc/AppRTCMobile/ios/UIImage+ARDUtilities.m', |
| 317 | 'examples/objc/AppRTCMobile/ios/main.m', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 318 | ], |
| 319 | 'xcode_settings': { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 320 | 'INFOPLIST_FILE': 'examples/objc/AppRTCMobile/ios/Info.plist', |
kjellander@webrtc.org | c2dc777 | 2016-02-18 19:30:14 | [diff] [blame] | 321 | 'WARNING_CFLAGS': [ |
| 322 | # Suppress compiler warnings about deprecated that triggered |
| 323 | # when moving from ios_deployment_target 7.0 to 9.0. |
| 324 | # See webrtc:5549 for more details. |
| 325 | '-Wno-deprecated-declarations', |
| 326 | ], |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 327 | }, |
| 328 | }], |
| 329 | ['OS=="mac"', { |
| 330 | 'sources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 331 | 'examples/objc/AppRTCMobile/mac/APPRTCAppDelegate.h', |
| 332 | 'examples/objc/AppRTCMobile/mac/APPRTCAppDelegate.m', |
| 333 | 'examples/objc/AppRTCMobile/mac/APPRTCViewController.h', |
| 334 | 'examples/objc/AppRTCMobile/mac/APPRTCViewController.m', |
| 335 | 'examples/objc/AppRTCMobile/mac/main.m', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 336 | ], |
| 337 | 'xcode_settings': { |
| 338 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 339 | 'INFOPLIST_FILE': 'examples/objc/AppRTCMobile/mac/Info.plist', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 340 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 341 | 'OTHER_LDFLAGS': [ |
| 342 | '-framework AVFoundation', |
| 343 | ], |
| 344 | }, |
| 345 | }], |
| 346 | ['target_arch=="ia32"', { |
| 347 | 'dependencies' : [ |
| 348 | '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
| 349 | ], |
| 350 | }], |
| 351 | ], |
hjon | 3551d9d | 2016-03-14 05:08:26 | [diff] [blame] | 352 | 'xcode_settings': { |
| 353 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 354 | }, |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 355 | }, # target AppRTCMobile |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 356 | { |
| 357 | # TODO(tkchin): move this into the real third party location and |
| 358 | # have it mirrored on chrome infra. |
| 359 | 'target_name': 'socketrocket', |
| 360 | 'type': 'static_library', |
| 361 | 'sources': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 362 | 'examples/objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h', |
| 363 | 'examples/objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 364 | ], |
| 365 | 'conditions': [ |
| 366 | ['OS=="mac"', { |
| 367 | 'xcode_settings': { |
| 368 | # SocketRocket autosynthesizes some properties. Disable the |
| 369 | # warning so we can compile successfully. |
| 370 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 371 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 372 | # SRWebSocket.m uses code with partial availability. |
| 373 | # https://code.google.com/p/webrtc/issues/detail?id=4695 |
henrika | ae602ea | 2016-09-21 11:13:00 | [diff] [blame] | 374 | 'WARNING_CFLAGS!': [ |
| 375 | '-Wpartial-availability', |
jianjun.zhu | bc5f129 | 2016-09-26 09:41:34 | [diff] [blame] | 376 | ], |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 377 | }, |
| 378 | }], |
| 379 | ], |
| 380 | 'direct_dependent_settings': { |
| 381 | 'include_dirs': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 382 | 'examples/objc/AppRTCMobile/third_party/SocketRocket', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 383 | ], |
| 384 | }, |
| 385 | 'xcode_settings': { |
| 386 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 387 | 'WARNING_CFLAGS': [ |
| 388 | '-Wno-deprecated-declarations', |
tkchin | 5c85590 | 2015-12-03 00:42:18 | [diff] [blame] | 389 | '-Wno-nonnull', |
jianjun.zhu | bc5f129 | 2016-09-26 09:41:34 | [diff] [blame] | 390 | # Hide the warning for SecRandomCopyBytes(), till we update |
| 391 | # to upstream. |
| 392 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 |
| 393 | '-Wno-unused-result', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 394 | ], |
| 395 | }, |
| 396 | 'link_settings': { |
| 397 | 'xcode_settings': { |
| 398 | 'OTHER_LDFLAGS': [ |
| 399 | '-framework CFNetwork', |
| 400 | '-licucore', |
| 401 | ], |
| 402 | }, |
| 403 | } |
| 404 | }, # target socketrocket |
| 405 | ], # targets |
tkchin | 5c85590 | 2015-12-03 00:42:18 | [diff] [blame] | 406 | }], # OS=="ios" or (OS=="mac" and target_arch!="ia32") |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 407 | |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 408 | ['OS=="android"', { |
| 409 | 'targets': [ |
| 410 | { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 411 | 'target_name': 'AppRTCMobile', |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 412 | 'type': 'none', |
| 413 | 'dependencies': [ |
kjellander | 882cc75 | 2016-06-20 08:34:06 | [diff] [blame] | 414 | 'api/api_java.gyp:libjingle_peerconnection_java', |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 415 | ], |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 416 | 'variables': { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 417 | 'apk_name': 'AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 418 | 'java_in_dir': 'examples/androidapp', |
| 419 | 'has_java_resources': 1, |
| 420 | 'resource_dir': 'examples/androidapp/res', |
| 421 | 'R_package': 'org.appspot.apprtc', |
| 422 | 'R_package_relpath': 'org/appspot/apprtc', |
| 423 | 'input_jars_paths': [ |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 424 | 'examples/androidapp/third_party/autobanh/lib/autobanh.jar', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 425 | ], |
| 426 | 'library_dexed_jars_paths': [ |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 427 | 'examples/androidapp/third_party/autobanh/lib/autobanh.jar', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 428 | ], |
| 429 | 'native_lib_target': 'libjingle_peerconnection_so', |
| 430 | 'add_to_dependents_classpaths':1, |
| 431 | }, |
| 432 | 'includes': [ '../build/java_apk.gypi' ], |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 433 | }, # target AppRTCMobile |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 434 | |
| 435 | { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 436 | # AppRTCMobile creates a .jar as a side effect. Any java targets |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 437 | # that need that .jar in their classpath should depend on this target, |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 438 | # AppRTCMobile_apk. Dependents of AppRTCMobile_apk receive its |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 439 | # jar path in the variable 'apk_output_jar_path'. |
| 440 | # This target should only be used by targets which instrument |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 441 | # AppRTCMobile_apk. |
| 442 | 'target_name': 'AppRTCMobile_apk', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 443 | 'type': 'none', |
| 444 | 'dependencies': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 445 | 'AppRTCMobile', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 446 | ], |
| 447 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 448 | }, # target AppRTCMobile_apk |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 449 | |
| 450 | { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 451 | 'target_name': 'AppRTCMobileTest', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 452 | 'type': 'none', |
| 453 | 'dependencies': [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 454 | 'AppRTCMobile_apk', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 455 | ], |
| 456 | 'variables': { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 457 | 'apk_name': 'AppRTCMobileTest', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 458 | 'java_in_dir': 'examples/androidtests', |
| 459 | 'is_test_apk': 1, |
agrieve | e7931c7 | 2016-04-08 13:54:23 | [diff] [blame] | 460 | 'test_type': 'instrumentation', |
| 461 | 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 462 | }, |
agrieve | e7931c7 | 2016-04-08 13:54:23 | [diff] [blame] | 463 | 'includes': [ |
| 464 | '../build/java_apk.gypi', |
| 465 | '../build/android/test_runner.gypi', |
| 466 | ], |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 467 | }, |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 468 | { |
| 469 | 'target_name': 'stun_prober', |
| 470 | 'type': 'executable', |
| 471 | 'dependencies': [ |
| 472 | 'p2p:libstunprober', |
| 473 | 'p2p:rtc_p2p' |
| 474 | ], |
| 475 | 'sources': [ |
| 476 | 'examples/stunprober/main.cc', |
| 477 | ], |
| 478 | }, |
Peter Boström | e31d725 | 2015-11-11 12:11:15 | [diff] [blame] | 479 | ], # targets |
| 480 | }], # OS=="android" |
henrike@webrtc.org | a48c91d | 2013-12-12 16:55:37 | [diff] [blame] | 481 | ], |
| 482 | } |