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

Unified Diff: webrtc/media/media_tests.gypi

Issue 1587193006: Move talk/media to webrtc/media (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased to b647aca12a884a13c1728118586245399b55fa3d (#11493) Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/media.gyp ('k') | webrtc/media/sctp/sctpdataengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/media_tests.gypi
diff --git a/webrtc/media/media_tests.gypi b/webrtc/media/media_tests.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..fce1e003b84e938627fc20160990e08b2092271a
--- /dev/null
+++ b/webrtc/media/media_tests.gypi
@@ -0,0 +1,172 @@
+# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+{
+ 'includes': [ '../build/common.gypi', ],
+ 'targets': [
+ {
+ 'target_name': 'rtc_unittest_main',
+ 'type': 'static_library',
+ 'dependencies': [
+ '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(libyuv_dir)/include',
+ '<(DEPTH)/testing/gtest/include',
+ '<(DEPTH)/testing/gtest',
+ ],
+ },
+ 'conditions': [
+ ['build_libyuv==1', {
+ 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
+ }],
+ ['OS=="ios"', {
+ # TODO(kjellander): Make the code compile without disabling these.
+ # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
+ 'cflags': [
+ '-Wno-unused-variable',
+ ],
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': [
+ '-Wno-unused-variable',
+ ],
+ },
+ }],
+ ],
+ 'include_dirs': [
+ '<(DEPTH)/testing/gtest/include',
+ '<(DEPTH)/testing/gtest',
+ ],
+ 'sources': [
+ 'base/fakecapturemanager.h',
+ 'base/fakemediaengine.h',
+ 'base/fakenetworkinterface.h',
+ 'base/fakertp.h',
+ 'base/fakevideocapturer.h',
+ 'base/fakevideorenderer.h',
+ 'base/testutils.cc',
+ 'base/testutils.h',
+ 'devices/fakedevicemanager.h',
+ 'webrtc/fakewebrtccall.cc',
+ 'webrtc/fakewebrtccall.h',
+ 'webrtc/fakewebrtccommon.h',
+ 'webrtc/fakewebrtcdeviceinfo.h',
+ 'webrtc/fakewebrtcvcmfactory.h',
+ 'webrtc/fakewebrtcvideocapturemodule.h',
+ 'webrtc/fakewebrtcvideoengine.h',
+ 'webrtc/fakewebrtcvoiceengine.h',
+ ],
+ # TODO(kjellander): Make the code compile without disabling these flags.
+ # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
+ 'cflags_cc!': [
+ '-Wnon-virtual-dtor',
+ ],
+ }, # target rtc_unittest_main
+ {
+ 'target_name': 'libjingle_media_unittest',
+ 'type': 'executable',
+ 'dependencies': [
+ '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
+ '<(webrtc_root)/media/media.gyp:rtc_media',
+ 'rtc_unittest_main',
+ ],
+ 'sources': [
+ 'base/capturemanager_unittest.cc',
+ 'base/codec_unittest.cc',
+ 'base/rtpdataengine_unittest.cc',
+ 'base/rtpdump_unittest.cc',
+ 'base/rtputils_unittest.cc',
+ 'base/streamparams_unittest.cc',
+ 'base/turnutils_unittest.cc',
+ 'base/videoadapter_unittest.cc',
+ 'base/videocapturer_unittest.cc',
+ 'base/videocommon_unittest.cc',
+ 'base/videoengine_unittest.h',
+ 'base/videoframe_unittest.h',
+ 'devices/dummydevicemanager_unittest.cc',
+ 'devices/filevideocapturer_unittest.cc',
+ 'sctp/sctpdataengine_unittest.cc',
+ 'webrtc/nullwebrtcvideoengine_unittest.cc',
+ 'webrtc/simulcast_unittest.cc',
+ 'webrtc/webrtcmediaengine_unittest.cc',
+ 'webrtc/webrtcvideocapturer_unittest.cc',
+ 'webrtc/webrtcvideoframe_unittest.cc',
+ 'webrtc/webrtcvideoframefactory_unittest.cc',
+ # Disabled because some tests fail.
+ # TODO(ronghuawu): Reenable these tests.
+ # 'devices/devicemanager_unittest.cc',
+ 'webrtc/webrtcvideoengine2_unittest.cc',
+ 'webrtc/webrtcvoiceengine_unittest.cc',
+ ],
+ # TODO(kjellander): Make the code compile without disabling these flags.
+ # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
+ 'cflags': [
+ '-Wno-sign-compare',
+ ],
+ 'cflags_cc!': [
+ '-Wnon-virtual-dtor',
+ '-Woverloaded-virtual',
+ ],
+ 'msvs_disabled_warnings': [
+ 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismatch.
+ 4389, # signed/unsigned mismatch.
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'conditions': [
+ ['use_openssl==0', {
+ 'dependencies': [
+ '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
+ '<(DEPTH)/third_party/nss/nss.gyp:nspr',
+ '<(DEPTH)/third_party/nss/nss.gyp:nss',
+ ],
+ }],
+ ],
+ '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',
+ ],
+ },
+ },
+ }],
+ ['OS=="win" and clang==1', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'AdditionalOptions': [
+ # Disable warnings failing when compiling with Clang on Windows.
+ # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
+ '-Wno-sign-compare',
+ '-Wno-unused-function',
+ ],
+ },
+ },
+ },],
+ ['clang==1', {
+ # TODO(kjellander): Make the code compile without disabling these.
+ # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
+ 'cflags!': [
+ '-Wextra',
+ ],
+ 'xcode_settings': {
+ 'WARNING_CFLAGS!': ['-Wextra'],
+ },
+ }],
+ ['OS=="ios"', {
+ 'sources!': [
+ 'sctp/sctpdataengine_unittest.cc',
+ ],
+ }],
+ ],
+ }, # target rtc_media_unittests
+ ],
+}
« no previous file with comments | « webrtc/media/media.gyp ('k') | webrtc/media/sctp/sctpdataengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698