blob: 9987ed8a498b1df5d9f45fe6d7e3b6c813581802 [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',
jiayl@webrtc.orga576faf2014-01-29 17:45:53 +0000282 # TODO(jiayl): Enable the SCTP test once the memcheck and tsan bots
283 # failures are fixed (issue 2846).
284 #'media/sctp/sctpdataengine_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000285 'media/webrtc/webrtcpassthroughrender_unittest.cc',
286 'media/webrtc/webrtcvideocapturer_unittest.cc',
287 # Omitted because depends on non-open-source testdata files.
288 # 'media/base/videoframe_unittest.h',
289 # 'media/webrtc/webrtcvideoframe_unittest.cc',
290
291 # Disabled because some tests fail.
292 # TODO(ronghuawu): Reenable these tests.
293 # 'media/devices/devicemanager_unittest.cc',
wu@webrtc.orgca5ff992014-01-24 17:37:46 +0000294 'media/webrtc/webrtcvideoengine_unittest.cc',
295 'media/webrtc/webrtcvoiceengine_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000296 ],
297 'conditions': [
298 ['OS=="win"', {
299 'msvs_settings': {
300 'VCLinkerTool': {
301 'AdditionalDependencies': [
302 # TODO(ronghuawu): Since we've included strmiids in
303 # libjingle_media target, we shouldn't need this here.
304 # Find out why it doesn't work without this.
305 'strmiids.lib',
306 ],
307 },
308 },
309 }],
jiayl@webrtc.orga576faf2014-01-29 17:45:53 +0000310 ['OS=="ios"', {
311 'sources!': [
312 'media/sctp/sctpdataengine_unittest.cc',
313 ],
314 }],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000315 ],
316 }, # target libjingle_media_unittest
317 {
318 'target_name': 'libjingle_p2p_unittest',
319 'type': 'executable',
320 'dependencies': [
321 '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
322 'gunit',
323 'libjingle.gyp:libjingle',
324 'libjingle.gyp:libjingle_p2p',
325 'libjingle_unittest_main',
326 ],
327 'include_dirs': [
328 '<(DEPTH)/third_party/libsrtp/srtp',
329 ],
330 'sources': [
331 'p2p/base/dtlstransportchannel_unittest.cc',
332 'p2p/base/fakesession.h',
333 'p2p/base/p2ptransportchannel_unittest.cc',
334 'p2p/base/port_unittest.cc',
335 'p2p/base/portallocatorsessionproxy_unittest.cc',
336 'p2p/base/pseudotcp_unittest.cc',
337 'p2p/base/relayport_unittest.cc',
338 'p2p/base/relayserver_unittest.cc',
339 'p2p/base/session_unittest.cc',
340 'p2p/base/stun_unittest.cc',
341 'p2p/base/stunport_unittest.cc',
342 'p2p/base/stunrequest_unittest.cc',
343 'p2p/base/stunserver_unittest.cc',
344 'p2p/base/testrelayserver.h',
345 'p2p/base/teststunserver.h',
346 'p2p/base/testturnserver.h',
347 'p2p/base/transport_unittest.cc',
348 'p2p/base/transportdescriptionfactory_unittest.cc',
349 'p2p/client/connectivitychecker_unittest.cc',
350 'p2p/client/fakeportallocator.h',
351 'p2p/client/portallocator_unittest.cc',
352 'session/media/channel_unittest.cc',
353 'session/media/channelmanager_unittest.cc',
354 'session/media/currentspeakermonitor_unittest.cc',
355 'session/media/mediarecorder_unittest.cc',
356 'session/media/mediamessages_unittest.cc',
357 'session/media/mediasession_unittest.cc',
358 'session/media/mediasessionclient_unittest.cc',
359 'session/media/rtcpmuxfilter_unittest.cc',
360 'session/media/srtpfilter_unittest.cc',
361 'session/media/ssrcmuxfilter_unittest.cc',
362 ],
363 'conditions': [
364 ['OS=="win"', {
365 'msvs_settings': {
366 'VCLinkerTool': {
367 'AdditionalDependencies': [
368 'strmiids.lib',
369 ],
370 },
371 },
372 }],
373 ],
374 }, # target libjingle_p2p_unittest
375 {
376 'target_name': 'libjingle_peerconnection_unittest',
377 'type': 'executable',
378 'dependencies': [
379 'gunit',
380 'libjingle.gyp:libjingle',
381 'libjingle.gyp:libjingle_p2p',
382 'libjingle.gyp:libjingle_peerconnection',
383 'libjingle_unittest_main',
384 ],
385 # TODO(ronghuawu): Reenable below unit tests that require gmock.
386 'sources': [
sergeyu@chromium.org183c7272013-11-13 22:59:20 +0000387 # 'app/webrtc/datachannel_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000388 'app/webrtc/dtmfsender_unittest.cc',
389 'app/webrtc/jsepsessiondescription_unittest.cc',
390 'app/webrtc/localaudiosource_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000391 # 'app/webrtc/mediastream_unittest.cc',
392 # 'app/webrtc/mediastreamhandler_unittest.cc',
393 'app/webrtc/mediastreamsignaling_unittest.cc',
394 'app/webrtc/peerconnection_unittest.cc',
wu@webrtc.org364f2042013-11-20 21:49:41 +0000395 'app/webrtc/peerconnectionendtoend_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000396 'app/webrtc/peerconnectionfactory_unittest.cc',
397 'app/webrtc/peerconnectioninterface_unittest.cc',
398 # 'app/webrtc/peerconnectionproxy_unittest.cc',
wu@webrtc.org967bfff2013-09-19 05:49:50 +0000399 'app/webrtc/remotevideocapturer_unittest.cc',
henrika@webrtc.orgaebb1ad2014-01-14 10:00:58 +0000400 'app/webrtc/sctputils.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000401 'app/webrtc/test/fakeaudiocapturemodule.cc',
402 'app/webrtc/test/fakeaudiocapturemodule.h',
403 'app/webrtc/test/fakeaudiocapturemodule_unittest.cc',
404 'app/webrtc/test/fakeconstraints.h',
wu@webrtc.orgcecfd182013-10-30 05:18:12 +0000405 'app/webrtc/test/fakedatachannelprovider.h',
wu@webrtc.org91053e72013-08-10 07:18:04 +0000406 'app/webrtc/test/fakedtlsidentityservice.h',
407 'app/webrtc/test/fakemediastreamsignaling.h',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000408 'app/webrtc/test/fakeperiodicvideocapturer.h',
409 'app/webrtc/test/fakevideotrackrenderer.h',
410 'app/webrtc/test/mockpeerconnectionobservers.h',
wu@webrtc.org364f2042013-11-20 21:49:41 +0000411 'app/webrtc/test/peerconnectiontestwrapper.h',
412 'app/webrtc/test/peerconnectiontestwrapper.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000413 'app/webrtc/test/testsdpstrings.h',
wu@webrtc.org967bfff2013-09-19 05:49:50 +0000414 'app/webrtc/videosource_unittest.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000415 'app/webrtc/videotrack_unittest.cc',
416 'app/webrtc/webrtcsdp_unittest.cc',
417 'app/webrtc/webrtcsession_unittest.cc',
418 ],
419 }, # target libjingle_peerconnection_unittest
420 ],
421 'conditions': [
wu@webrtc.org9dba5252013-08-05 20:36:57 +0000422 ['OS=="linux"', {
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000423 'targets': [
424 {
425 'target_name': 'libjingle_peerconnection_test_jar',
426 'type': 'none',
427 'actions': [
428 {
429 'variables': {
430 'java_src_dir': 'app/webrtc/javatests/src',
431 'java_files': [
432 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTest.java',
433 ],
434 },
435 'action_name': 'create_jar',
436 'inputs': [
437 'build/build_jar.sh',
438 '<@(java_files)',
439 '<(PRODUCT_DIR)/libjingle_peerconnection.jar',
440 '<(DEPTH)/third_party/junit/junit-4.11.jar',
441 ],
442 'outputs': [
443 '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar',
444 ],
445 'action': [
fischman@webrtc.org85f07f52013-07-30 18:11:07 +0000446 'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000447 '<(INTERMEDIATE_DIR)',
448 '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar',
449 '<@(java_files)'
450 ],
451 },
452 ],
453 },
454 {
455 'target_name': 'libjingle_peerconnection_java_unittest',
456 'type': 'none',
457 'actions': [
458 {
459 'action_name': 'copy libjingle_peerconnection_java_unittest',
460 'inputs': [
461 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh',
462 '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar',
463 '<(DEPTH)/third_party/junit/junit-4.11.jar',
464 ],
465 'outputs': [
466 '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest',
467 ],
468 'action': [
469 'bash', '-c',
470 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
471 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" '
472 '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh '
473 '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
474 'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && '
475 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest'
476 ],
477 },
478 ],
479 },
480 ],
481 }],
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000482 ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', {
483 # The >=10.7 above is required to make ARC link cleanly (e.g. as
484 # opposed to _compile_ cleanly, which the library under test
485 # does just fine on 10.6 too).
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000486 'targets': [
487 {
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000488 'target_name': 'libjingle_peerconnection_objc_test',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000489 'variables': {
490 'infoplist_file': './app/webrtc/objctests/Info.plist',
491 },
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000492 'type': 'executable',
493 'mac_bundle': 1,
494 'mac_bundle_resources': [
495 '<(infoplist_file)',
496 ],
497 # The plist is listed above so that it appears in XCode's file list,
498 # but we don't actually want to bundle it.
499 'mac_bundle_resources!': [
500 '<(infoplist_file)',
501 ],
502 'xcode_settings': {
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000503 'CLANG_ENABLE_OBJC_ARC': 'YES',
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000504 'INFOPLIST_FILE': '<(infoplist_file)',
505 },
506 'dependencies': [
507 'gunit',
508 'libjingle.gyp:libjingle_peerconnection_objc',
509 ],
510 'FRAMEWORK_SEARCH_PATHS': [
511 '$(inherited)',
512 '$(SDKROOT)/Developer/Library/Frameworks',
513 '$(DEVELOPER_LIBRARY_DIR)/Frameworks',
514 ],
515 'sources': [
516 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h',
517 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m',
518 'app/webrtc/objctests/RTCPeerConnectionTest.mm',
519 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h',
520 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m',
521 ],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000522 'conditions': [
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000523 ['OS=="mac" or OS=="ios"', {
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000524 'sources': [
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000525 # TODO(fischman): figure out if this works for ios or if it
526 # needs a GUI driver.
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000527 'app/webrtc/objctests/mac/main.mm',
528 ],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000529 }],
530 ],
fischman@webrtc.orge3de6b12013-08-26 19:31:21 +0000531 }, # target libjingle_peerconnection_objc_test
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000532 ],
533 }],
kjellander@webrtc.orge6938182013-10-04 19:31:27 +0000534 ['test_isolation_mode != "noop"', {
535 'targets': [
536 {
537 'target_name': 'libjingle_media_unittest_run',
538 'type': 'none',
539 'dependencies': [
540 'libjingle_media_unittest',
541 ],
542 'includes': [
543 'build/isolate.gypi',
544 'libjingle_media_unittest.isolate',
545 ],
546 'sources': [
547 'libjingle_media_unittest.isolate',
548 ],
549 },
550 {
551 'target_name': 'libjingle_p2p_unittest_run',
552 'type': 'none',
553 'dependencies': [
554 'libjingle_p2p_unittest',
555 ],
556 'includes': [
557 'build/isolate.gypi',
558 'libjingle_p2p_unittest.isolate',
559 ],
560 'sources': [
561 'libjingle_p2p_unittest.isolate',
562 ],
563 },
564 {
565 'target_name': 'libjingle_peerconnection_unittest_run',
566 'type': 'none',
567 'dependencies': [
568 'libjingle_peerconnection_unittest',
569 ],
570 'includes': [
571 'build/isolate.gypi',
572 'libjingle_peerconnection_unittest.isolate',
573 ],
574 'sources': [
575 'libjingle_peerconnection_unittest.isolate',
576 ],
577 },
578 {
579 'target_name': 'libjingle_sound_unittest_run',
580 'type': 'none',
581 'dependencies': [
582 'libjingle_sound_unittest',
583 ],
584 'includes': [
585 'build/isolate.gypi',
586 'libjingle_sound_unittest.isolate',
587 ],
588 'sources': [
589 'libjingle_sound_unittest.isolate',
590 ],
591 },
592 {
593 'target_name': 'libjingle_unittest_run',
594 'type': 'none',
595 'dependencies': [
596 'libjingle_unittest',
597 ],
598 'includes': [
599 'build/isolate.gypi',
600 'libjingle_unittest.isolate',
601 ],
602 'sources': [
603 'libjingle_unittest.isolate',
604 ],
605 },
606 ],
607 }],
henrike@webrtc.org28e20752013-07-10 00:45:36 +0000608 ],
609}