| OLD | NEW |
| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 'd3d9.lib', | 169 'd3d9.lib', |
| 170 'gdi32.lib', | 170 'gdi32.lib', |
| 171 'strmiids.lib', | 171 'strmiids.lib', |
| 172 ], | 172 ], |
| 173 }, | 173 }, |
| 174 }, | 174 }, |
| 175 }], | 175 }], |
| 176 ], | 176 ], |
| 177 }, # target rtc_media | 177 }, # target rtc_media |
| 178 ], # targets. | 178 ], # targets. |
| 179 'conditions': [ | |
| 180 ['include_tests==1', { | |
| 181 'targets' : [ | |
| 182 { | |
| 183 'target_name': 'rtc_unittest_main', | |
| 184 'type': 'static_library', | |
| 185 'dependencies': [ | |
| 186 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 187 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 188 '<(webrtc_root)/api/api.gyp:call_api', | |
| 189 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
| 190 '<(webrtc_root)/media/media.gyp:rtc_media', | |
| 191 ], | |
| 192 'direct_dependent_settings': { | |
| 193 'include_dirs': [ | |
| 194 '<(libyuv_dir)/include', | |
| 195 '<(DEPTH)/testing/gmock/include', | |
| 196 ], | |
| 197 }, | |
| 198 'conditions': [ | |
| 199 ['build_libyuv==1', { | |
| 200 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',]
, | |
| 201 }], | |
| 202 ['OS=="ios"', { | |
| 203 # TODO(kjellander): Make the code compile without disabling these. | |
| 204 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 205 'cflags': [ | |
| 206 '-Wno-unused-variable', | |
| 207 ], | |
| 208 'xcode_settings': { | |
| 209 'WARNING_CFLAGS': [ | |
| 210 '-Wno-unused-variable', | |
| 211 ], | |
| 212 }, | |
| 213 }], | |
| 214 ], | |
| 215 'include_dirs': [ | |
| 216 '<(DEPTH)/testing/gtest/include', | |
| 217 '<(DEPTH)/testing/gtest', | |
| 218 ], | |
| 219 'sources': [ | |
| 220 'base/fakemediaengine.h', | |
| 221 'base/fakenetworkinterface.h', | |
| 222 'base/fakertp.h', | |
| 223 'base/fakevideocapturer.h', | |
| 224 'base/fakevideorenderer.h', | |
| 225 'base/test/mock_mediachannel.h', | |
| 226 'base/testutils.cc', | |
| 227 'base/testutils.h', | |
| 228 'engine/fakewebrtccall.cc', | |
| 229 'engine/fakewebrtccall.h', | |
| 230 'engine/fakewebrtcdeviceinfo.h', | |
| 231 'engine/fakewebrtcvcmfactory.h', | |
| 232 'engine/fakewebrtcvideocapturemodule.h', | |
| 233 'engine/fakewebrtcvideoengine.h', | |
| 234 'engine/fakewebrtcvoiceengine.h', | |
| 235 ], | |
| 236 }, # target rtc_unittest_main | |
| 237 { | |
| 238 'target_name': 'rtc_media_unittests', | |
| 239 'type': 'executable', | |
| 240 'dependencies': [ | |
| 241 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
| 242 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, | |
| 243 '<(webrtc_root)/test/test.gyp:test_support', | |
| 244 'rtc_media', | |
| 245 'rtc_unittest_main', | |
| 246 ], | |
| 247 'sources': [ | |
| 248 'base/codec_unittest.cc', | |
| 249 'base/rtpdataengine_unittest.cc', | |
| 250 'base/rtpdump_unittest.cc', | |
| 251 'base/rtputils_unittest.cc', | |
| 252 'base/streamparams_unittest.cc', | |
| 253 'base/turnutils_unittest.cc', | |
| 254 'base/videoadapter_unittest.cc', | |
| 255 'base/videobroadcaster_unittest.cc', | |
| 256 'base/videocapturer_unittest.cc', | |
| 257 'base/videocommon_unittest.cc', | |
| 258 'base/videoengine_unittest.h', | |
| 259 'base/videoframe_unittest.h', | |
| 260 'engine/nullwebrtcvideoengine_unittest.cc', | |
| 261 'engine/payload_type_mapper_unittest.cc', | |
| 262 'engine/simulcast_unittest.cc', | |
| 263 'engine/webrtcmediaengine_unittest.cc', | |
| 264 'engine/webrtcvideocapturer_unittest.cc', | |
| 265 'engine/webrtcvideoframe_unittest.cc', | |
| 266 'engine/webrtcvideoframefactory_unittest.cc', | |
| 267 'engine/webrtcvideoengine2_unittest.cc', | |
| 268 'engine/webrtcvoiceengine_unittest.cc', | |
| 269 'sctp/sctpdataengine_unittest.cc', | |
| 270 ], | |
| 271 # TODO(kjellander): Make the code compile without disabling these flag
s. | |
| 272 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 273 'cflags': [ | |
| 274 '-Wno-sign-compare', | |
| 275 ], | |
| 276 'cflags_cc!': [ | |
| 277 '-Woverloaded-virtual', | |
| 278 ], | |
| 279 'msvs_disabled_warnings': [ | |
| 280 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismat
ch. | |
| 281 4389, # signed/unsigned mismatch. | |
| 282 ], | |
| 283 'conditions': [ | |
| 284 ['rtc_use_h264==1', { | |
| 285 'defines': [ | |
| 286 'WEBRTC_USE_H264' | |
| 287 ] | |
| 288 }], | |
| 289 ['OS=="win"', { | |
| 290 'msvs_settings': { | |
| 291 'VCLinkerTool': { | |
| 292 'AdditionalDependencies': [ | |
| 293 # TODO(ronghuawu): Since we've included strmiids in | |
| 294 # libjingle_media target, we shouldn't need this here. | |
| 295 # Find out why it doesn't work without this. | |
| 296 'strmiids.lib', | |
| 297 ], | |
| 298 }, | |
| 299 }, | |
| 300 }], | |
| 301 ['OS=="win" and clang==1', { | |
| 302 'msvs_settings': { | |
| 303 'VCCLCompilerTool': { | |
| 304 'AdditionalOptions': [ | |
| 305 # Disable warnings failing when compiling with Clang on Wind
ows. | |
| 306 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
| 307 '-Wno-sign-compare', | |
| 308 '-Wno-unused-function', | |
| 309 ], | |
| 310 }, | |
| 311 }, | |
| 312 },], | |
| 313 ['clang==1', { | |
| 314 # TODO(kjellander): Make the code compile without disabling these. | |
| 315 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 316 'cflags!': [ | |
| 317 '-Wextra', | |
| 318 ], | |
| 319 'xcode_settings': { | |
| 320 'WARNING_CFLAGS!': ['-Wextra'], | |
| 321 }, | |
| 322 }], | |
| 323 ['OS=="ios"', { | |
| 324 'mac_bundle_resources': [ | |
| 325 '<(DEPTH)/resources/media/captured-320x240-2s-48.frames', | |
| 326 '<(DEPTH)/resources/media/faces.1280x720_P420.yuv', | |
| 327 '<(DEPTH)/resources/media/faces_I420.jpg', | |
| 328 '<(DEPTH)/resources/media/faces_I422.jpg', | |
| 329 '<(DEPTH)/resources/media/faces_I444.jpg', | |
| 330 '<(DEPTH)/resources/media/faces_I411.jpg', | |
| 331 '<(DEPTH)/resources/media/faces_I400.jpg', | |
| 332 ], | |
| 333 }], | |
| 334 ], | |
| 335 }, # target rtc_media_unittests | |
| 336 ], # targets | |
| 337 'conditions': [ | |
| 338 ['test_isolation_mode != "noop"', { | |
| 339 'targets': [ | |
| 340 { | |
| 341 'target_name': 'rtc_media_unittests_run', | |
| 342 'type': 'none', | |
| 343 'dependencies': [ | |
| 344 'rtc_media_unittests', | |
| 345 ], | |
| 346 'includes': [ | |
| 347 '../build/isolate.gypi', | |
| 348 ], | |
| 349 'sources': [ | |
| 350 'rtc_media_unittests.isolate', | |
| 351 ], | |
| 352 }, | |
| 353 ], | |
| 354 }], | |
| 355 ], # conditions | |
| 356 }], # include_tests==1 | |
| 357 ], # conditions | |
| 358 } | 179 } |
| OLD | NEW |