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