| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2015 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': 'peerconnection_unittests', | |
| 14 'type': '<(gtest_target_type)', | |
| 15 'dependencies': [ | |
| 16 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 17 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', | |
| 18 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
| 19 '<(webrtc_root)/common.gyp:webrtc_common', | |
| 20 '<(webrtc_root)/media/media.gyp:rtc_unittest_main', | |
| 21 '<(webrtc_root)/pc/pc.gyp:rtc_pc', | |
| 22 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', | |
| 23 ], | |
| 24 'defines': [ | |
| 25 # Feature selection. | |
| 26 'HAVE_SCTP', | |
| 27 ], | |
| 28 'sources': [ | |
| 29 'datachannel_unittest.cc', | |
| 30 'dtmfsender_unittest.cc', | |
| 31 'fakemetricsobserver.cc', | |
| 32 'fakemetricsobserver.h', | |
| 33 'jsepsessiondescription_unittest.cc', | |
| 34 'localaudiosource_unittest.cc', | |
| 35 'mediaconstraintsinterface_unittest.cc', | |
| 36 'mediastream_unittest.cc', | |
| 37 'peerconnection_unittest.cc', | |
| 38 'peerconnectionendtoend_unittest.cc', | |
| 39 'peerconnectionfactory_unittest.cc', | |
| 40 'peerconnectioninterface_unittest.cc', | |
| 41 'proxy_unittest.cc', | |
| 42 'rtpsenderreceiver_unittest.cc', | |
| 43 'statscollector_unittest.cc', | |
| 44 'test/fakeaudiocapturemodule.cc', | |
| 45 'test/fakeaudiocapturemodule.h', | |
| 46 'test/fakeaudiocapturemodule_unittest.cc', | |
| 47 'test/fakeconstraints.h', | |
| 48 'test/fakedatachannelprovider.h', | |
| 49 'test/fakeperiodicvideocapturer.h', | |
| 50 'test/fakertccertificategenerator.h', | |
| 51 'test/fakevideotrackrenderer.h', | |
| 52 'test/mock_datachannel.h', | |
| 53 'test/mock_peerconnection.h', | |
| 54 'test/mock_webrtcsession.h', | |
| 55 'test/mockpeerconnectionobservers.h', | |
| 56 'test/peerconnectiontestwrapper.h', | |
| 57 'test/peerconnectiontestwrapper.cc', | |
| 58 'test/testsdpstrings.h', | |
| 59 'videocapturertracksource_unittest.cc', | |
| 60 'videotrack_unittest.cc', | |
| 61 'webrtcsdp_unittest.cc', | |
| 62 'webrtcsession_unittest.cc', | |
| 63 ], | |
| 64 # TODO(kjellander): Make the code compile without disabling these flags. | |
| 65 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 66 'cflags': [ | |
| 67 '-Wno-sign-compare', | |
| 68 ], | |
| 69 'cflags!': [ | |
| 70 '-Wextra', | |
| 71 ], | |
| 72 'cflags_cc!': [ | |
| 73 '-Woverloaded-virtual', | |
| 74 ], | |
| 75 'msvs_disabled_warnings': [ | |
| 76 4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch. | |
| 77 4267, # conversion from 'size_t' to 'int', possible loss of data. | |
| 78 4389, # signed/unsigned mismatch. | |
| 79 ], | |
| 80 'conditions': [ | |
| 81 ['clang==1', { | |
| 82 # TODO(kjellander): Make the code compile without disabling these flag
s. | |
| 83 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 84 'cflags!': [ | |
| 85 '-Wextra', | |
| 86 ], | |
| 87 'xcode_settings': { | |
| 88 'WARNING_CFLAGS!': ['-Wextra'], | |
| 89 }, | |
| 90 }], | |
| 91 ['OS=="android"', { | |
| 92 'sources': [ | |
| 93 'test/androidtestinitializer.cc', | |
| 94 'test/androidtestinitializer.h', | |
| 95 ], | |
| 96 'dependencies': [ | |
| 97 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | |
| 98 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_jni', | |
| 99 ], | |
| 100 }], | |
| 101 ['OS=="win" and clang==1', { | |
| 102 'msvs_settings': { | |
| 103 'VCCLCompilerTool': { | |
| 104 'AdditionalOptions': [ | |
| 105 # Disable warnings failing when compiling with Clang on Windows. | |
| 106 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
| 107 '-Wno-sign-compare', | |
| 108 '-Wno-unused-function', | |
| 109 ], | |
| 110 }, | |
| 111 }, | |
| 112 }], | |
| 113 ['use_quic==1', { | |
| 114 'dependencies': [ | |
| 115 '<(DEPTH)/third_party/libquic/libquic.gyp:libquic', | |
| 116 ], | |
| 117 'sources': [ | |
| 118 'quicdatachannel_unittest.cc', | |
| 119 'quicdatatransport_unittest.cc', | |
| 120 ], | |
| 121 'export_dependent_settings': [ | |
| 122 '<(DEPTH)/third_party/libquic/libquic.gyp:libquic', | |
| 123 ], | |
| 124 }], | |
| 125 ], # conditions | |
| 126 }, # target peerconnection_unittests | |
| 127 ], # targets | |
| 128 'conditions': [ | |
| 129 ['OS=="android"', { | |
| 130 'targets': [ | |
| 131 { | |
| 132 'target_name': 'libjingle_peerconnection_android_unittest', | |
| 133 'type': 'none', | |
| 134 'dependencies': [ | |
| 135 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', | |
| 136 ], | |
| 137 'variables': { | |
| 138 'apk_name': 'libjingle_peerconnection_android_unittest', | |
| 139 'java_in_dir': 'androidtests', | |
| 140 'resource_dir': 'androidtests/res', | |
| 141 'native_lib_target': 'libjingle_peerconnection_so', | |
| 142 'is_test_apk': 1, | |
| 143 'test_type': 'instrumentation', | |
| 144 'tested_apk_path': '', | |
| 145 'never_lint': 1, | |
| 146 }, | |
| 147 'includes': [ | |
| 148 '../../build/java_apk.gypi', | |
| 149 '../../build/android/test_runner.gypi', | |
| 150 ], | |
| 151 }, | |
| 152 ], # targets | |
| 153 }], # OS=="android" | |
| 154 ['OS=="android"', { | |
| 155 'targets': [ | |
| 156 { | |
| 157 'target_name': 'peerconnection_unittests_apk_target', | |
| 158 'type': 'none', | |
| 159 'dependencies': [ | |
| 160 '<(android_tests_path):peerconnection_unittests_apk', | |
| 161 ], | |
| 162 }, | |
| 163 ], | |
| 164 'conditions': [ | |
| 165 ['test_isolation_mode != "noop"', | |
| 166 { | |
| 167 'targets': [ | |
| 168 { | |
| 169 'target_name': 'peerconnection_unittests_apk_run', | |
| 170 'type': 'none', | |
| 171 'dependencies': [ | |
| 172 '<(android_tests_path):peerconnection_unittests_apk', | |
| 173 ], | |
| 174 'includes': [ | |
| 175 '../build/isolate.gypi', | |
| 176 ], | |
| 177 'sources': [ | |
| 178 'peerconnection_unittests_apk.isolate', | |
| 179 ], | |
| 180 }, | |
| 181 ] | |
| 182 } | |
| 183 ], | |
| 184 ], | |
| 185 }], # OS=="android" | |
| 186 ['test_isolation_mode != "noop"', { | |
| 187 'targets': [ | |
| 188 { | |
| 189 'target_name': 'peerconnection_unittests_run', | |
| 190 'type': 'none', | |
| 191 'dependencies': [ | |
| 192 'peerconnection_unittests', | |
| 193 ], | |
| 194 'includes': [ | |
| 195 '../build/isolate.gypi', | |
| 196 ], | |
| 197 'sources': [ | |
| 198 'peerconnection_unittests.isolate', | |
| 199 ], | |
| 200 }, | |
| 201 ], # targets | |
| 202 }], # test_isolation_mode != "noop" | |
| 203 ], # conditions | |
| 204 } | |
| OLD | NEW |