henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | # |
| 2 | # libjingle |
jlmiller@webrtc.org | 5f93d0a | 2015-01-20 21:36:13 +0000 | [diff] [blame] | 3 | # Copyright 2012 Google Inc. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 4 | # |
| 5 | # Redistribution and use in source and binary forms, with or without |
| 6 | # modification, are permitted provided that the following conditions are met: |
| 7 | # |
| 8 | # 1. Redistributions of source code must retain the above copyright notice, |
| 9 | # this list of conditions and the following disclaimer. |
| 10 | # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 | # this list of conditions and the following disclaimer in the documentation |
| 12 | # and/or other materials provided with the distribution. |
| 13 | # 3. The name of the author may not be used to endorse or promote products |
| 14 | # derived from this software without specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 19 | # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 20 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 26 | |
| 27 | { |
| 28 | 'includes': [ |
| 29 | 'build/common.gypi', |
| 30 | ], |
| 31 | 'targets': [ |
| 32 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 33 | 'target_name': 'relayserver', |
| 34 | 'type': 'executable', |
| 35 | 'dependencies': [ |
| 36 | 'libjingle.gyp:libjingle', |
| 37 | 'libjingle.gyp:libjingle_p2p', |
| 38 | ], |
| 39 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 40 | 'examples/relayserver/relayserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 41 | ], |
| 42 | }, # target relayserver |
| 43 | { |
| 44 | 'target_name': 'stunserver', |
| 45 | 'type': 'executable', |
| 46 | 'dependencies': [ |
| 47 | 'libjingle.gyp:libjingle', |
| 48 | 'libjingle.gyp:libjingle_p2p', |
| 49 | ], |
| 50 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 51 | 'examples/stunserver/stunserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 52 | ], |
| 53 | }, # target stunserver |
| 54 | { |
| 55 | 'target_name': 'turnserver', |
| 56 | 'type': 'executable', |
| 57 | 'dependencies': [ |
| 58 | 'libjingle.gyp:libjingle', |
| 59 | 'libjingle.gyp:libjingle_p2p', |
| 60 | ], |
| 61 | 'sources': [ |
henrike@webrtc.org | 2ce9a64 | 2014-01-16 16:49:53 +0000 | [diff] [blame] | 62 | 'examples/turnserver/turnserver_main.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 63 | ], |
| 64 | }, # target turnserver |
| 65 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 66 | 'target_name': 'peerconnection_server', |
| 67 | 'type': 'executable', |
| 68 | 'sources': [ |
| 69 | 'examples/peerconnection/server/data_socket.cc', |
| 70 | 'examples/peerconnection/server/data_socket.h', |
| 71 | 'examples/peerconnection/server/main.cc', |
| 72 | 'examples/peerconnection/server/peer_channel.cc', |
| 73 | 'examples/peerconnection/server/peer_channel.h', |
| 74 | 'examples/peerconnection/server/utils.cc', |
| 75 | 'examples/peerconnection/server/utils.h', |
| 76 | ], |
| 77 | 'dependencies': [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 78 | '<(webrtc_root)/common.gyp:webrtc_common', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 79 | 'libjingle.gyp:libjingle', |
| 80 | ], |
| 81 | # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations. |
| 82 | 'msvs_disabled_warnings': [ 4309, ], |
| 83 | }, # target peerconnection_server |
| 84 | ], |
| 85 | 'conditions': [ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 86 | ['OS=="linux" or OS=="win"', { |
| 87 | 'targets': [ |
| 88 | { |
| 89 | 'target_name': 'peerconnection_client', |
| 90 | 'type': 'executable', |
| 91 | 'sources': [ |
| 92 | 'examples/peerconnection/client/conductor.cc', |
| 93 | 'examples/peerconnection/client/conductor.h', |
| 94 | 'examples/peerconnection/client/defaults.cc', |
| 95 | 'examples/peerconnection/client/defaults.h', |
| 96 | 'examples/peerconnection/client/peer_connection_client.cc', |
| 97 | 'examples/peerconnection/client/peer_connection_client.h', |
| 98 | ], |
| 99 | 'dependencies': [ |
| 100 | '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
| 101 | 'libjingle.gyp:libjingle_peerconnection', |
buildbot@webrtc.org | 21b4da8 | 2014-07-23 19:07:53 +0000 | [diff] [blame] | 102 | '<@(libjingle_tests_additional_deps)', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 103 | ], |
| 104 | 'conditions': [ |
| 105 | # TODO(ronghuawu): Move these files to a win/ directory then they |
| 106 | # can be excluded automatically. |
| 107 | ['OS=="win"', { |
| 108 | 'sources': [ |
| 109 | 'examples/peerconnection/client/flagdefs.h', |
| 110 | 'examples/peerconnection/client/main.cc', |
| 111 | 'examples/peerconnection/client/main_wnd.cc', |
| 112 | 'examples/peerconnection/client/main_wnd.h', |
| 113 | ], |
| 114 | 'msvs_settings': { |
| 115 | 'VCLinkerTool': { |
| 116 | 'SubSystem': '2', # Windows |
| 117 | }, |
| 118 | }, |
| 119 | }], # OS=="win" |
| 120 | ['OS=="linux"', { |
| 121 | 'sources': [ |
| 122 | 'examples/peerconnection/client/linux/main.cc', |
| 123 | 'examples/peerconnection/client/linux/main_wnd.cc', |
| 124 | 'examples/peerconnection/client/linux/main_wnd.h', |
| 125 | ], |
| 126 | 'cflags': [ |
| 127 | '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gtk+-2.0)', |
| 128 | ], |
| 129 | 'link_settings': { |
| 130 | 'ldflags': [ |
| 131 | '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0' |
| 132 | ' gobject-2.0 gthread-2.0 gtk+-2.0)', |
| 133 | ], |
| 134 | 'libraries': [ |
| 135 | '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0' |
| 136 | ' gthread-2.0 gtk+-2.0)', |
| 137 | '-lX11', |
| 138 | '-lXcomposite', |
| 139 | '-lXext', |
| 140 | '-lXrender', |
| 141 | ], |
| 142 | }, |
| 143 | }], # OS=="linux" |
| 144 | ], # conditions |
| 145 | }, # target peerconnection_client |
| 146 | ], # targets |
| 147 | }], # OS=="linux" or OS=="win" |
| 148 | |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 149 | ['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] | 150 | 'targets': [ |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 151 | { 'target_name': 'apprtc_signaling', |
| 152 | 'type': 'static_library', |
| 153 | 'dependencies': [ |
| 154 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 155 | 'socketrocket', |
| 156 | ], |
| 157 | 'sources': [ |
| 158 | 'examples/objc/AppRTCDemo/ARDAppClient.h', |
| 159 | 'examples/objc/AppRTCDemo/ARDAppClient.m', |
| 160 | 'examples/objc/AppRTCDemo/ARDAppClient+Internal.h', |
| 161 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.h', |
| 162 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.m', |
| 163 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.h', |
| 164 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.m', |
tkchin@webrtc.org | 36401ab | 2015-01-27 21:34:39 +0000 | [diff] [blame] | 165 | 'examples/objc/AppRTCDemo/ARDJoinResponse.h', |
| 166 | 'examples/objc/AppRTCDemo/ARDJoinResponse.m', |
| 167 | 'examples/objc/AppRTCDemo/ARDJoinResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 168 | 'examples/objc/AppRTCDemo/ARDMessageResponse.h', |
| 169 | 'examples/objc/AppRTCDemo/ARDMessageResponse.m', |
| 170 | 'examples/objc/AppRTCDemo/ARDMessageResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 171 | 'examples/objc/AppRTCDemo/ARDRoomServerClient.h', |
| 172 | 'examples/objc/AppRTCDemo/ARDSignalingChannel.h', |
| 173 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.h', |
| 174 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.m', |
| 175 | 'examples/objc/AppRTCDemo/ARDTURNClient.h', |
| 176 | 'examples/objc/AppRTCDemo/ARDUtilities.h', |
| 177 | 'examples/objc/AppRTCDemo/ARDUtilities.m', |
| 178 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.h', |
| 179 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.m', |
| 180 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.h', |
| 181 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.m', |
| 182 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.h', |
| 183 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.m', |
| 184 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.h', |
| 185 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.m', |
| 186 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.h', |
| 187 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.m', |
| 188 | ], |
| 189 | 'include_dirs': [ |
tkchin@webrtc.org | 9650ab4 | 2015-02-26 20:58:08 +0000 | [diff] [blame] | 190 | 'examples/objc/AppRTCDemo', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 191 | ], |
| 192 | 'direct_dependent_settings': { |
| 193 | 'include_dirs': [ |
tkchin@webrtc.org | 9650ab4 | 2015-02-26 20:58:08 +0000 | [diff] [blame] | 194 | 'examples/objc/AppRTCDemo', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 195 | ], |
| 196 | }, |
| 197 | 'export_dependent_settings': [ |
| 198 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 199 | ], |
| 200 | 'conditions': [ |
| 201 | ['OS=="mac"', { |
| 202 | 'xcode_settings': { |
| 203 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 204 | }, |
| 205 | }], |
| 206 | ], |
| 207 | }, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 208 | { |
| 209 | 'target_name': 'AppRTCDemo', |
| 210 | 'type': 'executable', |
| 211 | 'product_name': 'AppRTCDemo', |
| 212 | 'mac_bundle': 1, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 213 | 'dependencies': [ |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 214 | 'apprtc_signaling', |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 215 | ], |
| 216 | 'conditions': [ |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 217 | ['OS=="ios"', { |
| 218 | 'mac_bundle_resources': [ |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 219 | 'examples/objc/AppRTCDemo/ios/resources/Default-568h.png', |
| 220 | 'examples/objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf', |
| 221 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.png', |
| 222 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2x.png', |
| 223 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png', |
| 224 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.png', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 225 | 'examples/objc/Icon.png', |
| 226 | ], |
| 227 | 'sources': [ |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 228 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.h', |
| 229 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.m', |
| 230 | 'examples/objc/AppRTCDemo/ios/ARDMainView.h', |
| 231 | 'examples/objc/AppRTCDemo/ios/ARDMainView.m', |
| 232 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.h', |
| 233 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.m', |
| 234 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.h', |
| 235 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.m', |
| 236 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.h', |
| 237 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 238 | 'examples/objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch', |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 239 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.h', |
| 240 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 241 | 'examples/objc/AppRTCDemo/ios/main.m', |
| 242 | ], |
| 243 | 'xcode_settings': { |
| 244 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/ios/Info.plist', |
| 245 | }, |
| 246 | }], |
| 247 | ['OS=="mac"', { |
| 248 | 'sources': [ |
| 249 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.h', |
| 250 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m', |
| 251 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.h', |
| 252 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.m', |
| 253 | 'examples/objc/AppRTCDemo/mac/main.m', |
| 254 | ], |
| 255 | 'xcode_settings': { |
| 256 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 257 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/mac/Info.plist', |
| 258 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 259 | 'OTHER_LDFLAGS': [ |
| 260 | '-framework AVFoundation', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 261 | ], |
| 262 | }, |
| 263 | }], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 264 | ['target_arch=="ia32"', { |
| 265 | 'dependencies' : [ |
| 266 | '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
| 267 | ], |
| 268 | }], |
| 269 | ], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 270 | }, # target AppRTCDemo |
tkchin@webrtc.org | 87776a8 | 2014-12-09 19:32:35 +0000 | [diff] [blame] | 271 | { |
| 272 | # TODO(tkchin): move this into the real third party location and |
| 273 | # have it mirrored on chrome infra. |
| 274 | 'target_name': 'socketrocket', |
| 275 | 'type': 'static_library', |
| 276 | 'sources': [ |
| 277 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h', |
| 278 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m', |
| 279 | ], |
| 280 | 'conditions': [ |
| 281 | ['OS=="mac"', { |
| 282 | 'xcode_settings': { |
| 283 | # SocketRocket autosynthesizes some properties. Disable the |
| 284 | # warning so we can compile successfully. |
| 285 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 286 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 287 | }, |
| 288 | }], |
| 289 | ], |
| 290 | 'direct_dependent_settings': { |
| 291 | 'include_dirs': [ |
| 292 | 'examples/objc/AppRTCDemo/third_party/SocketRocket', |
| 293 | ], |
| 294 | }, |
| 295 | 'xcode_settings': { |
| 296 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 297 | 'WARNING_CFLAGS': [ |
| 298 | '-Wno-deprecated-declarations', |
| 299 | ], |
| 300 | }, |
| 301 | 'link_settings': { |
| 302 | 'xcode_settings': { |
| 303 | 'OTHER_LDFLAGS': [ |
| 304 | '-framework CFNetwork', |
| 305 | ], |
| 306 | }, |
| 307 | 'libraries': [ |
| 308 | '$(SDKROOT)/usr/lib/libicucore.dylib', |
| 309 | ], |
| 310 | } |
| 311 | }, # target socketrocket |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 312 | ], # targets |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 313 | }], # 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] | 314 | |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 315 | ['OS=="android"', { |
| 316 | 'targets': [ |
| 317 | { |
| 318 | 'target_name': 'AppRTCDemo', |
| 319 | 'type': 'none', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 320 | 'dependencies': [ |
| 321 | 'libjingle.gyp:libjingle_peerconnection_java', |
| 322 | ], |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 323 | 'variables': { |
| 324 | 'apk_name': 'AppRTCDemo', |
| 325 | 'java_in_dir': 'examples/android', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 326 | 'has_java_resources': 1, |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 327 | 'resource_dir': 'examples/android/res', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 328 | 'R_package': 'org.appspot.apprtc', |
| 329 | 'R_package_relpath': 'org/appspot/apprtc', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 330 | 'input_jars_paths': [ |
| 331 | 'examples/android/third_party/autobanh/autobanh.jar', |
| 332 | ], |
| 333 | 'library_dexed_jars_paths': [ |
| 334 | 'examples/android/third_party/autobanh/autobanh.jar', |
| 335 | ], |
| 336 | 'native_lib_target': 'libjingle_peerconnection_so', |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 337 | 'add_to_dependents_classpaths':1, |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 338 | }, |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 339 | 'includes': [ '../build/java_apk.gypi' ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 340 | }, # target AppRTCDemo |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 341 | |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 342 | { |
| 343 | # AppRTCDemo creates a .jar as a side effect. Any java targets |
| 344 | # that need that .jar in their classpath should depend on this target, |
| 345 | # AppRTCDemo_apk. Dependents of AppRTCDemo_apk receive its |
| 346 | # jar path in the variable 'apk_output_jar_path'. |
| 347 | # This target should only be used by targets which instrument |
| 348 | # AppRTCDemo_apk. |
| 349 | 'target_name': 'AppRTCDemo_apk', |
| 350 | 'type': 'none', |
| 351 | 'dependencies': [ |
| 352 | 'AppRTCDemo', |
| 353 | ], |
| 354 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
| 355 | }, # target AppRTCDemo_apk |
| 356 | |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 357 | { |
| 358 | 'target_name': 'AppRTCDemoTest', |
| 359 | 'type': 'none', |
| 360 | 'dependencies': [ |
glaznev@webrtc.org | f1f558c | 2015-03-14 02:48:16 +0000 | [diff] [blame] | 361 | 'AppRTCDemo_apk', |
| 362 | ], |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 363 | 'variables': { |
| 364 | 'apk_name': 'AppRTCDemoTest', |
| 365 | 'java_in_dir': 'examples/androidtests', |
glaznev@webrtc.org | ae1a078 | 2015-03-11 17:52:11 +0000 | [diff] [blame] | 366 | 'is_test_apk': 1, |
| 367 | }, |
| 368 | 'includes': [ '../build/java_apk.gypi' ], |
| 369 | }, |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 370 | ], # targets |
| 371 | }], # OS=="android" |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 372 | ], |
| 373 | } |