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