2013-07-10 02:45:36 +02:00
|
|
|
#
|
|
|
|
# libjingle
|
|
|
|
# Copyright 2012, Google Inc.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
|
|
# and/or other materials provided with the distribution.
|
|
|
|
# 3. The name of the author may not be used to endorse or promote products
|
|
|
|
# derived from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
|
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
|
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
|
|
|
{
|
|
|
|
'includes': ['build/common.gypi'],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_unittest_main',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2014-07-08 20:18:55 +02:00
|
|
|
'<@(libjingle_tests_additional_deps)',
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'<(DEPTH)/third_party/libyuv/include',
|
2014-07-29 19:36:52 +02:00
|
|
|
'<(DEPTH)/testing/gtest/include',
|
|
|
|
'<(DEPTH)/testing/gtest',
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
},
|
2014-07-29 19:36:52 +02:00
|
|
|
'include_dirs': [
|
|
|
|
'<(DEPTH)/testing/gtest/include',
|
|
|
|
'<(DEPTH)/testing/gtest',
|
|
|
|
],
|
2013-07-10 02:45:36 +02:00
|
|
|
'sources': [
|
|
|
|
'media/base/fakecapturemanager.h',
|
|
|
|
'media/base/fakemediaengine.h',
|
|
|
|
'media/base/fakemediaprocessor.h',
|
|
|
|
'media/base/fakenetworkinterface.h',
|
|
|
|
'media/base/fakertp.h',
|
|
|
|
'media/base/fakevideocapturer.h',
|
|
|
|
'media/base/fakevideorenderer.h',
|
|
|
|
'media/base/nullvideoframe.h',
|
|
|
|
'media/base/nullvideorenderer.h',
|
|
|
|
'media/base/testutils.cc',
|
|
|
|
'media/base/testutils.h',
|
|
|
|
'media/devices/fakedevicemanager.h',
|
2013-12-11 19:25:07 +01:00
|
|
|
'media/webrtc/dummyinstantiation.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'media/webrtc/fakewebrtccommon.h',
|
|
|
|
'media/webrtc/fakewebrtcdeviceinfo.h',
|
|
|
|
'media/webrtc/fakewebrtcvcmfactory.h',
|
|
|
|
'media/webrtc/fakewebrtcvideocapturemodule.h',
|
|
|
|
'media/webrtc/fakewebrtcvideoengine.h',
|
|
|
|
'media/webrtc/fakewebrtcvoiceengine.h',
|
|
|
|
],
|
|
|
|
}, # target libjingle_unittest_main
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_unittest',
|
|
|
|
'type': 'executable',
|
2014-04-29 20:37:29 +02:00
|
|
|
'includes': [ 'build/ios_tests.gypi', ],
|
2013-07-10 02:45:36 +02:00
|
|
|
'dependencies': [
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base.gyp:rtc_base',
|
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2014-09-15 10:13:36 +02:00
|
|
|
'<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
|
2013-07-10 02:45:36 +02:00
|
|
|
'libjingle.gyp:libjingle',
|
|
|
|
'libjingle_unittest_main',
|
|
|
|
],
|
|
|
|
'sources': [
|
2014-10-18 00:03:39 +02:00
|
|
|
'xmpp/fakexmppclient.h',
|
|
|
|
'xmpp/hangoutpubsubclient_unittest.cc',
|
|
|
|
'xmpp/jid_unittest.cc',
|
|
|
|
'xmpp/mucroomconfigtask_unittest.cc',
|
|
|
|
'xmpp/mucroomdiscoverytask_unittest.cc',
|
|
|
|
'xmpp/mucroomlookuptask_unittest.cc',
|
|
|
|
'xmpp/mucroomuniquehangoutidtask_unittest.cc',
|
|
|
|
'xmpp/pingtask_unittest.cc',
|
|
|
|
'xmpp/pubsubclient_unittest.cc',
|
|
|
|
'xmpp/pubsubtasks_unittest.cc',
|
|
|
|
'xmpp/util_unittest.cc',
|
|
|
|
'xmpp/util_unittest.h',
|
|
|
|
'xmpp/xmppengine_unittest.cc',
|
|
|
|
'xmpp/xmpplogintask_unittest.cc',
|
|
|
|
'xmpp/xmppstanzaparser_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
], # sources
|
|
|
|
}, # target libjingle_unittest
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_media_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2013-07-10 02:45:36 +02:00
|
|
|
'libjingle.gyp:libjingle_media',
|
|
|
|
'libjingle_unittest_main',
|
|
|
|
],
|
|
|
|
# TODO(ronghuawu): Avoid the copies.
|
|
|
|
# https://code.google.com/p/libjingle/issues/detail?id=398
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(DEPTH)/../talk/media/testdata',
|
|
|
|
'files': [
|
|
|
|
'media/testdata/1.frame_plus_1.byte',
|
|
|
|
'media/testdata/captured-320x240-2s-48.frames',
|
|
|
|
'media/testdata/h264-svc-99-640x360.rtpdump',
|
|
|
|
'media/testdata/video.rtpdump',
|
|
|
|
'media/testdata/voice.rtpdump',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
# 'media/base/capturemanager_unittest.cc',
|
|
|
|
'media/base/codec_unittest.cc',
|
|
|
|
'media/base/filemediaengine_unittest.cc',
|
|
|
|
'media/base/rtpdataengine_unittest.cc',
|
|
|
|
'media/base/rtpdump_unittest.cc',
|
|
|
|
'media/base/rtputils_unittest.cc',
|
2014-07-17 10:51:46 +02:00
|
|
|
'media/base/streamparams_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'media/base/testutils.cc',
|
|
|
|
'media/base/testutils.h',
|
2014-08-07 06:47:36 +02:00
|
|
|
'media/base/videoadapter_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'media/base/videocapturer_unittest.cc',
|
|
|
|
'media/base/videocommon_unittest.cc',
|
|
|
|
'media/base/videoengine_unittest.h',
|
|
|
|
'media/devices/dummydevicemanager_unittest.cc',
|
|
|
|
'media/devices/filevideocapturer_unittest.cc',
|
2014-06-18 23:30:40 +02:00
|
|
|
'media/sctp/sctpdataengine_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'media/webrtc/webrtcpassthroughrender_unittest.cc',
|
|
|
|
'media/webrtc/webrtcvideocapturer_unittest.cc',
|
2014-09-05 18:34:13 +02:00
|
|
|
'media/base/videoframe_unittest.h',
|
|
|
|
'media/webrtc/webrtcvideoframe_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
|
|
|
|
# Disabled because some tests fail.
|
|
|
|
# TODO(ronghuawu): Reenable these tests.
|
|
|
|
# 'media/devices/devicemanager_unittest.cc',
|
2014-01-24 18:37:46 +01:00
|
|
|
'media/webrtc/webrtcvideoengine_unittest.cc',
|
2014-05-13 13:07:01 +02:00
|
|
|
'media/webrtc/webrtcvideoengine2_unittest.cc',
|
2014-06-10 10:53:05 +02:00
|
|
|
'media/webrtc/webrtcvideoengine2_unittest.h',
|
2014-01-24 18:37:46 +01:00
|
|
|
'media/webrtc/webrtcvoiceengine_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
2014-09-19 19:54:00 +02:00
|
|
|
'dependencies': [
|
|
|
|
'<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
|
|
|
|
'<(DEPTH)/third_party/nss/nss.gyp:nspr',
|
|
|
|
'<(DEPTH)/third_party/nss/nss.gyp:nss',
|
|
|
|
],
|
2013-07-10 02:45:36 +02:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
|
|
|
# TODO(ronghuawu): Since we've included strmiids in
|
|
|
|
# libjingle_media target, we shouldn't need this here.
|
|
|
|
# Find out why it doesn't work without this.
|
|
|
|
'strmiids.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2014-01-29 18:45:53 +01:00
|
|
|
['OS=="ios"', {
|
|
|
|
'sources!': [
|
|
|
|
'media/sctp/sctpdataengine_unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
}, # target libjingle_media_unittest
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_p2p_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2013-07-10 02:45:36 +02:00
|
|
|
'libjingle.gyp:libjingle',
|
|
|
|
'libjingle.gyp:libjingle_p2p',
|
|
|
|
'libjingle_unittest_main',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(DEPTH)/third_party/libsrtp/srtp',
|
|
|
|
],
|
|
|
|
'sources': [
|
2014-10-18 00:03:39 +02:00
|
|
|
'p2p/base/dtlstransportchannel_unittest.cc',
|
|
|
|
'p2p/base/fakesession.h',
|
|
|
|
'p2p/base/p2ptransportchannel_unittest.cc',
|
|
|
|
'p2p/base/port_unittest.cc',
|
|
|
|
'p2p/base/portallocatorsessionproxy_unittest.cc',
|
|
|
|
'p2p/base/pseudotcp_unittest.cc',
|
|
|
|
'p2p/base/relayport_unittest.cc',
|
|
|
|
'p2p/base/relayserver_unittest.cc',
|
|
|
|
'p2p/base/session_unittest.cc',
|
|
|
|
'p2p/base/stun_unittest.cc',
|
|
|
|
'p2p/base/stunport_unittest.cc',
|
|
|
|
'p2p/base/stunrequest_unittest.cc',
|
|
|
|
'p2p/base/stunserver_unittest.cc',
|
|
|
|
'p2p/base/testrelayserver.h',
|
|
|
|
'p2p/base/teststunserver.h',
|
|
|
|
'p2p/base/testturnserver.h',
|
|
|
|
'p2p/base/transport_unittest.cc',
|
|
|
|
'p2p/base/transportdescriptionfactory_unittest.cc',
|
|
|
|
'p2p/base/turnport_unittest.cc',
|
|
|
|
'p2p/client/connectivitychecker_unittest.cc',
|
|
|
|
'p2p/client/fakeportallocator.h',
|
|
|
|
'p2p/client/portallocator_unittest.cc',
|
2014-05-05 22:18:08 +02:00
|
|
|
'session/media/bundlefilter_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'session/media/channel_unittest.cc',
|
|
|
|
'session/media/channelmanager_unittest.cc',
|
|
|
|
'session/media/currentspeakermonitor_unittest.cc',
|
|
|
|
'session/media/mediarecorder_unittest.cc',
|
|
|
|
'session/media/mediamessages_unittest.cc',
|
|
|
|
'session/media/mediasession_unittest.cc',
|
|
|
|
'session/media/mediasessionclient_unittest.cc',
|
|
|
|
'session/media/rtcpmuxfilter_unittest.cc',
|
|
|
|
'session/media/srtpfilter_unittest.cc',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
|
|
|
'strmiids.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, # target libjingle_p2p_unittest
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_peerconnection_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2014-06-12 16:57:05 +02:00
|
|
|
'<(DEPTH)/testing/gmock.gyp:gmock',
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2013-07-10 02:45:36 +02:00
|
|
|
'libjingle.gyp:libjingle',
|
|
|
|
'libjingle.gyp:libjingle_p2p',
|
|
|
|
'libjingle.gyp:libjingle_peerconnection',
|
|
|
|
'libjingle_unittest_main',
|
|
|
|
],
|
2014-06-12 16:57:05 +02:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'<(DEPTH)/testing/gmock/include',
|
|
|
|
],
|
|
|
|
},
|
2013-07-10 02:45:36 +02:00
|
|
|
'sources': [
|
2014-05-29 17:33:54 +02:00
|
|
|
'app/webrtc/datachannel_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/dtmfsender_unittest.cc',
|
|
|
|
'app/webrtc/jsepsessiondescription_unittest.cc',
|
|
|
|
'app/webrtc/localaudiosource_unittest.cc',
|
2014-06-12 16:57:05 +02:00
|
|
|
'app/webrtc/mediastream_unittest.cc',
|
|
|
|
'app/webrtc/mediastreamhandler_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/mediastreamsignaling_unittest.cc',
|
|
|
|
'app/webrtc/peerconnection_unittest.cc',
|
2013-11-20 22:49:41 +01:00
|
|
|
'app/webrtc/peerconnectionendtoend_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/peerconnectionfactory_unittest.cc',
|
|
|
|
'app/webrtc/peerconnectioninterface_unittest.cc',
|
|
|
|
# 'app/webrtc/peerconnectionproxy_unittest.cc',
|
2013-09-19 07:49:50 +02:00
|
|
|
'app/webrtc/remotevideocapturer_unittest.cc',
|
2014-01-14 11:00:58 +01:00
|
|
|
'app/webrtc/sctputils.cc',
|
2014-06-12 16:57:05 +02:00
|
|
|
'app/webrtc/statscollector_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/test/fakeaudiocapturemodule.cc',
|
|
|
|
'app/webrtc/test/fakeaudiocapturemodule.h',
|
|
|
|
'app/webrtc/test/fakeaudiocapturemodule_unittest.cc',
|
|
|
|
'app/webrtc/test/fakeconstraints.h',
|
2013-10-30 06:18:12 +01:00
|
|
|
'app/webrtc/test/fakedatachannelprovider.h',
|
2013-08-10 09:18:04 +02:00
|
|
|
'app/webrtc/test/fakedtlsidentityservice.h',
|
|
|
|
'app/webrtc/test/fakemediastreamsignaling.h',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/test/fakeperiodicvideocapturer.h',
|
|
|
|
'app/webrtc/test/fakevideotrackrenderer.h',
|
|
|
|
'app/webrtc/test/mockpeerconnectionobservers.h',
|
2013-11-20 22:49:41 +01:00
|
|
|
'app/webrtc/test/peerconnectiontestwrapper.h',
|
|
|
|
'app/webrtc/test/peerconnectiontestwrapper.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/test/testsdpstrings.h',
|
2013-09-19 07:49:50 +02:00
|
|
|
'app/webrtc/videosource_unittest.cc',
|
2013-07-10 02:45:36 +02:00
|
|
|
'app/webrtc/videotrack_unittest.cc',
|
|
|
|
'app/webrtc/webrtcsdp_unittest.cc',
|
|
|
|
'app/webrtc/webrtcsession_unittest.cc',
|
|
|
|
],
|
2014-06-12 16:57:05 +02:00
|
|
|
'conditions': [
|
|
|
|
['OS=="android"', {
|
|
|
|
# We want gmock features that use tr1::tuple, but we currently
|
|
|
|
# don't support the variadic templates used by libstdc++'s
|
|
|
|
# implementation. gmock supports this scenario by providing its
|
|
|
|
# own implementation but we must opt in to it.
|
|
|
|
'defines': [
|
|
|
|
'GTEST_USE_OWN_TR1_TUPLE=1',
|
|
|
|
# GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set.
|
|
|
|
# gmock r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0
|
|
|
|
# automatically on android, so it has to be set explicitly here.
|
|
|
|
'GTEST_HAS_TR1_TUPLE=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2013-07-10 02:45:36 +02:00
|
|
|
}, # target libjingle_peerconnection_unittest
|
|
|
|
],
|
|
|
|
'conditions': [
|
2013-08-05 22:36:57 +02:00
|
|
|
['OS=="linux"', {
|
2013-07-10 02:45:36 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_peerconnection_test_jar',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'java_src_dir': 'app/webrtc/javatests/src',
|
|
|
|
'java_files': [
|
|
|
|
'app/webrtc/javatests/src/org/webrtc/PeerConnectionTest.java',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'action_name': 'create_jar',
|
|
|
|
'inputs': [
|
|
|
|
'build/build_jar.sh',
|
|
|
|
'<@(java_files)',
|
|
|
|
'<(PRODUCT_DIR)/libjingle_peerconnection.jar',
|
|
|
|
'<(DEPTH)/third_party/junit/junit-4.11.jar',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/libjingle_peerconnection_test.jar',
|
|
|
|
],
|
|
|
|
'action': [
|
2013-07-30 20:11:07 +02:00
|
|
|
'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
|
2013-07-10 02:45:36 +02:00
|
|
|
'<(INTERMEDIATE_DIR)',
|
|
|
|
'<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar',
|
|
|
|
'<@(java_files)'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_peerconnection_java_unittest',
|
|
|
|
'type': 'none',
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'copy libjingle_peerconnection_java_unittest',
|
|
|
|
'inputs': [
|
|
|
|
'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh',
|
|
|
|
'<(PRODUCT_DIR)/libjingle_peerconnection_test_jar',
|
|
|
|
'<(DEPTH)/third_party/junit/junit-4.11.jar',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'bash', '-c',
|
|
|
|
'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
|
|
|
|
'sed -e "s@GYP_JAVA_HOME@<(java_home)@" '
|
|
|
|
'< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh '
|
|
|
|
'> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
|
|
|
|
'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && '
|
|
|
|
'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2013-08-26 21:31:21 +02:00
|
|
|
['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', {
|
|
|
|
# The >=10.7 above is required to make ARC link cleanly (e.g. as
|
|
|
|
# opposed to _compile_ cleanly, which the library under test
|
|
|
|
# does just fine on 10.6 too).
|
2013-07-10 02:45:36 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
2014-04-29 20:37:29 +02:00
|
|
|
'target_name': 'libjingle_peerconnection_objc_test',
|
|
|
|
'type': 'executable',
|
|
|
|
'includes': [ 'build/ios_tests.gypi', ],
|
|
|
|
'dependencies': [
|
2014-09-10 19:28:19 +02:00
|
|
|
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
|
2014-04-29 20:37:29 +02:00
|
|
|
'libjingle.gyp:libjingle_peerconnection_objc',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h',
|
|
|
|
'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m',
|
|
|
|
'app/webrtc/objctests/RTCPeerConnectionTest.mm',
|
|
|
|
'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h',
|
|
|
|
'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m',
|
|
|
|
# TODO(fischman): figure out if this works for ios or if it
|
|
|
|
# needs a GUI driver.
|
|
|
|
'app/webrtc/objctests/mac/main.mm',
|
|
|
|
],
|
|
|
|
'FRAMEWORK_SEARCH_PATHS': [
|
|
|
|
'$(inherited)',
|
|
|
|
'$(SDKROOT)/Developer/Library/Frameworks',
|
|
|
|
'$(DEVELOPER_LIBRARY_DIR)/Frameworks',
|
|
|
|
],
|
|
|
|
|
|
|
|
# TODO(fischman): there is duplication here with
|
|
|
|
# build/ios_tests.gypi, because for historical reasons the
|
|
|
|
# mac x64 bots expect this unittest to be in a bundle
|
|
|
|
# directory (.app). Once the bots don't expect this
|
|
|
|
# anymore, remove this duplication.
|
2014-04-28 14:50:47 +02:00
|
|
|
'variables': {
|
2014-04-29 20:37:29 +02:00
|
|
|
'infoplist_file': 'build/ios_test.plist',
|
2014-04-28 14:50:47 +02:00
|
|
|
},
|
|
|
|
'mac_bundle': 1,
|
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<(infoplist_file)',
|
|
|
|
],
|
|
|
|
# The plist is listed above so that it appears in XCode's file list,
|
|
|
|
# but we don't actually want to bundle it.
|
|
|
|
'mac_bundle_resources!': [
|
|
|
|
'<(infoplist_file)',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
|
|
|
'CLANG_ENABLE_OBJC_ARC': 'YES',
|
2014-04-30 20:32:33 +02:00
|
|
|
# common.gypi enables this for mac but we want this to be disabled
|
|
|
|
# like it is for ios.
|
|
|
|
'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
|
2014-04-28 14:50:47 +02:00
|
|
|
'INFOPLIST_FILE': '<(infoplist_file)',
|
|
|
|
},
|
2014-04-30 20:32:33 +02:00
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
# Need to build against 10.7 framework for full ARC support
|
|
|
|
# on OSX.
|
|
|
|
'MACOSX_DEPLOYMENT_TARGET' : '10.7',
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2013-08-26 21:31:21 +02:00
|
|
|
}, # target libjingle_peerconnection_objc_test
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
}],
|
2013-10-04 21:31:27 +02:00
|
|
|
['test_isolation_mode != "noop"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_media_unittest_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'libjingle_media_unittest',
|
|
|
|
],
|
|
|
|
'includes': [
|
|
|
|
'build/isolate.gypi',
|
|
|
|
'libjingle_media_unittest.isolate',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'libjingle_media_unittest.isolate',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_p2p_unittest_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'libjingle_p2p_unittest',
|
|
|
|
],
|
|
|
|
'includes': [
|
|
|
|
'build/isolate.gypi',
|
|
|
|
'libjingle_p2p_unittest.isolate',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'libjingle_p2p_unittest.isolate',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'libjingle_peerconnection_unittest_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'libjingle_peerconnection_unittest',
|
|
|
|
],
|
|
|
|
'includes': [
|
|
|
|
'build/isolate.gypi',
|
|
|
|
'libjingle_peerconnection_unittest.isolate',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'libjingle_peerconnection_unittest.isolate',
|
|
|
|
],
|
|
|
|
},
|
2014-10-18 00:03:39 +02:00
|
|
|
{
|
|
|
|
'target_name': 'libjingle_unittest_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'libjingle_unittest',
|
|
|
|
],
|
|
|
|
'includes': [
|
|
|
|
'build/isolate.gypi',
|
|
|
|
'libjingle_unittest.isolate',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'libjingle_unittest.isolate',
|
|
|
|
],
|
|
|
|
},
|
2013-10-04 21:31:27 +02:00
|
|
|
],
|
|
|
|
}],
|
2013-07-10 02:45:36 +02:00
|
|
|
],
|
|
|
|
}
|