henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | # |
| 2 | # libjingle |
jlmiller@webrtc.org | 5f93d0a | 2015-01-20 21:36:13 +0000 | [diff] [blame] | 3 | # Copyright 2012 Google Inc. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 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. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 26 | |
| 27 | { |
| 28 | 'includes': ['build/common.gypi'], |
| 29 | 'targets': [ |
| 30 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 31 | 'target_name': 'libjingle_unittest_main', |
| 32 | 'type': 'static_library', |
| 33 | 'dependencies': [ |
| 34 | '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 35 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
buildbot@webrtc.org | 55535d4 | 2014-07-08 18:18:55 +0000 | [diff] [blame] | 36 | '<@(libjingle_tests_additional_deps)', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 37 | ], |
| 38 | 'direct_dependent_settings': { |
| 39 | 'include_dirs': [ |
| 40 | '<(DEPTH)/third_party/libyuv/include', |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 +0000 | [diff] [blame] | 41 | '<(DEPTH)/testing/gtest/include', |
| 42 | '<(DEPTH)/testing/gtest', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 43 | ], |
| 44 | }, |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 +0000 | [diff] [blame] | 45 | 'include_dirs': [ |
| 46 | '<(DEPTH)/testing/gtest/include', |
| 47 | '<(DEPTH)/testing/gtest', |
| 48 | ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 49 | 'sources': [ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 50 | 'media/base/fakecapturemanager.h', |
| 51 | 'media/base/fakemediaengine.h', |
| 52 | 'media/base/fakemediaprocessor.h', |
| 53 | 'media/base/fakenetworkinterface.h', |
| 54 | 'media/base/fakertp.h', |
| 55 | 'media/base/fakevideocapturer.h', |
| 56 | 'media/base/fakevideorenderer.h', |
| 57 | 'media/base/nullvideoframe.h', |
| 58 | 'media/base/nullvideorenderer.h', |
| 59 | 'media/base/testutils.cc', |
| 60 | 'media/base/testutils.h', |
| 61 | 'media/devices/fakedevicemanager.h', |
wu@webrtc.org | 9caf276 | 2013-12-11 18:25:07 +0000 | [diff] [blame] | 62 | 'media/webrtc/dummyinstantiation.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 63 | 'media/webrtc/fakewebrtccommon.h', |
| 64 | 'media/webrtc/fakewebrtcdeviceinfo.h', |
| 65 | 'media/webrtc/fakewebrtcvcmfactory.h', |
| 66 | 'media/webrtc/fakewebrtcvideocapturemodule.h', |
| 67 | 'media/webrtc/fakewebrtcvideoengine.h', |
| 68 | 'media/webrtc/fakewebrtcvoiceengine.h', |
| 69 | ], |
| 70 | }, # target libjingle_unittest_main |
| 71 | { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 72 | 'target_name': 'libjingle_media_unittest', |
| 73 | 'type': 'executable', |
| 74 | 'dependencies': [ |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 75 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 76 | 'libjingle.gyp:libjingle_media', |
| 77 | 'libjingle_unittest_main', |
| 78 | ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 79 | 'sources': [ |
hbos@webrtc.org | 4aef5fe | 2015-02-25 10:09:05 +0000 | [diff] [blame] | 80 | 'media/base/capturemanager_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 81 | 'media/base/codec_unittest.cc', |
| 82 | 'media/base/filemediaengine_unittest.cc', |
| 83 | 'media/base/rtpdataengine_unittest.cc', |
| 84 | 'media/base/rtpdump_unittest.cc', |
| 85 | 'media/base/rtputils_unittest.cc', |
pbos@webrtc.org | 5301b0f | 2014-07-17 08:51:46 +0000 | [diff] [blame] | 86 | 'media/base/streamparams_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 87 | 'media/base/testutils.cc', |
| 88 | 'media/base/testutils.h', |
buildbot@webrtc.org | 4f0d401 | 2014-08-07 04:47:36 +0000 | [diff] [blame] | 89 | 'media/base/videoadapter_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 90 | 'media/base/videocapturer_unittest.cc', |
| 91 | 'media/base/videocommon_unittest.cc', |
| 92 | 'media/base/videoengine_unittest.h', |
| 93 | 'media/devices/dummydevicemanager_unittest.cc', |
| 94 | 'media/devices/filevideocapturer_unittest.cc', |
jiayl@webrtc.org | f8063d3 | 2014-06-18 21:30:40 +0000 | [diff] [blame] | 95 | 'media/sctp/sctpdataengine_unittest.cc', |
sprang@webrtc.org | 46d4d29 | 2014-12-23 15:19:35 +0000 | [diff] [blame] | 96 | 'media/webrtc/simulcast_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 97 | 'media/webrtc/webrtcpassthroughrender_unittest.cc', |
| 98 | 'media/webrtc/webrtcvideocapturer_unittest.cc', |
thorcarpenter@google.com | a3344cf | 2014-09-05 16:34:13 +0000 | [diff] [blame] | 99 | 'media/base/videoframe_unittest.h', |
| 100 | 'media/webrtc/webrtcvideoframe_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 101 | |
| 102 | # Disabled because some tests fail. |
| 103 | # TODO(ronghuawu): Reenable these tests. |
| 104 | # 'media/devices/devicemanager_unittest.cc', |
wu@webrtc.org | ca5ff99 | 2014-01-24 17:37:46 +0000 | [diff] [blame] | 105 | 'media/webrtc/webrtcvideoengine_unittest.cc', |
pbos@webrtc.org | b5a22b1 | 2014-05-13 11:07:01 +0000 | [diff] [blame] | 106 | 'media/webrtc/webrtcvideoengine2_unittest.cc', |
pbos@webrtc.org | 86f613d | 2014-06-10 08:53:05 +0000 | [diff] [blame] | 107 | 'media/webrtc/webrtcvideoengine2_unittest.h', |
wu@webrtc.org | ca5ff99 | 2014-01-24 17:37:46 +0000 | [diff] [blame] | 108 | 'media/webrtc/webrtcvoiceengine_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 109 | ], |
| 110 | 'conditions': [ |
| 111 | ['OS=="win"', { |
kjellander@webrtc.org | cbe7ca8 | 2015-01-06 07:24:27 +0000 | [diff] [blame] | 112 | 'conditions': [ |
| 113 | ['use_openssl==0', { |
| 114 | 'dependencies': [ |
| 115 | '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', |
| 116 | '<(DEPTH)/third_party/nss/nss.gyp:nspr', |
| 117 | '<(DEPTH)/third_party/nss/nss.gyp:nss', |
| 118 | ], |
| 119 | }], |
thorcarpenter@google.com | c1eebfa | 2014-09-19 17:54:00 +0000 | [diff] [blame] | 120 | ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 121 | 'msvs_settings': { |
| 122 | 'VCLinkerTool': { |
| 123 | 'AdditionalDependencies': [ |
| 124 | # TODO(ronghuawu): Since we've included strmiids in |
| 125 | # libjingle_media target, we shouldn't need this here. |
| 126 | # Find out why it doesn't work without this. |
| 127 | 'strmiids.lib', |
| 128 | ], |
| 129 | }, |
| 130 | }, |
| 131 | }], |
jiayl@webrtc.org | a576faf | 2014-01-29 17:45:53 +0000 | [diff] [blame] | 132 | ['OS=="ios"', { |
| 133 | 'sources!': [ |
| 134 | 'media/sctp/sctpdataengine_unittest.cc', |
| 135 | ], |
| 136 | }], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 137 | ], |
| 138 | }, # target libjingle_media_unittest |
| 139 | { |
| 140 | 'target_name': 'libjingle_p2p_unittest', |
| 141 | 'type': 'executable', |
| 142 | 'dependencies': [ |
| 143 | '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 144 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 145 | 'libjingle.gyp:libjingle', |
| 146 | 'libjingle.gyp:libjingle_p2p', |
| 147 | 'libjingle_unittest_main', |
| 148 | ], |
| 149 | 'include_dirs': [ |
| 150 | '<(DEPTH)/third_party/libsrtp/srtp', |
| 151 | ], |
| 152 | 'sources': [ |
buildbot@webrtc.org | 5ee0f05 | 2014-05-05 20:18:08 +0000 | [diff] [blame] | 153 | 'session/media/bundlefilter_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 154 | 'session/media/channel_unittest.cc', |
| 155 | 'session/media/channelmanager_unittest.cc', |
| 156 | 'session/media/currentspeakermonitor_unittest.cc', |
| 157 | 'session/media/mediarecorder_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 158 | 'session/media/mediasession_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 159 | 'session/media/rtcpmuxfilter_unittest.cc', |
| 160 | 'session/media/srtpfilter_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 161 | ], |
| 162 | 'conditions': [ |
| 163 | ['OS=="win"', { |
| 164 | 'msvs_settings': { |
| 165 | 'VCLinkerTool': { |
| 166 | 'AdditionalDependencies': [ |
| 167 | 'strmiids.lib', |
| 168 | ], |
| 169 | }, |
| 170 | }, |
| 171 | }], |
| 172 | ], |
| 173 | }, # target libjingle_p2p_unittest |
| 174 | { |
| 175 | 'target_name': 'libjingle_peerconnection_unittest', |
| 176 | 'type': 'executable', |
| 177 | 'dependencies': [ |
xians@webrtc.org | 4cb0128 | 2014-06-12 14:57:05 +0000 | [diff] [blame] | 178 | '<(DEPTH)/testing/gmock.gyp:gmock', |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 179 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 180 | '<(webrtc_root)/common.gyp:webrtc_common', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 181 | 'libjingle.gyp:libjingle', |
| 182 | 'libjingle.gyp:libjingle_p2p', |
| 183 | 'libjingle.gyp:libjingle_peerconnection', |
| 184 | 'libjingle_unittest_main', |
| 185 | ], |
xians@webrtc.org | 4cb0128 | 2014-06-12 14:57:05 +0000 | [diff] [blame] | 186 | 'direct_dependent_settings': { |
| 187 | 'include_dirs': [ |
| 188 | '<(DEPTH)/testing/gmock/include', |
| 189 | ], |
| 190 | }, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 191 | 'sources': [ |
jiayl@webrtc.org | 5dc51fb | 2014-05-29 15:33:54 +0000 | [diff] [blame] | 192 | 'app/webrtc/datachannel_unittest.cc', |
jiayl@webrtc.org | 2548406 | 2015-02-18 23:58:16 +0000 | [diff] [blame] | 193 | 'app/webrtc/dtlsidentitystore_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 194 | 'app/webrtc/dtmfsender_unittest.cc', |
| 195 | 'app/webrtc/jsepsessiondescription_unittest.cc', |
| 196 | 'app/webrtc/localaudiosource_unittest.cc', |
xians@webrtc.org | 4cb0128 | 2014-06-12 14:57:05 +0000 | [diff] [blame] | 197 | 'app/webrtc/mediastream_unittest.cc', |
| 198 | 'app/webrtc/mediastreamhandler_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 199 | 'app/webrtc/mediastreamsignaling_unittest.cc', |
| 200 | 'app/webrtc/peerconnection_unittest.cc', |
wu@webrtc.org | 364f204 | 2013-11-20 21:49:41 +0000 | [diff] [blame] | 201 | 'app/webrtc/peerconnectionendtoend_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 202 | 'app/webrtc/peerconnectionfactory_unittest.cc', |
| 203 | 'app/webrtc/peerconnectioninterface_unittest.cc', |
| 204 | # 'app/webrtc/peerconnectionproxy_unittest.cc', |
wu@webrtc.org | 967bfff | 2013-09-19 05:49:50 +0000 | [diff] [blame] | 205 | 'app/webrtc/remotevideocapturer_unittest.cc', |
henrika@webrtc.org | aebb1ad | 2014-01-14 10:00:58 +0000 | [diff] [blame] | 206 | 'app/webrtc/sctputils.cc', |
xians@webrtc.org | 4cb0128 | 2014-06-12 14:57:05 +0000 | [diff] [blame] | 207 | 'app/webrtc/statscollector_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 208 | 'app/webrtc/test/fakeaudiocapturemodule.cc', |
| 209 | 'app/webrtc/test/fakeaudiocapturemodule.h', |
| 210 | 'app/webrtc/test/fakeaudiocapturemodule_unittest.cc', |
| 211 | 'app/webrtc/test/fakeconstraints.h', |
wu@webrtc.org | cecfd18 | 2013-10-30 05:18:12 +0000 | [diff] [blame] | 212 | 'app/webrtc/test/fakedatachannelprovider.h', |
wu@webrtc.org | 91053e7 | 2013-08-10 07:18:04 +0000 | [diff] [blame] | 213 | 'app/webrtc/test/fakedtlsidentityservice.h', |
| 214 | 'app/webrtc/test/fakemediastreamsignaling.h', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 215 | 'app/webrtc/test/fakeperiodicvideocapturer.h', |
| 216 | 'app/webrtc/test/fakevideotrackrenderer.h', |
| 217 | 'app/webrtc/test/mockpeerconnectionobservers.h', |
wu@webrtc.org | 364f204 | 2013-11-20 21:49:41 +0000 | [diff] [blame] | 218 | 'app/webrtc/test/peerconnectiontestwrapper.h', |
| 219 | 'app/webrtc/test/peerconnectiontestwrapper.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 220 | 'app/webrtc/test/testsdpstrings.h', |
wu@webrtc.org | 967bfff | 2013-09-19 05:49:50 +0000 | [diff] [blame] | 221 | 'app/webrtc/videosource_unittest.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 222 | 'app/webrtc/videotrack_unittest.cc', |
| 223 | 'app/webrtc/webrtcsdp_unittest.cc', |
| 224 | 'app/webrtc/webrtcsession_unittest.cc', |
| 225 | ], |
xians@webrtc.org | 4cb0128 | 2014-06-12 14:57:05 +0000 | [diff] [blame] | 226 | 'conditions': [ |
| 227 | ['OS=="android"', { |
| 228 | # We want gmock features that use tr1::tuple, but we currently |
| 229 | # don't support the variadic templates used by libstdc++'s |
| 230 | # implementation. gmock supports this scenario by providing its |
| 231 | # own implementation but we must opt in to it. |
| 232 | 'defines': [ |
| 233 | 'GTEST_USE_OWN_TR1_TUPLE=1', |
| 234 | # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. |
| 235 | # gmock r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 |
| 236 | # automatically on android, so it has to be set explicitly here. |
| 237 | 'GTEST_HAS_TR1_TUPLE=1', |
| 238 | ], |
| 239 | }], |
| 240 | ], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 241 | }, # target libjingle_peerconnection_unittest |
| 242 | ], |
| 243 | 'conditions': [ |
wu@webrtc.org | 9dba525 | 2013-08-05 20:36:57 +0000 | [diff] [blame] | 244 | ['OS=="linux"', { |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 245 | 'targets': [ |
| 246 | { |
| 247 | 'target_name': 'libjingle_peerconnection_test_jar', |
| 248 | 'type': 'none', |
| 249 | 'actions': [ |
| 250 | { |
| 251 | 'variables': { |
| 252 | 'java_src_dir': 'app/webrtc/javatests/src', |
| 253 | 'java_files': [ |
perkj@webrtc.org | 2faf7ee | 2014-11-26 07:35:37 +0000 | [diff] [blame] | 254 | 'app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.java', |
| 255 | 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTestJava.java', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 256 | ], |
| 257 | }, |
| 258 | 'action_name': 'create_jar', |
| 259 | 'inputs': [ |
| 260 | 'build/build_jar.sh', |
| 261 | '<@(java_files)', |
| 262 | '<(PRODUCT_DIR)/libjingle_peerconnection.jar', |
perkj@webrtc.org | 9baa9ca | 2015-02-06 16:08:57 +0000 | [diff] [blame] | 263 | '<(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 264 | '<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 265 | ], |
| 266 | 'outputs': [ |
| 267 | '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar', |
| 268 | ], |
| 269 | 'action': [ |
fischman@webrtc.org | 85f07f5 | 2013-07-30 18:11:07 +0000 | [diff] [blame] | 270 | 'build/build_jar.sh', '<(java_home)', '<@(_outputs)', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 271 | '<(INTERMEDIATE_DIR)', |
| 272 | '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 273 | '<@(java_files)' |
| 274 | ], |
| 275 | }, |
| 276 | ], |
| 277 | }, |
| 278 | { |
| 279 | 'target_name': 'libjingle_peerconnection_java_unittest', |
| 280 | 'type': 'none', |
| 281 | 'actions': [ |
| 282 | { |
| 283 | 'action_name': 'copy libjingle_peerconnection_java_unittest', |
| 284 | 'inputs': [ |
| 285 | 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh', |
| 286 | '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar', |
| 287 | '<(DEPTH)/third_party/junit/junit-4.11.jar', |
| 288 | ], |
| 289 | 'outputs': [ |
| 290 | '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest', |
| 291 | ], |
| 292 | 'action': [ |
| 293 | 'bash', '-c', |
| 294 | 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && ' |
| 295 | 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" ' |
| 296 | '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh ' |
| 297 | '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && ' |
| 298 | 'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && ' |
| 299 | 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest' |
| 300 | ], |
| 301 | }, |
| 302 | ], |
| 303 | }, |
| 304 | ], |
| 305 | }], |
perkj@webrtc.org | 2faf7ee | 2014-11-26 07:35:37 +0000 | [diff] [blame] | 306 | ['OS=="android"', { |
| 307 | 'targets': [ |
| 308 | { |
| 309 | 'target_name': 'libjingle_peerconnection_android_unittest', |
| 310 | 'type': 'none', |
| 311 | 'dependencies': [ |
perkj@webrtc.org | 128faba | 2014-12-11 12:25:57 +0000 | [diff] [blame] | 312 | 'libjingle.gyp:libjingle_peerconnection_java', |
perkj@webrtc.org | 2faf7ee | 2014-11-26 07:35:37 +0000 | [diff] [blame] | 313 | ], |
perkj@webrtc.org | 128faba | 2014-12-11 12:25:57 +0000 | [diff] [blame] | 314 | 'variables': { |
| 315 | 'apk_name': 'libjingle_peerconnection_android_unittest', |
| 316 | 'java_in_dir': 'app/webrtc/androidtests', |
| 317 | 'resource_dir': 'app/webrtc/androidtests/res', |
| 318 | 'additional_src_dirs': ['app/webrtc/java/testcommon'], |
| 319 | 'native_lib_target': 'libjingle_peerconnection_so', |
| 320 | 'is_test_apk': 1, |
| 321 | }, |
| 322 | 'includes': [ '../build/java_apk.gypi' ], |
| 323 | }, |
perkj@webrtc.org | 2faf7ee | 2014-11-26 07:35:37 +0000 | [diff] [blame] | 324 | ], # targets |
| 325 | }], # OS=="android" |
fischman@webrtc.org | e3de6b1 | 2013-08-26 19:31:21 +0000 | [diff] [blame] | 326 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', { |
| 327 | # The >=10.7 above is required to make ARC link cleanly (e.g. as |
| 328 | # opposed to _compile_ cleanly, which the library under test |
| 329 | # does just fine on 10.6 too). |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 330 | 'targets': [ |
| 331 | { |
fischman@webrtc.org | a86c42c | 2014-04-29 18:37:29 +0000 | [diff] [blame] | 332 | 'target_name': 'libjingle_peerconnection_objc_test', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 333 | 'type': 'executable', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 334 | 'includes': [ 'build/objc_app.gypi' ], |
fischman@webrtc.org | a86c42c | 2014-04-29 18:37:29 +0000 | [diff] [blame] | 335 | 'dependencies': [ |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 +0000 | [diff] [blame] | 336 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
fischman@webrtc.org | a86c42c | 2014-04-29 18:37:29 +0000 | [diff] [blame] | 337 | 'libjingle.gyp:libjingle_peerconnection_objc', |
| 338 | ], |
| 339 | 'sources': [ |
| 340 | 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h', |
| 341 | 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m', |
| 342 | 'app/webrtc/objctests/RTCPeerConnectionTest.mm', |
| 343 | 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h', |
| 344 | 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m', |
| 345 | # TODO(fischman): figure out if this works for ios or if it |
| 346 | # needs a GUI driver. |
| 347 | 'app/webrtc/objctests/mac/main.mm', |
| 348 | ], |
tkchin@webrtc.org | ff27332 | 2014-04-30 18:32:33 +0000 | [diff] [blame] | 349 | 'conditions': [ |
| 350 | ['OS=="mac"', { |
| 351 | 'xcode_settings': { |
| 352 | # Need to build against 10.7 framework for full ARC support |
| 353 | # on OSX. |
| 354 | 'MACOSX_DEPLOYMENT_TARGET' : '10.7', |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 355 | # common.gypi enables this for mac but we want this to be |
| 356 | # disabled like it is for ios. |
| 357 | 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', |
tkchin@webrtc.org | ff27332 | 2014-04-30 18:32:33 +0000 | [diff] [blame] | 358 | }, |
| 359 | }], |
| 360 | ], |
fischman@webrtc.org | e3de6b1 | 2013-08-26 19:31:21 +0000 | [diff] [blame] | 361 | }, # target libjingle_peerconnection_objc_test |
tkchin@webrtc.org | 3a63a3c | 2015-01-06 07:21:34 +0000 | [diff] [blame] | 362 | { |
| 363 | 'target_name': 'apprtc_signaling_gunit_test', |
| 364 | 'type': 'executable', |
| 365 | 'includes': [ 'build/objc_app.gypi' ], |
| 366 | 'dependencies': [ |
| 367 | '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
| 368 | '<(DEPTH)/third_party/ocmock/ocmock.gyp:ocmock', |
| 369 | 'libjingle_examples.gyp:apprtc_signaling', |
| 370 | ], |
| 371 | 'sources': [ |
| 372 | 'app/webrtc/objctests/mac/main.mm', |
| 373 | 'examples/objc/AppRTCDemo/tests/ARDAppClientTest.mm', |
| 374 | ], |
| 375 | 'conditions': [ |
| 376 | ['OS=="mac"', { |
| 377 | 'xcode_settings': { |
| 378 | 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
| 379 | }, |
| 380 | }], |
| 381 | ], |
| 382 | }, # target apprtc_signaling_gunit_test |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 383 | ], |
| 384 | }], |
kjellander@webrtc.org | e693818 | 2013-10-04 19:31:27 +0000 | [diff] [blame] | 385 | ['test_isolation_mode != "noop"', { |
| 386 | 'targets': [ |
| 387 | { |
| 388 | 'target_name': 'libjingle_media_unittest_run', |
| 389 | 'type': 'none', |
| 390 | 'dependencies': [ |
| 391 | 'libjingle_media_unittest', |
| 392 | ], |
| 393 | 'includes': [ |
| 394 | 'build/isolate.gypi', |
kjellander@webrtc.org | e693818 | 2013-10-04 19:31:27 +0000 | [diff] [blame] | 395 | ], |
| 396 | 'sources': [ |
| 397 | 'libjingle_media_unittest.isolate', |
| 398 | ], |
| 399 | }, |
| 400 | { |
| 401 | 'target_name': 'libjingle_p2p_unittest_run', |
| 402 | 'type': 'none', |
| 403 | 'dependencies': [ |
| 404 | 'libjingle_p2p_unittest', |
| 405 | ], |
| 406 | 'includes': [ |
| 407 | 'build/isolate.gypi', |
kjellander@webrtc.org | e693818 | 2013-10-04 19:31:27 +0000 | [diff] [blame] | 408 | ], |
| 409 | 'sources': [ |
| 410 | 'libjingle_p2p_unittest.isolate', |
| 411 | ], |
| 412 | }, |
| 413 | { |
| 414 | 'target_name': 'libjingle_peerconnection_unittest_run', |
| 415 | 'type': 'none', |
| 416 | 'dependencies': [ |
| 417 | 'libjingle_peerconnection_unittest', |
| 418 | ], |
| 419 | 'includes': [ |
| 420 | 'build/isolate.gypi', |
kjellander@webrtc.org | e693818 | 2013-10-04 19:31:27 +0000 | [diff] [blame] | 421 | ], |
| 422 | 'sources': [ |
| 423 | 'libjingle_peerconnection_unittest.isolate', |
| 424 | ], |
| 425 | }, |
kjellander@webrtc.org | e693818 | 2013-10-04 19:31:27 +0000 | [diff] [blame] | 426 | ], |
| 427 | }], |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 428 | ], |
| 429 | } |