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