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/fakemediaengine.h', |
| 48 'base/fakenetworkinterface.h', |
| 49 'base/fakertp.h', |
| 50 'base/fakevideocapturer.h', |
| 51 'base/fakevideorenderer.h', |
| 52 'base/testutils.cc', |
| 53 'base/testutils.h', |
| 54 'engine/fakewebrtccall.cc', |
| 55 'engine/fakewebrtccall.h', |
| 56 'engine/fakewebrtccommon.h', |
| 57 'engine/fakewebrtcdeviceinfo.h', |
| 58 'engine/fakewebrtcvcmfactory.h', |
| 59 'engine/fakewebrtcvideocapturemodule.h', |
| 60 'engine/fakewebrtcvideoengine.h', |
| 61 'engine/fakewebrtcvoiceengine.h', |
| 62 ], |
| 63 # TODO(kjellander): Make the code compile without disabling these flags. |
| 64 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 65 'cflags_cc!': [ |
| 66 '-Wnon-virtual-dtor', |
| 67 ], |
| 68 }, # target rtc_unittest_main |
| 69 { |
| 70 'target_name': 'rtc_media_unittests', |
| 71 'type': 'executable', |
| 72 'dependencies': [ |
| 73 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
| 74 '<(webrtc_root)/media/media.gyp:rtc_media', |
| 75 'rtc_unittest_main', |
| 76 ], |
| 77 'sources': [ |
| 78 'base/codec_unittest.cc', |
| 79 'base/rtpdataengine_unittest.cc', |
| 80 'base/rtpdump_unittest.cc', |
| 81 'base/rtputils_unittest.cc', |
| 82 'base/streamparams_unittest.cc', |
| 83 'base/turnutils_unittest.cc', |
| 84 'base/videoadapter_unittest.cc', |
| 85 'base/videobroadcaster_unittest.cc', |
| 86 'base/videocapturer_unittest.cc', |
| 87 'base/videocommon_unittest.cc', |
| 88 'base/videoengine_unittest.h', |
| 89 'base/videoframe_unittest.h', |
| 90 'engine/nullwebrtcvideoengine_unittest.cc', |
| 91 'engine/simulcast_unittest.cc', |
| 92 'engine/webrtcmediaengine_unittest.cc', |
| 93 'engine/webrtcvideocapturer_unittest.cc', |
| 94 'engine/webrtcvideoframe_unittest.cc', |
| 95 'engine/webrtcvideoframefactory_unittest.cc', |
| 96 'engine/webrtcvideoengine2_unittest.cc', |
| 97 'engine/webrtcvoiceengine_unittest.cc', |
| 98 'sctp/sctpdataengine_unittest.cc', |
| 99 ], |
| 100 # TODO(kjellander): Make the code compile without disabling these flags. |
| 101 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 102 'cflags': [ |
| 103 '-Wno-sign-compare', |
| 104 ], |
| 105 'cflags_cc!': [ |
| 106 '-Wnon-virtual-dtor', |
| 107 '-Woverloaded-virtual', |
| 108 ], |
| 109 'msvs_disabled_warnings': [ |
| 110 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismatch. |
| 111 4389, # signed/unsigned mismatch. |
| 112 ], |
| 113 'conditions': [ |
| 114 ['OS=="win"', { |
| 115 'conditions': [ |
| 116 ['use_openssl==0', { |
| 117 'dependencies': [ |
| 118 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', |
| 119 '<(DEPTH)/third_party/nss/nss.gyp:nspr', |
| 120 '<(DEPTH)/third_party/nss/nss.gyp:nss', |
| 121 ], |
| 122 }], |
| 123 ], |
| 124 'msvs_settings': { |
| 125 'VCLinkerTool': { |
| 126 'AdditionalDependencies': [ |
| 127 # TODO(ronghuawu): Since we've included strmiids in |
| 128 # libjingle_media target, we shouldn't need this here. |
| 129 # Find out why it doesn't work without this. |
| 130 'strmiids.lib', |
| 131 ], |
| 132 }, |
| 133 }, |
| 134 }], |
| 135 ['OS=="win" and clang==1', { |
| 136 'msvs_settings': { |
| 137 'VCCLCompilerTool': { |
| 138 'AdditionalOptions': [ |
| 139 # Disable warnings failing when compiling with Clang on Windows. |
| 140 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 141 '-Wno-sign-compare', |
| 142 '-Wno-unused-function', |
| 143 ], |
| 144 }, |
| 145 }, |
| 146 },], |
| 147 ['clang==1', { |
| 148 # TODO(kjellander): Make the code compile without disabling these. |
| 149 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 |
| 150 'cflags!': [ |
| 151 '-Wextra', |
| 152 ], |
| 153 'xcode_settings': { |
| 154 'WARNING_CFLAGS!': ['-Wextra'], |
| 155 }, |
| 156 }], |
| 157 ['OS=="ios"', { |
| 158 'sources!': [ |
| 159 'sctp/sctpdataengine_unittest.cc', |
| 160 ], |
| 161 'mac_bundle_resources': [ |
| 162 '<(DEPTH)/resources/media/captured-320x240-2s-48.frames', |
| 163 '<(DEPTH)/resources/media/faces.1280x720_P420.yuv', |
| 164 '<(DEPTH)/resources/media/faces_I420.jpg', |
| 165 '<(DEPTH)/resources/media/faces_I422.jpg', |
| 166 '<(DEPTH)/resources/media/faces_I444.jpg', |
| 167 '<(DEPTH)/resources/media/faces_I411.jpg', |
| 168 '<(DEPTH)/resources/media/faces_I400.jpg', |
| 169 ], |
| 170 }], |
| 171 ], |
| 172 }, # target rtc_media_unittests |
| 173 ], |
| 174 } |
OLD | NEW |