henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | # |
| 2 | # libjingle |
| 3 | # Copyright 2012, Google Inc. |
| 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. |
| 26 | # |
| 27 | |
| 28 | { |
| 29 | 'includes': ['build/common.gypi'], |
| 30 | 'targets': [ |
| 31 | { |
| 32 | # TODO(ronghuawu): Use gtest.gyp from chromium. |
| 33 | 'target_name': 'gunit', |
| 34 | 'type': 'static_library', |
| 35 | 'sources': [ |
henrike@webrtc.org | 723d683 | 2013-07-12 16:04:50 +0000 | [diff] [blame] | 36 | '<(DEPTH)/testing/gtest/src/gtest-all.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 37 | ], |
| 38 | 'include_dirs': [ |
henrike@webrtc.org | 723d683 | 2013-07-12 16:04:50 +0000 | [diff] [blame] | 39 | '<(DEPTH)/testing/gtest/include', |
| 40 | '<(DEPTH)/testing/gtest', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 41 | ], |
| 42 | 'direct_dependent_settings': { |
| 43 | 'include_dirs': [ |
henrike@webrtc.org | 723d683 | 2013-07-12 16:04:50 +0000 | [diff] [blame] | 44 | '<(DEPTH)/testing/gtest/include', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 45 | ], |
| 46 | }, |
| 47 | 'conditions': [ |
| 48 | ['OS=="android"', { |
| 49 | 'include_dirs': [ |
| 50 | '<(android_ndk_include)', |
| 51 | ] |
| 52 | }], |
| 53 | ], |
| 54 | }, # target gunit |
| 55 | { |
| 56 | 'target_name': 'libjingle_unittest_main', |
| 57 | 'type': 'static_library', |
| 58 | 'dependencies': [ |
| 59 | '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv', |
| 60 | 'gunit', |
| 61 | ], |
| 62 | 'direct_dependent_settings': { |
| 63 | 'include_dirs': [ |
| 64 | '<(DEPTH)/third_party/libyuv/include', |
| 65 | ], |
| 66 | }, |
| 67 | 'sources': [ |
| 68 | 'base/unittest_main.cc', |
| 69 | # Also use this as a convenient dumping ground for misc files that are |
| 70 | # included by multiple targets below. |
| 71 | 'base/fakecpumonitor.h', |
| 72 | 'base/fakenetwork.h', |
| 73 | 'base/fakesslidentity.h', |
| 74 | 'base/faketaskrunner.h', |
| 75 | 'base/gunit.h', |
| 76 | 'base/testbase64.h', |
| 77 | 'base/testechoserver.h', |
| 78 | 'base/win32toolhelp.h', |
| 79 | 'media/base/fakecapturemanager.h', |
| 80 | 'media/base/fakemediaengine.h', |
| 81 | 'media/base/fakemediaprocessor.h', |
| 82 | 'media/base/fakenetworkinterface.h', |
| 83 | 'media/base/fakertp.h', |
| 84 | 'media/base/fakevideocapturer.h', |
| 85 | 'media/base/fakevideorenderer.h', |
| 86 | 'media/base/nullvideoframe.h', |
| 87 | 'media/base/nullvideorenderer.h', |
| 88 | 'media/base/testutils.cc', |
| 89 | 'media/base/testutils.h', |
| 90 | 'media/devices/fakedevicemanager.h', |
| 91 | 'media/webrtc/fakewebrtccommon.h', |
| 92 | 'media/webrtc/fakewebrtcdeviceinfo.h', |
| 93 | 'media/webrtc/fakewebrtcvcmfactory.h', |
| 94 | 'media/webrtc/fakewebrtcvideocapturemodule.h', |
| 95 | 'media/webrtc/fakewebrtcvideoengine.h', |
| 96 | 'media/webrtc/fakewebrtcvoiceengine.h', |
| 97 | ], |
| 98 | }, # target libjingle_unittest_main |
| 99 | { |
| 100 | 'target_name': 'libjingle_unittest', |
| 101 | 'type': 'executable', |
| 102 | 'dependencies': [ |
| 103 | 'gunit', |
| 104 | 'libjingle.gyp:libjingle', |
| 105 | 'libjingle_unittest_main', |
| 106 | ], |
| 107 | 'sources': [ |
| 108 | 'base/asynchttprequest_unittest.cc', |
| 109 | 'base/atomicops_unittest.cc', |
| 110 | 'base/autodetectproxy_unittest.cc', |
| 111 | 'base/bandwidthsmoother_unittest.cc', |
| 112 | 'base/base64_unittest.cc', |
| 113 | 'base/basictypes_unittest.cc', |
| 114 | 'base/bind_unittest.cc', |
| 115 | 'base/buffer_unittest.cc', |
| 116 | 'base/bytebuffer_unittest.cc', |
| 117 | 'base/byteorder_unittest.cc', |
| 118 | 'base/cpumonitor_unittest.cc', |
| 119 | 'base/crc32_unittest.cc', |
| 120 | 'base/event_unittest.cc', |
| 121 | 'base/filelock_unittest.cc', |
| 122 | 'base/fileutils_unittest.cc', |
| 123 | 'base/helpers_unittest.cc', |
| 124 | 'base/host_unittest.cc', |
| 125 | 'base/httpbase_unittest.cc', |
| 126 | 'base/httpcommon_unittest.cc', |
| 127 | 'base/httpserver_unittest.cc', |
| 128 | 'base/ipaddress_unittest.cc', |
| 129 | 'base/logging_unittest.cc', |
| 130 | 'base/md5digest_unittest.cc', |
| 131 | 'base/messagedigest_unittest.cc', |
| 132 | 'base/messagequeue_unittest.cc', |
| 133 | 'base/multipart_unittest.cc', |
| 134 | 'base/nat_unittest.cc', |
| 135 | 'base/network_unittest.cc', |
| 136 | 'base/nullsocketserver_unittest.cc', |
| 137 | 'base/optionsfile_unittest.cc', |
| 138 | 'base/pathutils_unittest.cc', |
| 139 | 'base/physicalsocketserver_unittest.cc', |
| 140 | 'base/profiler_unittest.cc', |
| 141 | 'base/proxy_unittest.cc', |
| 142 | 'base/proxydetect_unittest.cc', |
| 143 | 'base/ratelimiter_unittest.cc', |
| 144 | 'base/ratetracker_unittest.cc', |
| 145 | 'base/referencecountedsingletonfactory_unittest.cc', |
| 146 | 'base/rollingaccumulator_unittest.cc', |
| 147 | 'base/sha1digest_unittest.cc', |
| 148 | 'base/sharedexclusivelock_unittest.cc', |
| 149 | 'base/signalthread_unittest.cc', |
| 150 | 'base/sigslot_unittest.cc', |
| 151 | 'base/socket_unittest.cc', |
| 152 | 'base/socket_unittest.h', |
| 153 | 'base/socketaddress_unittest.cc', |
| 154 | 'base/stream_unittest.cc', |
| 155 | 'base/stringencode_unittest.cc', |
| 156 | 'base/stringutils_unittest.cc', |
| 157 | # TODO(ronghuawu): Reenable this test. |
| 158 | # 'base/systeminfo_unittest.cc', |
| 159 | 'base/task_unittest.cc', |
| 160 | 'base/testclient_unittest.cc', |
| 161 | 'base/thread_unittest.cc', |
| 162 | 'base/timeutils_unittest.cc', |
| 163 | 'base/urlencode_unittest.cc', |
| 164 | 'base/versionparsing_unittest.cc', |
| 165 | 'base/virtualsocket_unittest.cc', |
| 166 | # TODO(ronghuawu): Reenable this test. |
| 167 | # 'base/windowpicker_unittest.cc', |
| 168 | 'xmllite/qname_unittest.cc', |
| 169 | 'xmllite/xmlbuilder_unittest.cc', |
| 170 | 'xmllite/xmlelement_unittest.cc', |
| 171 | 'xmllite/xmlnsstack_unittest.cc', |
| 172 | 'xmllite/xmlparser_unittest.cc', |
| 173 | 'xmllite/xmlprinter_unittest.cc', |
| 174 | 'xmpp/fakexmppclient.h', |
| 175 | 'xmpp/hangoutpubsubclient_unittest.cc', |
| 176 | 'xmpp/jid_unittest.cc', |
| 177 | 'xmpp/mucroomconfigtask_unittest.cc', |
| 178 | 'xmpp/mucroomdiscoverytask_unittest.cc', |
| 179 | 'xmpp/mucroomlookuptask_unittest.cc', |
| 180 | 'xmpp/mucroomuniquehangoutidtask_unittest.cc', |
| 181 | 'xmpp/pingtask_unittest.cc', |
| 182 | 'xmpp/pubsubclient_unittest.cc', |
| 183 | 'xmpp/pubsubtasks_unittest.cc', |
| 184 | 'xmpp/util_unittest.cc', |
| 185 | 'xmpp/util_unittest.h', |
| 186 | 'xmpp/xmppengine_unittest.cc', |
| 187 | 'xmpp/xmpplogintask_unittest.cc', |
| 188 | 'xmpp/xmppstanzaparser_unittest.cc', |
| 189 | ], # sources |
| 190 | 'conditions': [ |
| 191 | ['OS=="linux"', { |
| 192 | 'sources': [ |
| 193 | 'base/latebindingsymboltable_unittest.cc', |
| 194 | # TODO(ronghuawu): Reenable this test. |
| 195 | # 'base/linux_unittest.cc', |
| 196 | 'base/linuxfdwalk_unittest.cc', |
| 197 | ], |
| 198 | }], |
| 199 | ['OS=="win"', { |
| 200 | 'sources': [ |
| 201 | 'base/win32_unittest.cc', |
| 202 | 'base/win32regkey_unittest.cc', |
| 203 | 'base/win32socketserver_unittest.cc', |
| 204 | 'base/win32toolhelp_unittest.cc', |
| 205 | 'base/win32window_unittest.cc', |
| 206 | 'base/win32windowpicker_unittest.cc', |
| 207 | 'base/winfirewall_unittest.cc', |
| 208 | ], |
| 209 | 'sources!': [ |
| 210 | # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot |
| 211 | # then reenable these tests. |
| 212 | 'base/physicalsocketserver_unittest.cc', |
| 213 | 'base/socket_unittest.cc', |
| 214 | 'base/win32socketserver_unittest.cc', |
| 215 | 'base/win32windowpicker_unittest.cc', |
| 216 | ], |
| 217 | }], |
| 218 | ['OS=="mac"', { |
| 219 | 'sources': [ |
| 220 | 'base/macsocketserver_unittest.cc', |
| 221 | 'base/macutils_unittest.cc', |
| 222 | 'base/macwindowpicker_unittest.cc', |
| 223 | ], |
| 224 | }], |
| 225 | ['os_posix==1', { |
| 226 | 'sources': [ |
| 227 | 'base/sslidentity_unittest.cc', |
henrike@webrtc.org | 9de257d | 2013-07-17 14:42:53 +0000 | [diff] [blame^] | 228 | 'base/sslstreamadapter_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 229 | ], |
| 230 | }], |
| 231 | ], # conditions |
| 232 | }, # target libjingle_unittest |
| 233 | { |
| 234 | 'target_name': 'libjingle_sound_unittest', |
| 235 | 'type': 'executable', |
| 236 | 'dependencies': [ |
| 237 | 'gunit', |
| 238 | 'libjingle.gyp:libjingle_sound', |
| 239 | 'libjingle_unittest_main', |
| 240 | ], |
| 241 | 'sources': [ |
| 242 | 'sound/automaticallychosensoundsystem_unittest.cc', |
| 243 | ], |
| 244 | }, # target libjingle_sound_unittest |
| 245 | { |
| 246 | 'target_name': 'libjingle_media_unittest', |
| 247 | 'type': 'executable', |
| 248 | 'dependencies': [ |
| 249 | 'gunit', |
| 250 | 'libjingle.gyp:libjingle_media', |
| 251 | 'libjingle_unittest_main', |
| 252 | ], |
| 253 | # TODO(ronghuawu): Avoid the copies. |
| 254 | # https://code.google.com/p/libjingle/issues/detail?id=398 |
| 255 | 'copies': [ |
| 256 | { |
| 257 | 'destination': '<(DEPTH)/../talk/media/testdata', |
| 258 | 'files': [ |
| 259 | 'media/testdata/1.frame_plus_1.byte', |
| 260 | 'media/testdata/captured-320x240-2s-48.frames', |
| 261 | 'media/testdata/h264-svc-99-640x360.rtpdump', |
| 262 | 'media/testdata/video.rtpdump', |
| 263 | 'media/testdata/voice.rtpdump', |
| 264 | ], |
| 265 | }, |
| 266 | ], |
| 267 | 'sources': [ |
| 268 | # TODO(ronghuawu): Reenable this test. |
| 269 | # 'media/base/capturemanager_unittest.cc', |
| 270 | 'media/base/codec_unittest.cc', |
| 271 | 'media/base/filemediaengine_unittest.cc', |
| 272 | 'media/base/rtpdataengine_unittest.cc', |
| 273 | 'media/base/rtpdump_unittest.cc', |
| 274 | 'media/base/rtputils_unittest.cc', |
| 275 | 'media/base/testutils.cc', |
| 276 | 'media/base/testutils.h', |
| 277 | 'media/base/videocapturer_unittest.cc', |
| 278 | 'media/base/videocommon_unittest.cc', |
| 279 | 'media/base/videoengine_unittest.h', |
| 280 | 'media/devices/dummydevicemanager_unittest.cc', |
| 281 | 'media/devices/filevideocapturer_unittest.cc', |
| 282 | 'media/webrtc/webrtcpassthroughrender_unittest.cc', |
| 283 | 'media/webrtc/webrtcvideocapturer_unittest.cc', |
| 284 | # Omitted because depends on non-open-source testdata files. |
| 285 | # 'media/base/videoframe_unittest.h', |
| 286 | # 'media/webrtc/webrtcvideoframe_unittest.cc', |
| 287 | |
| 288 | # Disabled because some tests fail. |
| 289 | # TODO(ronghuawu): Reenable these tests. |
| 290 | # 'media/devices/devicemanager_unittest.cc', |
| 291 | # 'media/webrtc/webrtcvideoengine_unittest.cc', |
| 292 | # 'media/webrtc/webrtcvoiceengine_unittest.cc', |
| 293 | ], |
| 294 | 'conditions': [ |
| 295 | ['OS=="win"', { |
| 296 | 'msvs_settings': { |
| 297 | 'VCLinkerTool': { |
| 298 | 'AdditionalDependencies': [ |
| 299 | # TODO(ronghuawu): Since we've included strmiids in |
| 300 | # libjingle_media target, we shouldn't need this here. |
| 301 | # Find out why it doesn't work without this. |
| 302 | 'strmiids.lib', |
| 303 | ], |
| 304 | }, |
| 305 | }, |
| 306 | }], |
| 307 | ], |
| 308 | }, # target libjingle_media_unittest |
| 309 | { |
| 310 | 'target_name': 'libjingle_p2p_unittest', |
| 311 | 'type': 'executable', |
| 312 | 'dependencies': [ |
| 313 | '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', |
| 314 | 'gunit', |
| 315 | 'libjingle.gyp:libjingle', |
| 316 | 'libjingle.gyp:libjingle_p2p', |
| 317 | 'libjingle_unittest_main', |
| 318 | ], |
| 319 | 'include_dirs': [ |
| 320 | '<(DEPTH)/third_party/libsrtp/srtp', |
| 321 | ], |
| 322 | 'sources': [ |
| 323 | 'p2p/base/dtlstransportchannel_unittest.cc', |
| 324 | 'p2p/base/fakesession.h', |
| 325 | 'p2p/base/p2ptransportchannel_unittest.cc', |
| 326 | 'p2p/base/port_unittest.cc', |
| 327 | 'p2p/base/portallocatorsessionproxy_unittest.cc', |
| 328 | 'p2p/base/pseudotcp_unittest.cc', |
| 329 | 'p2p/base/relayport_unittest.cc', |
| 330 | 'p2p/base/relayserver_unittest.cc', |
| 331 | 'p2p/base/session_unittest.cc', |
| 332 | 'p2p/base/stun_unittest.cc', |
| 333 | 'p2p/base/stunport_unittest.cc', |
| 334 | 'p2p/base/stunrequest_unittest.cc', |
| 335 | 'p2p/base/stunserver_unittest.cc', |
| 336 | 'p2p/base/testrelayserver.h', |
| 337 | 'p2p/base/teststunserver.h', |
| 338 | 'p2p/base/testturnserver.h', |
| 339 | 'p2p/base/transport_unittest.cc', |
| 340 | 'p2p/base/transportdescriptionfactory_unittest.cc', |
| 341 | 'p2p/client/connectivitychecker_unittest.cc', |
| 342 | 'p2p/client/fakeportallocator.h', |
| 343 | 'p2p/client/portallocator_unittest.cc', |
| 344 | 'session/media/channel_unittest.cc', |
| 345 | 'session/media/channelmanager_unittest.cc', |
| 346 | 'session/media/currentspeakermonitor_unittest.cc', |
| 347 | 'session/media/mediarecorder_unittest.cc', |
| 348 | 'session/media/mediamessages_unittest.cc', |
| 349 | 'session/media/mediasession_unittest.cc', |
| 350 | 'session/media/mediasessionclient_unittest.cc', |
| 351 | 'session/media/rtcpmuxfilter_unittest.cc', |
| 352 | 'session/media/srtpfilter_unittest.cc', |
| 353 | 'session/media/ssrcmuxfilter_unittest.cc', |
| 354 | ], |
| 355 | 'conditions': [ |
| 356 | ['OS=="win"', { |
| 357 | 'msvs_settings': { |
| 358 | 'VCLinkerTool': { |
| 359 | 'AdditionalDependencies': [ |
| 360 | 'strmiids.lib', |
| 361 | ], |
| 362 | }, |
| 363 | }, |
| 364 | }], |
| 365 | ], |
| 366 | }, # target libjingle_p2p_unittest |
| 367 | { |
| 368 | 'target_name': 'libjingle_peerconnection_unittest', |
| 369 | 'type': 'executable', |
| 370 | 'dependencies': [ |
| 371 | 'gunit', |
| 372 | 'libjingle.gyp:libjingle', |
| 373 | 'libjingle.gyp:libjingle_p2p', |
| 374 | 'libjingle.gyp:libjingle_peerconnection', |
| 375 | 'libjingle_unittest_main', |
| 376 | ], |
| 377 | # TODO(ronghuawu): Reenable below unit tests that require gmock. |
| 378 | 'sources': [ |
| 379 | 'app/webrtc/dtmfsender_unittest.cc', |
| 380 | 'app/webrtc/jsepsessiondescription_unittest.cc', |
| 381 | 'app/webrtc/localaudiosource_unittest.cc', |
| 382 | 'app/webrtc/localvideosource_unittest.cc', |
| 383 | # 'app/webrtc/mediastream_unittest.cc', |
| 384 | # 'app/webrtc/mediastreamhandler_unittest.cc', |
| 385 | 'app/webrtc/mediastreamsignaling_unittest.cc', |
| 386 | 'app/webrtc/peerconnection_unittest.cc', |
| 387 | 'app/webrtc/peerconnectionfactory_unittest.cc', |
| 388 | 'app/webrtc/peerconnectioninterface_unittest.cc', |
| 389 | # 'app/webrtc/peerconnectionproxy_unittest.cc', |
| 390 | 'app/webrtc/test/fakeaudiocapturemodule.cc', |
| 391 | 'app/webrtc/test/fakeaudiocapturemodule.h', |
| 392 | 'app/webrtc/test/fakeaudiocapturemodule_unittest.cc', |
| 393 | 'app/webrtc/test/fakeconstraints.h', |
| 394 | 'app/webrtc/test/fakeperiodicvideocapturer.h', |
| 395 | 'app/webrtc/test/fakevideotrackrenderer.h', |
| 396 | 'app/webrtc/test/mockpeerconnectionobservers.h', |
| 397 | 'app/webrtc/test/testsdpstrings.h', |
| 398 | 'app/webrtc/videotrack_unittest.cc', |
| 399 | 'app/webrtc/webrtcsdp_unittest.cc', |
| 400 | 'app/webrtc/webrtcsession_unittest.cc', |
| 401 | ], |
| 402 | }, # target libjingle_peerconnection_unittest |
| 403 | ], |
| 404 | 'conditions': [ |
| 405 | ['OS=="linux"', { |
| 406 | 'targets': [ |
| 407 | { |
| 408 | 'target_name': 'libjingle_peerconnection_test_jar', |
| 409 | 'type': 'none', |
| 410 | 'actions': [ |
| 411 | { |
| 412 | 'variables': { |
| 413 | 'java_src_dir': 'app/webrtc/javatests/src', |
| 414 | 'java_files': [ |
| 415 | 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTest.java', |
| 416 | ], |
| 417 | }, |
| 418 | 'action_name': 'create_jar', |
| 419 | 'inputs': [ |
| 420 | 'build/build_jar.sh', |
| 421 | '<@(java_files)', |
| 422 | '<(PRODUCT_DIR)/libjingle_peerconnection.jar', |
| 423 | '<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 424 | ], |
| 425 | 'outputs': [ |
| 426 | '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar', |
| 427 | ], |
| 428 | 'action': [ |
| 429 | 'build/build_jar.sh', '/usr', '<@(_outputs)', |
| 430 | '<(INTERMEDIATE_DIR)', |
| 431 | '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 432 | '<@(java_files)' |
| 433 | ], |
| 434 | }, |
| 435 | ], |
| 436 | }, |
| 437 | { |
| 438 | 'target_name': 'libjingle_peerconnection_java_unittest', |
| 439 | 'type': 'none', |
| 440 | 'actions': [ |
| 441 | { |
| 442 | 'action_name': 'copy libjingle_peerconnection_java_unittest', |
| 443 | 'inputs': [ |
| 444 | 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh', |
| 445 | '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar', |
| 446 | '<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 447 | ], |
| 448 | 'outputs': [ |
| 449 | '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest', |
| 450 | ], |
| 451 | 'action': [ |
| 452 | 'bash', '-c', |
| 453 | 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && ' |
| 454 | 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" ' |
| 455 | '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh ' |
| 456 | '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && ' |
| 457 | 'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && ' |
| 458 | 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest' |
| 459 | ], |
| 460 | }, |
| 461 | ], |
| 462 | }, |
| 463 | ], |
| 464 | }], |
| 465 | ['libjingle_objc == 1', { |
| 466 | 'targets': [ |
| 467 | { |
| 468 | 'variables': { |
| 469 | 'infoplist_file': './app/webrtc/objctests/Info.plist', |
| 470 | }, |
| 471 | 'target_name': 'libjingle_peerconnection_objc_test', |
| 472 | 'type': 'executable', |
| 473 | 'mac_bundle': 1, |
| 474 | 'mac_bundle_resources': [ |
| 475 | '<(infoplist_file)', |
| 476 | ], |
| 477 | # The plist is listed above so that it appears in XCode's file list, |
| 478 | # but we don't actually want to bundle it. |
| 479 | 'mac_bundle_resources!': [ |
| 480 | '<(infoplist_file)', |
| 481 | ], |
| 482 | 'xcode_settings': { |
| 483 | 'INFOPLIST_FILE': '<(infoplist_file)', |
| 484 | }, |
| 485 | 'dependencies': [ |
| 486 | 'gunit', |
| 487 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 488 | ], |
| 489 | 'FRAMEWORK_SEARCH_PATHS': [ |
| 490 | '$(inherited)', |
| 491 | '$(SDKROOT)/Developer/Library/Frameworks', |
| 492 | '$(DEVELOPER_LIBRARY_DIR)/Frameworks', |
| 493 | ], |
| 494 | 'sources': [ |
| 495 | 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h', |
| 496 | 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m', |
| 497 | 'app/webrtc/objctests/RTCPeerConnectionTest.mm', |
| 498 | 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h', |
| 499 | 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m', |
| 500 | ], |
| 501 | 'include_dirs': [ |
| 502 | '<(DEPTH)/talk/app/webrtc/objc/public', |
| 503 | ], |
| 504 | 'conditions': [ |
| 505 | [ 'OS=="mac"', { |
| 506 | 'sources': [ |
| 507 | 'app/webrtc/objctests/mac/main.mm', |
| 508 | ], |
| 509 | 'xcode_settings': { |
| 510 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 511 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
| 512 | 'CLANG_LINK_OBJC_RUNTIME': 'YES', |
| 513 | # build/common.gypi disables ARC by default for back-compat |
| 514 | # reasons with OSX 10.6. Enabling OBJC runtime and clearing |
| 515 | # LDPLUSPLUS and CC re-enables it. Setting deployment target to |
| 516 | # 10.7 as there are no back-compat issues with ARC. |
| 517 | # https://code.google.com/p/chromium/issues/detail?id=156530 |
| 518 | 'CC': '', |
| 519 | 'LDPLUSPLUS': '', |
| 520 | 'macosx_deployment_target': '10.7', |
| 521 | }, |
| 522 | }], |
| 523 | ], |
| 524 | }, |
| 525 | ], |
| 526 | }], |
| 527 | ], |
| 528 | } |