OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # |
| 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 |
| 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 |
| 9 { |
| 10 'includes': [ '../build/common.gypi', ], |
| 11 'targets': [ |
| 12 { |
| 13 'target_name': 'rtc_unittest_main', |
| 14 'type': 'static_library', |
| 15 'dependencies': [ |
| 16 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
| 17 ], |
| 18 'direct_dependent_settings': { |
| 19 'include_dirs': [ |
| 20 '<(libyuv_dir)/include', |
| 21 '<(DEPTH)/testing/gtest/include', |
| 22 '<(DEPTH)/testing/gtest', |
| 23 ], |
| 24 }, |
| 25 'conditions': [ |
| 26 ['build_libyuv==1', { |
| 27 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], |
| 28 }], |
| 29 ['OS=="ios"', { |
| 30 # TODO(kjellander): Make the code compile without disabling these. |
| 31 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 32 'cflags': [ |
| 33 '-Wno-unused-variable', |
| 34 ], |
| 35 'xcode_settings': { |
| 36 'WARNING_CFLAGS': [ |
| 37 '-Wno-unused-variable', |
| 38 ], |
| 39 }, |
| 40 }], |
| 41 ], |
| 42 'include_dirs': [ |
| 43 '<(DEPTH)/testing/gtest/include', |
| 44 '<(DEPTH)/testing/gtest', |
| 45 ], |
| 46 'sources': [ |
| 47 'base/fakecapturemanager.h', |
| 48 'base/fakemediaengine.h', |
| 49 'base/fakenetworkinterface.h', |
| 50 'base/fakertp.h', |
| 51 'base/fakevideocapturer.h', |
| 52 'base/fakevideorenderer.h', |
| 53 'base/testutils.cc', |
| 54 'base/testutils.h', |
| 55 'devices/fakedevicemanager.h', |
| 56 'webrtc/fakewebrtccall.cc', |
| 57 'webrtc/fakewebrtccall.h', |
| 58 'webrtc/fakewebrtccommon.h', |
| 59 'webrtc/fakewebrtcdeviceinfo.h', |
| 60 'webrtc/fakewebrtcvcmfactory.h', |
| 61 'webrtc/fakewebrtcvideocapturemodule.h', |
| 62 'webrtc/fakewebrtcvideoengine.h', |
| 63 'webrtc/fakewebrtcvoiceengine.h', |
| 64 ], |
| 65 # TODO(kjellander): Make the code compile without disabling these flags. |
| 66 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 67 'cflags_cc!': [ |
| 68 '-Wnon-virtual-dtor', |
| 69 ], |
| 70 }, # target rtc_unittest_main |
| 71 { |
| 72 'target_name': 'libjingle_media_unittest', |
| 73 'type': 'executable', |
| 74 'dependencies': [ |
| 75 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
| 76 '<(webrtc_root)/media/media.gyp:rtc_media', |
| 77 'rtc_unittest_main', |
| 78 ], |
| 79 'sources': [ |
| 80 'base/capturemanager_unittest.cc', |
| 81 'base/codec_unittest.cc', |
| 82 'base/rtpdataengine_unittest.cc', |
| 83 'base/rtpdump_unittest.cc', |
| 84 'base/rtputils_unittest.cc', |
| 85 'base/streamparams_unittest.cc', |
| 86 'base/turnutils_unittest.cc', |
| 87 'base/videoadapter_unittest.cc', |
| 88 'base/videocapturer_unittest.cc', |
| 89 'base/videocommon_unittest.cc', |
| 90 'base/videoengine_unittest.h', |
| 91 'base/videoframe_unittest.h', |
| 92 'devices/dummydevicemanager_unittest.cc', |
| 93 'devices/filevideocapturer_unittest.cc', |
| 94 'sctp/sctpdataengine_unittest.cc', |
| 95 'webrtc/nullwebrtcvideoengine_unittest.cc', |
| 96 'webrtc/simulcast_unittest.cc', |
| 97 'webrtc/webrtcmediaengine_unittest.cc', |
| 98 'webrtc/webrtcvideocapturer_unittest.cc', |
| 99 'webrtc/webrtcvideoframe_unittest.cc', |
| 100 'webrtc/webrtcvideoframefactory_unittest.cc', |
| 101 # Disabled because some tests fail. |
| 102 # TODO(ronghuawu): Reenable these tests. |
| 103 # 'devices/devicemanager_unittest.cc', |
| 104 'webrtc/webrtcvideoengine2_unittest.cc', |
| 105 'webrtc/webrtcvoiceengine_unittest.cc', |
| 106 ], |
| 107 # TODO(kjellander): Make the code compile without disabling these flags. |
| 108 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 109 'cflags': [ |
| 110 '-Wno-sign-compare', |
| 111 ], |
| 112 'cflags_cc!': [ |
| 113 '-Wnon-virtual-dtor', |
| 114 '-Woverloaded-virtual', |
| 115 ], |
| 116 'msvs_disabled_warnings': [ |
| 117 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismatch. |
| 118 4389, # signed/unsigned mismatch. |
| 119 ], |
| 120 'conditions': [ |
| 121 ['OS=="win"', { |
| 122 'conditions': [ |
| 123 ['use_openssl==0', { |
| 124 'dependencies': [ |
| 125 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', |
| 126 '<(DEPTH)/third_party/nss/nss.gyp:nspr', |
| 127 '<(DEPTH)/third_party/nss/nss.gyp:nss', |
| 128 ], |
| 129 }], |
| 130 ], |
| 131 'msvs_settings': { |
| 132 'VCLinkerTool': { |
| 133 'AdditionalDependencies': [ |
| 134 # TODO(ronghuawu): Since we've included strmiids in |
| 135 # libjingle_media target, we shouldn't need this here. |
| 136 # Find out why it doesn't work without this. |
| 137 'strmiids.lib', |
| 138 ], |
| 139 }, |
| 140 }, |
| 141 }], |
| 142 ['OS=="win" and clang==1', { |
| 143 'msvs_settings': { |
| 144 'VCCLCompilerTool': { |
| 145 'AdditionalOptions': [ |
| 146 # Disable warnings failing when compiling with Clang on Windows. |
| 147 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 148 '-Wno-sign-compare', |
| 149 '-Wno-unused-function', |
| 150 ], |
| 151 }, |
| 152 }, |
| 153 },], |
| 154 ['clang==1', { |
| 155 # TODO(kjellander): Make the code compile without disabling these. |
| 156 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 157 'cflags!': [ |
| 158 '-Wextra', |
| 159 ], |
| 160 'xcode_settings': { |
| 161 'WARNING_CFLAGS!': ['-Wextra'], |
| 162 }, |
| 163 }], |
| 164 ['OS=="ios"', { |
| 165 'sources!': [ |
| 166 'sctp/sctpdataengine_unittest.cc', |
| 167 ], |
| 168 }], |
| 169 ], |
| 170 }, # target rtc_media_unittests |
| 171 ], |
| 172 } |
OLD | NEW |