blob: 47fcc2b074e4e645296809ede5e6a6b6681f4242 [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001#
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.org723d6832013-07-12 16:04:50 +000036 '<(DEPTH)/testing/gtest/src/gtest-all.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +000037 ],
38 'include_dirs': [
henrike@webrtc.org723d6832013-07-12 16:04:50 +000039 '<(DEPTH)/testing/gtest/include',
40 '<(DEPTH)/testing/gtest',
henrike@webrtc.org28e20752013-07-10 00:45:36 +000041 ],
42 'direct_dependent_settings': {
43 'include_dirs': [
henrike@webrtc.org723d6832013-07-12 16:04:50 +000044 '<(DEPTH)/testing/gtest/include',
henrike@webrtc.org28e20752013-07-10 00:45:36 +000045 ],
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',
wu@webrtc.org9caf2762013-12-11 18:25:07 +000091 'media/webrtc/dummyinstantiation.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +000092 'media/webrtc/fakewebrtccommon.h',
93 'media/webrtc/fakewebrtcdeviceinfo.h',
94 'media/webrtc/fakewebrtcvcmfactory.h',
95 'media/webrtc/fakewebrtcvideocapturemodule.h',
96 'media/webrtc/fakewebrtcvideoengine.h',
97 'media/webrtc/fakewebrtcvoiceengine.h',
98 ],
99 }, # target libjingle_unittest_main
100 {
101 'target_name': 'libjingle_unittest',
102 'type': 'executable',
103 'dependencies': [
104 'gunit',
105 'libjingle.gyp:libjingle',
106 'libjingle_unittest_main',
107 ],
108 'sources': [
109 'base/asynchttprequest_unittest.cc',
110 'base/atomicops_unittest.cc',
111 'base/autodetectproxy_unittest.cc',
112 'base/bandwidthsmoother_unittest.cc',
113 'base/base64_unittest.cc',
114 'base/basictypes_unittest.cc',
115 'base/bind_unittest.cc',
116 'base/buffer_unittest.cc',
117 'base/bytebuffer_unittest.cc',
118 'base/byteorder_unittest.cc',
119 'base/cpumonitor_unittest.cc',
120 'base/crc32_unittest.cc',
121 'base/event_unittest.cc',
122 'base/filelock_unittest.cc',
123 'base/fileutils_unittest.cc',
124 'base/helpers_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000125 '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.org9de257d2013-07-17 14:42:53 +0000228 'base/sslstreamadapter_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000229 ],
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',
wu@webrtc.org8f19cb92014-01-14 22:31:11 +0000291 # 'media/webrtc/webrtcvideoengine_unittest.cc',
292 # 'media/webrtc/webrtcvoiceengine_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000293 ],
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': [
sergeyu@chromium.org183c7272013-11-13 22:59:20 +0000379 # 'app/webrtc/datachannel_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000380 'app/webrtc/dtmfsender_unittest.cc',
381 'app/webrtc/jsepsessiondescription_unittest.cc',
382 'app/webrtc/localaudiosource_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000383 # 'app/webrtc/mediastream_unittest.cc',
384 # 'app/webrtc/mediastreamhandler_unittest.cc',
385 'app/webrtc/mediastreamsignaling_unittest.cc',
386 'app/webrtc/peerconnection_unittest.cc',
wu@webrtc.org364f2042013-11-20 21:49:41 +0000387 'app/webrtc/peerconnectionendtoend_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000388 'app/webrtc/peerconnectionfactory_unittest.cc',
389 'app/webrtc/peerconnectioninterface_unittest.cc',
390 # 'app/webrtc/peerconnectionproxy_unittest.cc',
wu@webrtc.org967bfff2013-09-19 05:49:50 +0000391 'app/webrtc/remotevideocapturer_unittest.cc',
henrika@webrtc.orgaebb1ad2014-01-14 10:00:58 +0000392 'app/webrtc/sctputils.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000393 'app/webrtc/test/fakeaudiocapturemodule.cc',
394 'app/webrtc/test/fakeaudiocapturemodule.h',
395 'app/webrtc/test/fakeaudiocapturemodule_unittest.cc',
396 'app/webrtc/test/fakeconstraints.h',
wu@webrtc.orgcecfd182013-10-30 05:18:12 +0000397 'app/webrtc/test/fakedatachannelprovider.h',
wu@webrtc.org91053e72013-08-10 07:18:04 +0000398 'app/webrtc/test/fakedtlsidentityservice.h',
399 'app/webrtc/test/fakemediastreamsignaling.h',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000400 'app/webrtc/test/fakeperiodicvideocapturer.h',
401 'app/webrtc/test/fakevideotrackrenderer.h',
402 'app/webrtc/test/mockpeerconnectionobservers.h',
wu@webrtc.org364f2042013-11-20 21:49:41 +0000403 'app/webrtc/test/peerconnectiontestwrapper.h',
404 'app/webrtc/test/peerconnectiontestwrapper.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000405 'app/webrtc/test/testsdpstrings.h',
wu@webrtc.org967bfff2013-09-19 05:49:50 +0000406 'app/webrtc/videosource_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000407 'app/webrtc/videotrack_unittest.cc',
408 'app/webrtc/webrtcsdp_unittest.cc',
409 'app/webrtc/webrtcsession_unittest.cc',
410 ],
411 }, # target libjingle_peerconnection_unittest
412 ],
413 'conditions': [
wu@webrtc.org9dba5252013-08-05 20:36:57 +0000414 ['OS=="linux"', {
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000415 'targets': [
416 {
417 'target_name': 'libjingle_peerconnection_test_jar',
418 'type': 'none',
419 'actions': [
420 {
421 'variables': {
422 'java_src_dir': 'app/webrtc/javatests/src',
423 'java_files': [
424 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTest.java',
425 ],
426 },
427 'action_name': 'create_jar',
428 'inputs': [
429 'build/build_jar.sh',
430 '<@(java_files)',
431 '<(PRODUCT_DIR)/libjingle_peerconnection.jar',
432 '<(DEPTH)/third_party/junit/junit-4.11.jar',
433 ],
434 'outputs': [
435 '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar',
436 ],
437 'action': [
fischman@webrtc.org85f07f52013-07-30 18:11:07 +0000438 'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000439 '<(INTERMEDIATE_DIR)',
440 '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar',
441 '<@(java_files)'
442 ],
443 },
444 ],
445 },
446 {
447 'target_name': 'libjingle_peerconnection_java_unittest',
448 'type': 'none',
449 'actions': [
450 {
451 'action_name': 'copy libjingle_peerconnection_java_unittest',
452 'inputs': [
453 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh',
454 '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar',
455 '<(DEPTH)/third_party/junit/junit-4.11.jar',
456 ],
457 'outputs': [
458 '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest',
459 ],
460 'action': [
461 'bash', '-c',
462 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
463 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" '
464 '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh '
465 '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
466 'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && '
467 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest'
468 ],
469 },
470 ],
471 },
472 ],
473 }],
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000474 ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', {
475 # The >=10.7 above is required to make ARC link cleanly (e.g. as
476 # opposed to _compile_ cleanly, which the library under test
477 # does just fine on 10.6 too).
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000478 'targets': [
479 {
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000480 'target_name': 'libjingle_peerconnection_objc_test',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000481 'variables': {
482 'infoplist_file': './app/webrtc/objctests/Info.plist',
483 },
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000484 'type': 'executable',
485 'mac_bundle': 1,
486 'mac_bundle_resources': [
487 '<(infoplist_file)',
488 ],
489 # The plist is listed above so that it appears in XCode's file list,
490 # but we don't actually want to bundle it.
491 'mac_bundle_resources!': [
492 '<(infoplist_file)',
493 ],
494 'xcode_settings': {
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000495 'CLANG_ENABLE_OBJC_ARC': 'YES',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000496 'INFOPLIST_FILE': '<(infoplist_file)',
497 },
498 'dependencies': [
499 'gunit',
500 'libjingle.gyp:libjingle_peerconnection_objc',
501 ],
502 'FRAMEWORK_SEARCH_PATHS': [
503 '$(inherited)',
504 '$(SDKROOT)/Developer/Library/Frameworks',
505 '$(DEVELOPER_LIBRARY_DIR)/Frameworks',
506 ],
507 'sources': [
508 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h',
509 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m',
510 'app/webrtc/objctests/RTCPeerConnectionTest.mm',
511 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h',
512 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m',
513 ],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000514 'conditions': [
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000515 ['OS=="mac" or OS=="ios"', {
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000516 'sources': [
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000517 # TODO(fischman): figure out if this works for ios or if it
518 # needs a GUI driver.
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000519 'app/webrtc/objctests/mac/main.mm',
520 ],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000521 }],
522 ],
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000523 }, # target libjingle_peerconnection_objc_test
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000524 ],
525 }],
kjellander@webrtc.orge6938182013-10-04 19:31:27 +0000526 ['test_isolation_mode != "noop"', {
527 'targets': [
528 {
529 'target_name': 'libjingle_media_unittest_run',
530 'type': 'none',
531 'dependencies': [
532 'libjingle_media_unittest',
533 ],
534 'includes': [
535 'build/isolate.gypi',
536 'libjingle_media_unittest.isolate',
537 ],
538 'sources': [
539 'libjingle_media_unittest.isolate',
540 ],
541 },
542 {
543 'target_name': 'libjingle_p2p_unittest_run',
544 'type': 'none',
545 'dependencies': [
546 'libjingle_p2p_unittest',
547 ],
548 'includes': [
549 'build/isolate.gypi',
550 'libjingle_p2p_unittest.isolate',
551 ],
552 'sources': [
553 'libjingle_p2p_unittest.isolate',
554 ],
555 },
556 {
557 'target_name': 'libjingle_peerconnection_unittest_run',
558 'type': 'none',
559 'dependencies': [
560 'libjingle_peerconnection_unittest',
561 ],
562 'includes': [
563 'build/isolate.gypi',
564 'libjingle_peerconnection_unittest.isolate',
565 ],
566 'sources': [
567 'libjingle_peerconnection_unittest.isolate',
568 ],
569 },
570 {
571 'target_name': 'libjingle_sound_unittest_run',
572 'type': 'none',
573 'dependencies': [
574 'libjingle_sound_unittest',
575 ],
576 'includes': [
577 'build/isolate.gypi',
578 'libjingle_sound_unittest.isolate',
579 ],
580 'sources': [
581 'libjingle_sound_unittest.isolate',
582 ],
583 },
584 {
585 'target_name': 'libjingle_unittest_run',
586 'type': 'none',
587 'dependencies': [
588 'libjingle_unittest',
589 ],
590 'includes': [
591 'build/isolate.gypi',
592 'libjingle_unittest.isolate',
593 ],
594 'sources': [
595 'libjingle_unittest.isolate',
596 ],
597 },
598 ],
599 }],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000600 ],
601}