Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: webrtc/media/media.gyp

Issue 1843193002: Reland of move {media,p2p,pc,xmllite,xmpp}_tests.gypi files. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased and moved isolate targets into include_tests==1 condition Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/libjingle/xmpp/xmpp_tests.gypi ('k') | webrtc/media/media_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 { 9 {
10 'includes': [ '../build/common.gypi', ], 10 'includes': [ '../build/common.gypi', ],
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 }, 190 },
191 }], 191 }],
192 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { 192 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
193 'defines': [ 193 'defines': [
194 'CARBON_DEPRECATED=YES', 194 'CARBON_DEPRECATED=YES',
195 ], 195 ],
196 }], 196 }],
197 ], 197 ],
198 }, # target rtc_media 198 }, # target rtc_media
199 ], # targets. 199 ], # targets.
200 'conditions': [
201 ['include_tests==1', {
202 'targets' : [
203 {
204 'target_name': 'rtc_unittest_main',
205 'type': 'static_library',
206 'dependencies': [
207 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
208 ],
209 'direct_dependent_settings': {
210 'include_dirs': [
211 '<(libyuv_dir)/include',
212 '<(DEPTH)/testing/gtest/include',
213 '<(DEPTH)/testing/gtest',
214 ],
215 },
216 'conditions': [
217 ['build_libyuv==1', {
218 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',] ,
219 }],
220 ['OS=="ios"', {
221 # TODO(kjellander): Make the code compile without disabling these.
222 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
223 'cflags': [
224 '-Wno-unused-variable',
225 ],
226 'xcode_settings': {
227 'WARNING_CFLAGS': [
228 '-Wno-unused-variable',
229 ],
230 },
231 }],
232 ],
233 'include_dirs': [
234 '<(DEPTH)/testing/gtest/include',
235 '<(DEPTH)/testing/gtest',
236 ],
237 'sources': [
238 'base/fakemediaengine.h',
239 'base/fakenetworkinterface.h',
240 'base/fakertp.h',
241 'base/fakevideocapturer.h',
242 'base/fakevideorenderer.h',
243 'base/testutils.cc',
244 'base/testutils.h',
245 'engine/fakewebrtccall.cc',
246 'engine/fakewebrtccall.h',
247 'engine/fakewebrtccommon.h',
248 'engine/fakewebrtcdeviceinfo.h',
249 'engine/fakewebrtcvcmfactory.h',
250 'engine/fakewebrtcvideocapturemodule.h',
251 'engine/fakewebrtcvideoengine.h',
252 'engine/fakewebrtcvoiceengine.h',
253 ],
254 # TODO(kjellander): Make the code compile without disabling these flag s.
255 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
256 'cflags_cc!': [
257 '-Wnon-virtual-dtor',
258 ],
259 }, # target rtc_unittest_main
260 {
261 'target_name': 'rtc_media_unittests',
262 'type': 'executable',
263 'dependencies': [
264 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
265 '<(webrtc_root)/media/media.gyp:rtc_media',
266 'rtc_unittest_main',
267 ],
268 'sources': [
269 'base/codec_unittest.cc',
270 'base/rtpdataengine_unittest.cc',
271 'base/rtpdump_unittest.cc',
272 'base/rtputils_unittest.cc',
273 'base/streamparams_unittest.cc',
274 'base/turnutils_unittest.cc',
275 'base/videoadapter_unittest.cc',
276 'base/videobroadcaster_unittest.cc',
277 'base/videocapturer_unittest.cc',
278 'base/videocommon_unittest.cc',
279 'base/videoengine_unittest.h',
280 'base/videoframe_unittest.h',
281 'engine/nullwebrtcvideoengine_unittest.cc',
282 'engine/simulcast_unittest.cc',
283 'engine/webrtcmediaengine_unittest.cc',
284 'engine/webrtcvideocapturer_unittest.cc',
285 'engine/webrtcvideoframe_unittest.cc',
286 'engine/webrtcvideoframefactory_unittest.cc',
287 'engine/webrtcvideoengine2_unittest.cc',
288 'engine/webrtcvoiceengine_unittest.cc',
289 'sctp/sctpdataengine_unittest.cc',
290 ],
291 # TODO(kjellander): Make the code compile without disabling these flag s.
292 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
293 'cflags': [
294 '-Wno-sign-compare',
295 ],
296 'cflags_cc!': [
297 '-Wnon-virtual-dtor',
298 '-Woverloaded-virtual',
299 ],
300 'msvs_disabled_warnings': [
301 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismat ch.
302 4389, # signed/unsigned mismatch.
303 ],
304 'conditions': [
305 ['OS=="win"', {
306 'conditions': [
307 ['use_openssl==0', {
308 'dependencies': [
309 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
310 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
311 '<(DEPTH)/third_party/nss/nss.gyp:nss',
312 ],
313 }],
314 ],
315 'msvs_settings': {
316 'VCLinkerTool': {
317 'AdditionalDependencies': [
318 # TODO(ronghuawu): Since we've included strmiids in
319 # libjingle_media target, we shouldn't need this here.
320 # Find out why it doesn't work without this.
321 'strmiids.lib',
322 ],
323 },
324 },
325 }],
326 ['OS=="win" and clang==1', {
327 'msvs_settings': {
328 'VCCLCompilerTool': {
329 'AdditionalOptions': [
330 # Disable warnings failing when compiling with Clang on Wind ows.
331 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
332 '-Wno-sign-compare',
333 '-Wno-unused-function',
334 ],
335 },
336 },
337 },],
338 ['clang==1', {
339 # TODO(kjellander): Make the code compile without disabling these.
340 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
341 'cflags!': [
342 '-Wextra',
343 ],
344 'xcode_settings': {
345 'WARNING_CFLAGS!': ['-Wextra'],
346 },
347 }],
348 ['OS=="ios"', {
349 'sources!': [
350 'sctp/sctpdataengine_unittest.cc',
351 ],
352 'mac_bundle_resources': [
353 '<(DEPTH)/resources/media/captured-320x240-2s-48.frames',
354 '<(DEPTH)/resources/media/faces.1280x720_P420.yuv',
355 '<(DEPTH)/resources/media/faces_I420.jpg',
356 '<(DEPTH)/resources/media/faces_I422.jpg',
357 '<(DEPTH)/resources/media/faces_I444.jpg',
358 '<(DEPTH)/resources/media/faces_I411.jpg',
359 '<(DEPTH)/resources/media/faces_I400.jpg',
360 ],
361 }],
362 ],
363 }, # target rtc_media_unittests
364 ], # targets
365 'conditions': [
366 ['test_isolation_mode != "noop"', {
367 'targets': [
368 {
369 'target_name': 'rtc_media_unittests_run',
370 'type': 'none',
371 'dependencies': [
372 'rtc_media_unittests',
373 ],
374 'includes': [
375 '../build/isolate.gypi',
376 ],
377 'sources': [
378 'rtc_media_unittests.isolate',
379 ],
380 },
381 ],
382 }],
383 ], # conditions
384 }], # include_tests==1
385 ], # conditions
200 } 386 }
OLDNEW
« no previous file with comments | « webrtc/libjingle/xmpp/xmpp_tests.gypi ('k') | webrtc/media/media_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698