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': [ |
| 78 | 'libjingle.gyp:libjingle', |
| 79 | ], |
| 80 | # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations. |
| 81 | 'msvs_disabled_warnings': [ 4309, ], |
| 82 | }, # target peerconnection_server |
| 83 | ], |
| 84 | 'conditions': [ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 85 | ['OS=="linux" or OS=="win"', { |
| 86 | 'targets': [ |
| 87 | { |
| 88 | 'target_name': 'peerconnection_client', |
| 89 | 'type': 'executable', |
| 90 | 'sources': [ |
| 91 | 'examples/peerconnection/client/conductor.cc', |
| 92 | 'examples/peerconnection/client/conductor.h', |
| 93 | 'examples/peerconnection/client/defaults.cc', |
| 94 | 'examples/peerconnection/client/defaults.h', |
| 95 | 'examples/peerconnection/client/peer_connection_client.cc', |
| 96 | 'examples/peerconnection/client/peer_connection_client.h', |
| 97 | ], |
| 98 | 'dependencies': [ |
| 99 | '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
| 100 | 'libjingle.gyp:libjingle_peerconnection', |
buildbot@webrtc.org | 21b4da8 | 2014-07-23 19:07:53 +0000 | [diff] [blame] | 101 | '<@(libjingle_tests_additional_deps)', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 102 | ], |
| 103 | 'conditions': [ |
| 104 | # TODO(ronghuawu): Move these files to a win/ directory then they |
| 105 | # can be excluded automatically. |
| 106 | ['OS=="win"', { |
| 107 | 'sources': [ |
| 108 | 'examples/peerconnection/client/flagdefs.h', |
| 109 | 'examples/peerconnection/client/main.cc', |
| 110 | 'examples/peerconnection/client/main_wnd.cc', |
| 111 | 'examples/peerconnection/client/main_wnd.h', |
| 112 | ], |
| 113 | 'msvs_settings': { |
| 114 | 'VCLinkerTool': { |
| 115 | 'SubSystem': '2', # Windows |
| 116 | }, |
| 117 | }, |
| 118 | }], # OS=="win" |
| 119 | ['OS=="linux"', { |
| 120 | 'sources': [ |
| 121 | 'examples/peerconnection/client/linux/main.cc', |
| 122 | 'examples/peerconnection/client/linux/main_wnd.cc', |
| 123 | 'examples/peerconnection/client/linux/main_wnd.h', |
| 124 | ], |
| 125 | 'cflags': [ |
| 126 | '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gtk+-2.0)', |
| 127 | ], |
| 128 | 'link_settings': { |
| 129 | 'ldflags': [ |
| 130 | '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0' |
| 131 | ' gobject-2.0 gthread-2.0 gtk+-2.0)', |
| 132 | ], |
| 133 | 'libraries': [ |
| 134 | '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0' |
| 135 | ' gthread-2.0 gtk+-2.0)', |
| 136 | '-lX11', |
| 137 | '-lXcomposite', |
| 138 | '-lXext', |
| 139 | '-lXrender', |
| 140 | ], |
| 141 | }, |
| 142 | }], # OS=="linux" |
| 143 | ], # conditions |
| 144 | }, # target peerconnection_client |
| 145 | ], # targets |
| 146 | }], # OS=="linux" or OS=="win" |
| 147 | |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 148 | ['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] | 149 | 'targets': [ |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 150 | { 'target_name': 'apprtc_signaling', |
| 151 | 'type': 'static_library', |
| 152 | 'dependencies': [ |
| 153 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 154 | 'socketrocket', |
| 155 | ], |
| 156 | 'sources': [ |
| 157 | 'examples/objc/AppRTCDemo/ARDAppClient.h', |
| 158 | 'examples/objc/AppRTCDemo/ARDAppClient.m', |
| 159 | 'examples/objc/AppRTCDemo/ARDAppClient+Internal.h', |
| 160 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.h', |
| 161 | 'examples/objc/AppRTCDemo/ARDAppEngineClient.m', |
| 162 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.h', |
| 163 | 'examples/objc/AppRTCDemo/ARDCEODTURNClient.m', |
tkchin@webrtc.org | 36401ab | 2015-01-27 21:34:39 +0000 | [diff] [blame] | 164 | 'examples/objc/AppRTCDemo/ARDJoinResponse.h', |
| 165 | 'examples/objc/AppRTCDemo/ARDJoinResponse.m', |
| 166 | 'examples/objc/AppRTCDemo/ARDJoinResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 167 | 'examples/objc/AppRTCDemo/ARDMessageResponse.h', |
| 168 | 'examples/objc/AppRTCDemo/ARDMessageResponse.m', |
| 169 | 'examples/objc/AppRTCDemo/ARDMessageResponse+Internal.h', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 170 | 'examples/objc/AppRTCDemo/ARDRoomServerClient.h', |
| 171 | 'examples/objc/AppRTCDemo/ARDSignalingChannel.h', |
| 172 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.h', |
| 173 | 'examples/objc/AppRTCDemo/ARDSignalingMessage.m', |
| 174 | 'examples/objc/AppRTCDemo/ARDTURNClient.h', |
| 175 | 'examples/objc/AppRTCDemo/ARDUtilities.h', |
| 176 | 'examples/objc/AppRTCDemo/ARDUtilities.m', |
| 177 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.h', |
| 178 | 'examples/objc/AppRTCDemo/ARDWebSocketChannel.m', |
| 179 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.h', |
| 180 | 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.m', |
| 181 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.h', |
| 182 | 'examples/objc/AppRTCDemo/RTCICEServer+JSON.m', |
| 183 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.h', |
| 184 | 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.m', |
| 185 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.h', |
| 186 | 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.m', |
| 187 | ], |
| 188 | 'include_dirs': [ |
| 189 | 'examples/objc/APPRTCDemo', |
| 190 | ], |
| 191 | 'direct_dependent_settings': { |
| 192 | 'include_dirs': [ |
| 193 | 'examples/objc/APPRTCDemo', |
| 194 | ], |
| 195 | }, |
| 196 | 'export_dependent_settings': [ |
| 197 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 198 | ], |
| 199 | 'conditions': [ |
| 200 | ['OS=="mac"', { |
| 201 | 'xcode_settings': { |
| 202 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 203 | }, |
| 204 | }], |
| 205 | ], |
| 206 | }, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 207 | { |
| 208 | 'target_name': 'AppRTCDemo', |
| 209 | 'type': 'executable', |
| 210 | 'product_name': 'AppRTCDemo', |
| 211 | 'mac_bundle': 1, |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 212 | 'dependencies': [ |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 213 | 'apprtc_signaling', |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 214 | ], |
| 215 | 'conditions': [ |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 216 | ['OS=="ios"', { |
| 217 | 'mac_bundle_resources': [ |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 218 | 'examples/objc/AppRTCDemo/ios/resources/Default-568h.png', |
| 219 | 'examples/objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf', |
| 220 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.png', |
| 221 | 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2x.png', |
| 222 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png', |
| 223 | 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.png', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 224 | 'examples/objc/Icon.png', |
| 225 | ], |
| 226 | 'sources': [ |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 227 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.h', |
| 228 | 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.m', |
| 229 | 'examples/objc/AppRTCDemo/ios/ARDMainView.h', |
| 230 | 'examples/objc/AppRTCDemo/ios/ARDMainView.m', |
| 231 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.h', |
| 232 | 'examples/objc/AppRTCDemo/ios/ARDMainViewController.m', |
| 233 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.h', |
| 234 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.m', |
| 235 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.h', |
| 236 | 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 237 | 'examples/objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch', |
tkchin@webrtc.org | ef2a5dd | 2015-01-15 22:38:21 +0000 | [diff] [blame] | 238 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.h', |
| 239 | 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.m', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 240 | 'examples/objc/AppRTCDemo/ios/main.m', |
| 241 | ], |
| 242 | 'xcode_settings': { |
| 243 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/ios/Info.plist', |
| 244 | }, |
| 245 | }], |
| 246 | ['OS=="mac"', { |
| 247 | 'sources': [ |
| 248 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.h', |
| 249 | 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m', |
| 250 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.h', |
| 251 | 'examples/objc/AppRTCDemo/mac/APPRTCViewController.m', |
| 252 | 'examples/objc/AppRTCDemo/mac/main.m', |
| 253 | ], |
| 254 | 'xcode_settings': { |
| 255 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 256 | 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/mac/Info.plist', |
| 257 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 258 | 'OTHER_LDFLAGS': [ |
| 259 | '-framework AVFoundation', |
tkchin@webrtc.org | acca675 | 2014-05-30 22:26:06 +0000 | [diff] [blame] | 260 | ], |
| 261 | }, |
| 262 | }], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 263 | ['target_arch=="ia32"', { |
| 264 | 'dependencies' : [ |
| 265 | '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
| 266 | ], |
| 267 | }], |
| 268 | ], |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 269 | }, # target AppRTCDemo |
tkchin@webrtc.org | 87776a8 | 2014-12-09 19:32:35 +0000 | [diff] [blame] | 270 | { |
| 271 | # TODO(tkchin): move this into the real third party location and |
| 272 | # have it mirrored on chrome infra. |
| 273 | 'target_name': 'socketrocket', |
| 274 | 'type': 'static_library', |
| 275 | 'sources': [ |
| 276 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h', |
| 277 | 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m', |
| 278 | ], |
| 279 | 'conditions': [ |
| 280 | ['OS=="mac"', { |
| 281 | 'xcode_settings': { |
| 282 | # SocketRocket autosynthesizes some properties. Disable the |
| 283 | # warning so we can compile successfully. |
| 284 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 285 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 286 | }, |
| 287 | }], |
| 288 | ], |
| 289 | 'direct_dependent_settings': { |
| 290 | 'include_dirs': [ |
| 291 | 'examples/objc/AppRTCDemo/third_party/SocketRocket', |
| 292 | ], |
| 293 | }, |
| 294 | 'xcode_settings': { |
| 295 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 296 | 'WARNING_CFLAGS': [ |
| 297 | '-Wno-deprecated-declarations', |
| 298 | ], |
| 299 | }, |
| 300 | 'link_settings': { |
| 301 | 'xcode_settings': { |
| 302 | 'OTHER_LDFLAGS': [ |
| 303 | '-framework CFNetwork', |
| 304 | ], |
| 305 | }, |
| 306 | 'libraries': [ |
| 307 | '$(SDKROOT)/usr/lib/libicucore.dylib', |
| 308 | ], |
| 309 | } |
| 310 | }, # target socketrocket |
fischman@webrtc.org | 1bc1954 | 2013-08-01 18:29:45 +0000 | [diff] [blame] | 311 | ], # targets |
tkchin@webrtc.org | 56d1146 | 2014-05-30 23:04:39 +0000 | [diff] [blame] | 312 | }], # 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] | 313 | |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 314 | ['OS=="android"', { |
| 315 | 'targets': [ |
| 316 | { |
| 317 | 'target_name': 'AppRTCDemo', |
| 318 | 'type': 'none', |
| 319 | 'dependencies': [ |
| 320 | 'libjingle.gyp:libjingle_peerconnection_jar', |
| 321 | ], |
| 322 | 'actions': [ |
| 323 | { |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 324 | # TODO(glaznev): convert from a custom script to a standard gyp |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 325 | # apk build once chromium's apk-building gyp machinery can be used |
| 326 | # (http://crbug.com/225101) |
| 327 | 'action_name': 'build_apprtcdemo_apk', |
| 328 | 'inputs' : [ |
henrike@webrtc.org | 723d683 | 2013-07-12 16:04:50 +0000 | [diff] [blame] | 329 | '<(PRODUCT_DIR)/libjingle_peerconnection.jar', |
perkj@webrtc.org | 128faba | 2014-12-11 12:25:57 +0000 | [diff] [blame] | 330 | '<(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 331 | 'examples/android/AndroidManifest.xml', |
| 332 | 'examples/android/README', |
| 333 | 'examples/android/ant.properties', |
henrik.lundin@webrtc.org | 6f6ef72 | 2014-11-19 13:02:24 +0000 | [diff] [blame] | 334 | 'examples/android/third_party/autobanh/autobanh.jar', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 335 | 'examples/android/build.xml', |
| 336 | 'examples/android/jni/Android.mk', |
| 337 | 'examples/android/project.properties', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 338 | 'examples/android/res/drawable-hdpi/disconnect.png', |
glaznev@webrtc.org | 5f38c8d | 2014-11-03 22:18:52 +0000 | [diff] [blame] | 339 | 'examples/android/res/drawable-hdpi/ic_action_full_screen.png', |
| 340 | 'examples/android/res/drawable-hdpi/ic_action_return_from_full_screen.png', |
| 341 | 'examples/android/res/drawable-hdpi/ic_loopback_call.png', |
| 342 | 'examples/android/res/drawable-hdpi/ic_launcher.png', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 343 | 'examples/android/res/drawable-ldpi/disconnect.png', |
glaznev@webrtc.org | 5f38c8d | 2014-11-03 22:18:52 +0000 | [diff] [blame] | 344 | 'examples/android/res/drawable-ldpi/ic_action_full_screen.png', |
| 345 | 'examples/android/res/drawable-ldpi/ic_action_return_from_full_screen.png', |
| 346 | 'examples/android/res/drawable-ldpi/ic_loopback_call.png', |
| 347 | 'examples/android/res/drawable-ldpi/ic_launcher.png', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 348 | 'examples/android/res/drawable-mdpi/disconnect.png', |
glaznev@webrtc.org | 5f38c8d | 2014-11-03 22:18:52 +0000 | [diff] [blame] | 349 | 'examples/android/res/drawable-mdpi/ic_action_full_screen.png', |
| 350 | 'examples/android/res/drawable-mdpi/ic_action_return_from_full_screen.png', |
| 351 | 'examples/android/res/drawable-mdpi/ic_loopback_call.png', |
| 352 | 'examples/android/res/drawable-mdpi/ic_launcher.png', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 353 | 'examples/android/res/drawable-xhdpi/disconnect.png', |
glaznev@webrtc.org | 5f38c8d | 2014-11-03 22:18:52 +0000 | [diff] [blame] | 354 | 'examples/android/res/drawable-xhdpi/ic_action_full_screen.png', |
| 355 | 'examples/android/res/drawable-xhdpi/ic_action_return_from_full_screen.png', |
| 356 | 'examples/android/res/drawable-xhdpi/ic_loopback_call.png', |
| 357 | 'examples/android/res/drawable-xhdpi/ic_launcher.png', |
glaznev@webrtc.org | bc40324 | 2015-02-10 23:04:13 +0000 | [diff] [blame] | 358 | 'examples/android/res/layout/activity_call.xml', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 359 | 'examples/android/res/layout/activity_connect.xml', |
glaznev@webrtc.org | bc40324 | 2015-02-10 23:04:13 +0000 | [diff] [blame] | 360 | 'examples/android/res/layout/fragment_call.xml', |
glaznev@webrtc.org | 243eb8e | 2014-10-27 17:22:15 +0000 | [diff] [blame] | 361 | 'examples/android/res/menu/connect_menu.xml', |
| 362 | 'examples/android/res/values/arrays.xml', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 363 | 'examples/android/res/values/strings.xml', |
glaznev@webrtc.org | 243eb8e | 2014-10-27 17:22:15 +0000 | [diff] [blame] | 364 | 'examples/android/res/xml/preferences.xml', |
henrika@webrtc.org | 5e16066 | 2014-11-06 20:35:13 +0000 | [diff] [blame] | 365 | 'examples/android/src/org/appspot/apprtc/AppRTCAudioManager.java', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 366 | 'examples/android/src/org/appspot/apprtc/AppRTCClient.java', |
henrika@webrtc.org | b024da3 | 2014-12-29 10:35:06 +0000 | [diff] [blame] | 367 | 'examples/android/src/org/appspot/apprtc/AppRTCProximitySensor.java', |
glaznev@webrtc.org | bc40324 | 2015-02-10 23:04:13 +0000 | [diff] [blame] | 368 | 'examples/android/src/org/appspot/apprtc/CallActivity.java', |
| 369 | 'examples/android/src/org/appspot/apprtc/CallFragment.java', |
glaznev@webrtc.org | 7bb4a98 | 2014-10-22 17:43:37 +0000 | [diff] [blame] | 370 | 'examples/android/src/org/appspot/apprtc/ConnectActivity.java', |
torbjorng@webrtc.org | 3c4668e | 2015-02-20 14:16:54 +0000 | [diff] [blame^] | 371 | 'examples/android/src/org/appspot/apprtc/CpuMonitor.java', |
glaznev@webrtc.org | 5820294 | 2014-10-17 17:42:38 +0000 | [diff] [blame] | 372 | 'examples/android/src/org/appspot/apprtc/PeerConnectionClient.java', |
henrik.lundin@webrtc.org | 6f6ef72 | 2014-11-19 13:02:24 +0000 | [diff] [blame] | 373 | 'examples/android/src/org/appspot/apprtc/RoomParametersFetcher.java', |
glaznev@webrtc.org | 243eb8e | 2014-10-27 17:22:15 +0000 | [diff] [blame] | 374 | 'examples/android/src/org/appspot/apprtc/SettingsActivity.java', |
| 375 | 'examples/android/src/org/appspot/apprtc/SettingsFragment.java', |
glaznev@webrtc.org | 5820294 | 2014-10-17 17:42:38 +0000 | [diff] [blame] | 376 | 'examples/android/src/org/appspot/apprtc/UnhandledExceptionHandler.java', |
henrik.lundin@webrtc.org | 6f6ef72 | 2014-11-19 13:02:24 +0000 | [diff] [blame] | 377 | 'examples/android/src/org/appspot/apprtc/WebSocketChannelClient.java', |
| 378 | 'examples/android/src/org/appspot/apprtc/WebSocketRTCClient.java', |
glaznev@webrtc.org | f6a9714 | 2015-01-06 22:24:09 +0000 | [diff] [blame] | 379 | 'examples/android/src/org/appspot/apprtc/util/AppRTCUtils.java', |
| 380 | 'examples/android/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java', |
| 381 | 'examples/android/src/org/appspot/apprtc/util/LooperExecutor.java', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 382 | ], |
| 383 | 'outputs': [ |
| 384 | '<(PRODUCT_DIR)/AppRTCDemo-debug.apk', |
| 385 | ], |
fischman@webrtc.org | df7b1d6 | 2013-12-11 22:36:22 +0000 | [diff] [blame] | 386 | 'variables': { |
fischman@webrtc.org | 000dde9 | 2013-12-20 22:49:35 +0000 | [diff] [blame] | 387 | 'ant_log': '../../<(INTERMEDIATE_DIR)/ant.log', # ../.. to compensate for the cd examples/android below. |
fischman@webrtc.org | df7b1d6 | 2013-12-11 22:36:22 +0000 | [diff] [blame] | 388 | }, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 389 | 'action': [ |
| 390 | 'bash', '-ec', |
henrike@webrtc.org | 723d683 | 2013-07-12 16:04:50 +0000 | [diff] [blame] | 391 | 'rm -fr <(_outputs) examples/android/{bin,libs} && ' |
fischman@webrtc.org | 000dde9 | 2013-12-20 22:49:35 +0000 | [diff] [blame] | 392 | 'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 393 | 'mkdir -p examples/android/libs/<(android_app_abi) && ' |
| 394 | 'cp <(PRODUCT_DIR)/libjingle_peerconnection.jar examples/android/libs/ &&' |
henrik.lundin@webrtc.org | 6f6ef72 | 2014-11-19 13:02:24 +0000 | [diff] [blame] | 395 | 'cp examples/android/third_party/autobanh/autobanh.jar examples/android/libs/ &&' |
perkj@webrtc.org | 128faba | 2014-12-11 12:25:57 +0000 | [diff] [blame] | 396 | '<(android_strip) -o examples/android/libs/<(android_app_abi)/libjingle_peerconnection_so.so <(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so &&' |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 397 | 'cd examples/android && ' |
kjellander@webrtc.org | 190b72a | 2014-04-15 08:35:49 +0000 | [diff] [blame] | 398 | '{ ANDROID_SDK_ROOT=<(android_sdk_root) ' |
| 399 | 'ant debug > <(ant_log) 2>&1 || ' |
fischman@webrtc.org | df7b1d6 | 2013-12-11 22:36:22 +0000 | [diff] [blame] | 400 | ' { cat <(ant_log) ; exit 1; } } && ' |
| 401 | 'cd - > /dev/null && ' |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 402 | 'cp examples/android/bin/AppRTCDemo-debug.apk <(_outputs)' |
| 403 | ], |
| 404 | }, |
| 405 | ], |
| 406 | }, # target AppRTCDemo |
| 407 | ], # targets |
| 408 | }], # OS=="android" |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 409 | |
| 410 | ['OS=="android"', { |
| 411 | 'targets': [ |
| 412 | { |
| 413 | 'target_name': 'AppRTCDemoTest', |
| 414 | 'type': 'none', |
| 415 | 'dependencies': [ |
| 416 | 'AppRTCDemo', |
| 417 | ], |
| 418 | 'actions': [ |
| 419 | { |
| 420 | # TODO(glaznev): convert from a custom script to a standard gyp |
| 421 | # apk build once chromium's apk-building gyp machinery can be used |
| 422 | # (http://crbug.com/225101) |
| 423 | 'action_name': 'build_apprtcdemotest_apk', |
| 424 | 'inputs' : [ |
| 425 | 'examples/androidtests/AndroidManifest.xml', |
| 426 | 'examples/androidtests/ant.properties', |
| 427 | 'examples/androidtests/build.xml', |
| 428 | 'examples/androidtests/project.properties', |
glaznev@webrtc.org | f6a9714 | 2015-01-06 22:24:09 +0000 | [diff] [blame] | 429 | 'examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java', |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 430 | 'examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java', |
| 431 | ], |
| 432 | 'outputs': [ |
| 433 | '<(PRODUCT_DIR)/AppRTCDemoTest-debug.apk', |
| 434 | ], |
| 435 | 'variables': { |
| 436 | 'ant_log': '../../<(INTERMEDIATE_DIR)/ant.log', # ../.. to compensate for the cd examples/androidtests below. |
| 437 | }, |
| 438 | 'action': [ |
| 439 | 'bash', '-ec', |
| 440 | 'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below |
| 441 | 'cd examples/androidtests && ' |
| 442 | '{ ANDROID_SDK_ROOT=<(android_sdk_root) ' |
| 443 | 'ant debug > <(ant_log) 2>&1 || ' |
| 444 | ' { cat <(ant_log) ; exit 1; } } && ' |
| 445 | 'cd - > /dev/null && ' |
| 446 | 'cp examples/androidtests/bin/AppRTCDemoTest-debug.apk <(_outputs)' |
| 447 | ], |
| 448 | }, |
| 449 | ], |
| 450 | }, # target AppRTCDemoTest |
| 451 | ], # targets |
| 452 | }], # OS=="android" |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 453 | ], |
| 454 | } |