OLD | NEW |
1 # | 1 # |
2 # libjingle | 2 # libjingle |
3 # Copyright 2012 Google Inc. | 3 # Copyright 2012 Google Inc. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are met: | 6 # modification, are permitted provided that the following conditions are met: |
7 # | 7 # |
8 # 1. Redistributions of source code must retain the above copyright notice, | 8 # 1. Redistributions of source code must retain the above copyright notice, |
9 # this list of conditions and the following disclaimer. | 9 # this list of conditions and the following disclaimer. |
10 # 2. Redistributions in binary form must reproduce the above copyright notice, | 10 # 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 10 matching lines...) Expand all Loading... |
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 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, | 22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 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 | 24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | 26 |
27 { | 27 { |
28 'includes': ['build/common.gypi'], | 28 'includes': ['build/common.gypi'], |
29 'targets': [ | 29 'targets': [ |
30 { | 30 { |
31 'target_name': 'libjingle_unittest_main', | |
32 'type': 'static_library', | |
33 'dependencies': [ | |
34 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
35 '<@(libjingle_tests_additional_deps)', | |
36 ], | |
37 'direct_dependent_settings': { | |
38 'include_dirs': [ | |
39 '<(libyuv_dir)/include', | |
40 '<(DEPTH)/testing/gtest/include', | |
41 '<(DEPTH)/testing/gtest', | |
42 ], | |
43 }, | |
44 'conditions': [ | |
45 ['build_libyuv==1', { | |
46 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], | |
47 }], | |
48 ], | |
49 'include_dirs': [ | |
50 '<(DEPTH)/testing/gtest/include', | |
51 '<(DEPTH)/testing/gtest', | |
52 ], | |
53 'sources': [ | |
54 'media/base/fakecapturemanager.h', | |
55 'media/base/fakemediaengine.h', | |
56 'media/base/fakenetworkinterface.h', | |
57 'media/base/fakertp.h', | |
58 'media/base/fakevideocapturer.h', | |
59 'media/base/fakevideorenderer.h', | |
60 'media/base/testutils.cc', | |
61 'media/base/testutils.h', | |
62 'media/devices/fakedevicemanager.h', | |
63 'media/webrtc/fakewebrtccall.cc', | |
64 'media/webrtc/fakewebrtccall.h', | |
65 'media/webrtc/fakewebrtccommon.h', | |
66 'media/webrtc/fakewebrtcdeviceinfo.h', | |
67 'media/webrtc/fakewebrtcvcmfactory.h', | |
68 'media/webrtc/fakewebrtcvideocapturemodule.h', | |
69 'media/webrtc/fakewebrtcvideoengine.h', | |
70 'media/webrtc/fakewebrtcvoiceengine.h', | |
71 ], | |
72 }, # target libjingle_unittest_main | |
73 { | |
74 'target_name': 'libjingle_media_unittest', | |
75 'type': 'executable', | |
76 'dependencies': [ | |
77 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
78 'libjingle.gyp:libjingle_media', | |
79 'libjingle_unittest_main', | |
80 ], | |
81 'sources': [ | |
82 'media/base/capturemanager_unittest.cc', | |
83 'media/base/codec_unittest.cc', | |
84 'media/base/rtpdataengine_unittest.cc', | |
85 'media/base/rtpdump_unittest.cc', | |
86 'media/base/rtputils_unittest.cc', | |
87 'media/base/streamparams_unittest.cc', | |
88 'media/base/testutils.cc', | |
89 'media/base/testutils.h', | |
90 'media/base/turnutils_unittest.cc', | |
91 'media/base/videoadapter_unittest.cc', | |
92 'media/base/videocapturer_unittest.cc', | |
93 'media/base/videocommon_unittest.cc', | |
94 'media/base/videoengine_unittest.h', | |
95 'media/base/videoframe_unittest.h', | |
96 'media/devices/dummydevicemanager_unittest.cc', | |
97 'media/devices/filevideocapturer_unittest.cc', | |
98 'media/sctp/sctpdataengine_unittest.cc', | |
99 'media/webrtc/nullwebrtcvideoengine_unittest.cc', | |
100 'media/webrtc/simulcast_unittest.cc', | |
101 'media/webrtc/webrtcmediaengine_unittest.cc', | |
102 'media/webrtc/webrtcvideocapturer_unittest.cc', | |
103 'media/webrtc/webrtcvideoframe_unittest.cc', | |
104 'media/webrtc/webrtcvideoframefactory_unittest.cc', | |
105 # Disabled because some tests fail. | |
106 # TODO(ronghuawu): Reenable these tests. | |
107 # 'media/devices/devicemanager_unittest.cc', | |
108 'media/webrtc/webrtcvideoengine2_unittest.cc', | |
109 'media/webrtc/webrtcvoiceengine_unittest.cc', | |
110 ], | |
111 'conditions': [ | |
112 ['OS=="win"', { | |
113 'conditions': [ | |
114 ['use_openssl==0', { | |
115 'dependencies': [ | |
116 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', | |
117 '<(DEPTH)/third_party/nss/nss.gyp:nspr', | |
118 '<(DEPTH)/third_party/nss/nss.gyp:nss', | |
119 ], | |
120 }], | |
121 ], | |
122 'msvs_settings': { | |
123 'VCLinkerTool': { | |
124 'AdditionalDependencies': [ | |
125 # TODO(ronghuawu): Since we've included strmiids in | |
126 # libjingle_media target, we shouldn't need this here. | |
127 # Find out why it doesn't work without this. | |
128 'strmiids.lib', | |
129 ], | |
130 }, | |
131 }, | |
132 }], | |
133 ['OS=="win" and clang==1', { | |
134 'msvs_settings': { | |
135 'VCCLCompilerTool': { | |
136 'AdditionalOptions': [ | |
137 # Disable warnings failing when compiling with Clang on Windows. | |
138 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
139 '-Wno-unused-function', | |
140 ], | |
141 }, | |
142 }, | |
143 },], | |
144 ['OS=="ios"', { | |
145 'sources!': [ | |
146 'media/sctp/sctpdataengine_unittest.cc', | |
147 ], | |
148 }], | |
149 ], | |
150 }, # target libjingle_media_unittest | |
151 { | |
152 'target_name': 'libjingle_p2p_unittest', | 31 'target_name': 'libjingle_p2p_unittest', |
153 'type': 'executable', | 32 'type': 'executable', |
154 'dependencies': [ | 33 'dependencies': [ |
155 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | 34 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
156 'libjingle.gyp:libjingle', | 35 '<(webrtc_root)/webrtc.gyp:rtc_unittest_main', |
157 'libjingle.gyp:libjingle_peerconnection', | 36 'libjingle.gyp:libjingle_peerconnection', |
158 'libjingle.gyp:libjingle_p2p', | 37 'libjingle.gyp:libjingle_p2p', |
159 'libjingle_unittest_main', | |
160 ], | 38 ], |
161 'include_dirs': [ | 39 'include_dirs': [ |
162 '<(DEPTH)/third_party/libsrtp/srtp', | 40 '<(DEPTH)/third_party/libsrtp/srtp', |
163 ], | 41 ], |
164 'sources': [ | 42 'sources': [ |
165 'session/media/bundlefilter_unittest.cc', | 43 'session/media/bundlefilter_unittest.cc', |
166 'session/media/channel_unittest.cc', | 44 'session/media/channel_unittest.cc', |
167 'session/media/channelmanager_unittest.cc', | 45 'session/media/channelmanager_unittest.cc', |
168 'session/media/currentspeakermonitor_unittest.cc', | 46 'session/media/currentspeakermonitor_unittest.cc', |
169 'session/media/mediasession_unittest.cc', | 47 'session/media/mediasession_unittest.cc', |
(...skipping 17 matching lines...) Expand all Loading... |
187 }], | 65 }], |
188 ], | 66 ], |
189 }, # target libjingle_p2p_unittest | 67 }, # target libjingle_p2p_unittest |
190 { | 68 { |
191 'target_name': 'peerconnection_unittests', | 69 'target_name': 'peerconnection_unittests', |
192 'type': '<(gtest_target_type)', | 70 'type': '<(gtest_target_type)', |
193 'dependencies': [ | 71 'dependencies': [ |
194 '<(DEPTH)/testing/gmock.gyp:gmock', | 72 '<(DEPTH)/testing/gmock.gyp:gmock', |
195 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | 73 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
196 '<(webrtc_root)/common.gyp:webrtc_common', | 74 '<(webrtc_root)/common.gyp:webrtc_common', |
197 'libjingle.gyp:libjingle', | 75 '<(webrtc_root)/webrtc.gyp:rtc_unittest_main', |
198 'libjingle.gyp:libjingle_p2p', | 76 'libjingle.gyp:libjingle_p2p', |
199 'libjingle.gyp:libjingle_peerconnection', | 77 'libjingle.gyp:libjingle_peerconnection', |
200 'libjingle_unittest_main', | |
201 ], | 78 ], |
202 'direct_dependent_settings': { | 79 'direct_dependent_settings': { |
203 'include_dirs': [ | 80 'include_dirs': [ |
204 '<(DEPTH)/testing/gmock/include', | 81 '<(DEPTH)/testing/gmock/include', |
205 ], | 82 ], |
206 }, | 83 }, |
207 'sources': [ | 84 'sources': [ |
208 'app/webrtc/datachannel_unittest.cc', | 85 'app/webrtc/datachannel_unittest.cc', |
209 'app/webrtc/dtlsidentitystore_unittest.cc', | 86 'app/webrtc/dtlsidentitystore_unittest.cc', |
210 'app/webrtc/dtmfsender_unittest.cc', | 87 'app/webrtc/dtmfsender_unittest.cc', |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 'type': 'none', | 297 'type': 'none', |
421 'dependencies': [ | 298 'dependencies': [ |
422 '<(DEPTH)/webrtc/build/apk_tests.gyp:peerconnection_unittests_apk', | 299 '<(DEPTH)/webrtc/build/apk_tests.gyp:peerconnection_unittests_apk', |
423 ], | 300 ], |
424 }, | 301 }, |
425 ], | 302 ], |
426 }], | 303 }], |
427 ['test_isolation_mode != "noop"', { | 304 ['test_isolation_mode != "noop"', { |
428 'targets': [ | 305 'targets': [ |
429 { | 306 { |
430 'target_name': 'libjingle_media_unittest_run', | |
431 'type': 'none', | |
432 'dependencies': [ | |
433 'libjingle_media_unittest', | |
434 ], | |
435 'includes': [ | |
436 'build/isolate.gypi', | |
437 ], | |
438 'sources': [ | |
439 'libjingle_media_unittest.isolate', | |
440 ], | |
441 }, | |
442 { | |
443 'target_name': 'libjingle_p2p_unittest_run', | 307 'target_name': 'libjingle_p2p_unittest_run', |
444 'type': 'none', | 308 'type': 'none', |
445 'dependencies': [ | 309 'dependencies': [ |
446 'libjingle_p2p_unittest', | 310 'libjingle_p2p_unittest', |
447 ], | 311 ], |
448 'includes': [ | 312 'includes': [ |
449 'build/isolate.gypi', | 313 'build/isolate.gypi', |
450 ], | 314 ], |
451 'sources': [ | 315 'sources': [ |
452 'libjingle_p2p_unittest.isolate', | 316 'libjingle_p2p_unittest.isolate', |
453 ], | 317 ], |
454 }, | 318 }, |
455 { | 319 { |
456 'target_name': 'peerconnection_unittests_run', | 320 'target_name': 'peerconnection_unittests_run', |
457 'type': 'none', | 321 'type': 'none', |
458 'dependencies': [ | 322 'dependencies': [ |
459 'peerconnection_unittests', | 323 'peerconnection_unittests', |
460 ], | 324 ], |
461 'includes': [ | 325 'includes': [ |
462 'build/isolate.gypi', | 326 'build/isolate.gypi', |
463 ], | 327 ], |
464 'sources': [ | 328 'sources': [ |
465 'peerconnection_unittests.isolate', | 329 'peerconnection_unittests.isolate', |
466 ], | 330 ], |
467 }, | 331 }, |
468 ], | 332 ], |
469 }], | 333 }], |
470 ], | 334 ], |
471 } | 335 } |
OLD | NEW |