| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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 import("../webrtc.gni") | 9 import("../webrtc.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 "video_capturer.cc", | 46 "video_capturer.cc", |
| 47 "video_capturer.h", | 47 "video_capturer.h", |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 if (!build_with_chromium && is_clang) { | 50 if (!build_with_chromium && is_clang) { |
| 51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 53 } | 53 } |
| 54 | 54 |
| 55 deps = [ | 55 deps = [ |
| 56 "..:webrtc_common", | |
| 57 "../base:rtc_base_approved", | |
| 58 "../base:rtc_task_queue", | |
| 59 "../common_video", | 56 "../common_video", |
| 60 "../media:rtc_media_base", | 57 "../media:rtc_media_base", |
| 61 "../modules/video_capture:video_capture_module", | 58 "../modules/video_capture:video_capture_module", |
| 62 "../system_wrappers", | |
| 63 ] | 59 ] |
| 64 } | 60 } |
| 65 | 61 |
| 66 rtc_source_set("rtp_test_utils") { | 62 rtc_source_set("rtp_test_utils") { |
| 67 testonly = true | 63 testonly = true |
| 68 sources = [ | 64 sources = [ |
| 69 "rtcp_packet_parser.cc", | 65 "rtcp_packet_parser.cc", |
| 70 "rtcp_packet_parser.h", | 66 "rtcp_packet_parser.h", |
| 71 "rtp_file_reader.cc", | 67 "rtp_file_reader.cc", |
| 72 "rtp_file_reader.h", | 68 "rtp_file_reader.h", |
| 73 "rtp_file_writer.cc", | 69 "rtp_file_writer.cc", |
| 74 "rtp_file_writer.h", | 70 "rtp_file_writer.h", |
| 75 ] | 71 ] |
| 76 | 72 |
| 77 if (!build_with_chromium && is_clang) { | 73 if (!build_with_chromium && is_clang) { |
| 78 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 74 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 79 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 75 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 80 } | 76 } |
| 81 | 77 |
| 82 deps = [ | 78 deps = [ |
| 83 "..:webrtc_common", | 79 "..:webrtc_common", |
| 84 "../base:rtc_base_approved", | |
| 85 "../modules/rtp_rtcp", | 80 "../modules/rtp_rtcp", |
| 86 "//testing/gtest", | 81 "//testing/gtest", |
| 87 ] | 82 ] |
| 88 } | 83 } |
| 89 | 84 |
| 90 rtc_source_set("field_trial") { | 85 rtc_source_set("field_trial") { |
| 91 testonly = true | 86 testonly = true |
| 92 sources = [ | 87 sources = [ |
| 93 "field_trial.cc", | 88 "field_trial.cc", |
| 94 "field_trial.h", | 89 "field_trial.h", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 105 testonly = true | 100 testonly = true |
| 106 sources = [ | 101 sources = [ |
| 107 "test_main.cc", | 102 "test_main.cc", |
| 108 ] | 103 ] |
| 109 | 104 |
| 110 public_deps = [ | 105 public_deps = [ |
| 111 ":test_support", | 106 ":test_support", |
| 112 ] | 107 ] |
| 113 deps = [ | 108 deps = [ |
| 114 ":field_trial", | 109 ":field_trial", |
| 115 "../base:rtc_base_approved", | |
| 116 "../system_wrappers:metrics_default", | 110 "../system_wrappers:metrics_default", |
| 117 "//testing/gmock", | 111 "//testing/gmock", |
| 118 "//testing/gtest", | 112 "//testing/gtest", |
| 119 "//third_party/gflags", | 113 "//third_party/gflags", |
| 120 ] | 114 ] |
| 121 } | 115 } |
| 122 | 116 |
| 123 rtc_source_set("fileutils") { | 117 rtc_source_set("fileutils") { |
| 124 testonly = true | 118 testonly = true |
| 125 sources = [ | 119 sources = [ |
| 126 "testsupport/fileutils.cc", | 120 "testsupport/fileutils.cc", |
| 127 "testsupport/fileutils.h", | 121 "testsupport/fileutils.h", |
| 128 ] | 122 ] |
| 129 if (is_ios) { | 123 if (is_ios) { |
| 130 sources += [ "testsupport/iosfileutils.mm" ] | 124 sources += [ "testsupport/iosfileutils.mm" ] |
| 131 } | 125 } |
| 132 visibility = [ ":*" ] | 126 visibility = [ ":*" ] |
| 133 deps = [ | |
| 134 "..:webrtc_common", | |
| 135 "../base:rtc_base_approved", | |
| 136 ] | |
| 137 if (is_ios) { | |
| 138 deps += [ "../sdk:rtc_sdk_common_objc" ] | |
| 139 } | |
| 140 if (is_win) { | |
| 141 deps += [ "../base:rtc_base" ] | |
| 142 } | |
| 143 } | 127 } |
| 144 | 128 |
| 145 rtc_source_set("video_test_support") { | 129 rtc_source_set("video_test_support") { |
| 146 testonly = true | 130 testonly = true |
| 147 | 131 |
| 148 sources = [ | 132 sources = [ |
| 149 "testsupport/frame_reader.h", | 133 "testsupport/frame_reader.h", |
| 150 "testsupport/frame_writer.h", | 134 "testsupport/frame_writer.h", |
| 151 "testsupport/metrics/video_metrics.cc", | 135 "testsupport/metrics/video_metrics.cc", |
| 152 "testsupport/metrics/video_metrics.h", | 136 "testsupport/metrics/video_metrics.h", |
| 153 "testsupport/mock/mock_frame_reader.h", | 137 "testsupport/mock/mock_frame_reader.h", |
| 154 "testsupport/mock/mock_frame_writer.h", | 138 "testsupport/mock/mock_frame_writer.h", |
| 155 "testsupport/y4m_frame_writer.cc", | 139 "testsupport/y4m_frame_writer.cc", |
| 156 "testsupport/yuv_frame_reader.cc", | 140 "testsupport/yuv_frame_reader.cc", |
| 157 "testsupport/yuv_frame_writer.cc", | 141 "testsupport/yuv_frame_writer.cc", |
| 158 ] | 142 ] |
| 159 | 143 |
| 160 deps = [ | 144 deps = [ |
| 161 ":test_support", | |
| 162 ":video_test_common", | |
| 163 "..:webrtc_common", | |
| 164 "../base:rtc_base_approved", | 145 "../base:rtc_base_approved", |
| 165 "../common_video", | 146 "../common_video", |
| 166 "../system_wrappers", | 147 "../system_wrappers", |
| 167 "//testing/gmock", | 148 "//testing/gmock", |
| 168 "//testing/gtest", | 149 "//testing/gtest", |
| 169 "//third_party/gflags", | 150 "//third_party/gflags", |
| 170 ] | 151 ] |
| 171 | 152 |
| 172 public_deps = [ | 153 public_deps = [ |
| 173 ":fileutils", | 154 ":fileutils", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 202 "testsupport/packet_reader.cc", | 183 "testsupport/packet_reader.cc", |
| 203 "testsupport/packet_reader.h", | 184 "testsupport/packet_reader.h", |
| 204 "testsupport/perf_test.cc", | 185 "testsupport/perf_test.cc", |
| 205 "testsupport/perf_test.h", | 186 "testsupport/perf_test.h", |
| 206 "testsupport/trace_to_stderr.cc", | 187 "testsupport/trace_to_stderr.cc", |
| 207 "testsupport/trace_to_stderr.h", | 188 "testsupport/trace_to_stderr.h", |
| 208 "testsupport/unittest_utils.h", | 189 "testsupport/unittest_utils.h", |
| 209 ] | 190 ] |
| 210 | 191 |
| 211 deps = [ | 192 deps = [ |
| 212 "..:webrtc_common", | |
| 213 "../base:gtest_prod", | 193 "../base:gtest_prod", |
| 214 "../base:rtc_base_approved", | 194 "../base:rtc_base_approved", |
| 215 "../common_video", | 195 "../common_video", |
| 216 "../system_wrappers", | 196 "../system_wrappers", |
| 217 "//testing/gmock", | 197 "//testing/gmock", |
| 218 "//testing/gtest", | 198 "//testing/gtest", |
| 219 "//third_party/gflags", | 199 "//third_party/gflags", |
| 220 ] | 200 ] |
| 221 | 201 |
| 222 public_deps = [ | 202 public_deps = [ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 deps += [ "//testing/android/native_test:native_test_support" ] | 288 deps += [ "//testing/android/native_test:native_test_support" ] |
| 309 shard_timeout = 900 | 289 shard_timeout = 900 |
| 310 } | 290 } |
| 311 | 291 |
| 312 if (is_ios) { | 292 if (is_ios) { |
| 313 deps += [ ":test_support_unittests_bundle_data" ] | 293 deps += [ ":test_support_unittests_bundle_data" ] |
| 314 } | 294 } |
| 315 | 295 |
| 316 deps += [ | 296 deps += [ |
| 317 ":direct_transport", | 297 ":direct_transport", |
| 318 ":fake_audio_device", | |
| 319 ":fileutils_unittests", | 298 ":fileutils_unittests", |
| 320 ":rtp_test_utils", | |
| 321 ":test_common", | 299 ":test_common", |
| 322 ":test_main", | 300 ":test_main", |
| 323 ":video_test_common", | 301 ":video_test_common", |
| 324 ":video_test_support", | 302 ":video_test_support", |
| 325 "../api:video_frame_api", | |
| 326 "../base:rtc_base_approved", | |
| 327 "../call:call_interfaces", | |
| 328 "../common_audio", | |
| 329 "../modules/rtp_rtcp", | |
| 330 "../modules/video_capture", | 303 "../modules/video_capture", |
| 331 "../system_wrappers", | |
| 332 "//testing/gmock", | 304 "//testing/gmock", |
| 333 "//testing/gtest", | 305 "//testing/gtest", |
| 334 "//third_party/gflags", | 306 "//third_party/gflags", |
| 335 ] | 307 ] |
| 336 } | 308 } |
| 337 rtc_source_set("fileutils_unittests") { | 309 rtc_source_set("fileutils_unittests") { |
| 338 testonly = true | 310 testonly = true |
| 339 sources = [ | 311 sources = [ |
| 340 "testsupport/fileutils_unittest.cc", | 312 "testsupport/fileutils_unittest.cc", |
| 341 ] | 313 ] |
| 342 deps = [ | 314 deps = [ |
| 343 ":fileutils", | 315 ":fileutils", |
| 344 ":test_support", | |
| 345 "//testing/gmock", | 316 "//testing/gmock", |
| 346 "//testing/gtest", | 317 "//testing/gtest", |
| 347 ] | 318 ] |
| 348 } | 319 } |
| 349 | 320 |
| 350 rtc_source_set("direct_transport") { | 321 rtc_source_set("direct_transport") { |
| 351 testonly = true | 322 testonly = true |
| 352 sources = [ | 323 sources = [ |
| 353 "direct_transport.cc", | 324 "direct_transport.cc", |
| 354 "direct_transport.h", | 325 "direct_transport.h", |
| 355 "fake_network_pipe.cc", | 326 "fake_network_pipe.cc", |
| 356 "fake_network_pipe.h", | 327 "fake_network_pipe.h", |
| 357 ] | 328 ] |
| 358 if (!build_with_chromium && is_clang) { | 329 if (!build_with_chromium && is_clang) { |
| 359 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 330 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 360 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 331 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 361 } | 332 } |
| 362 deps = [ | 333 deps = [ |
| 363 "..:webrtc_common", | |
| 364 "../api:transport_api", | 334 "../api:transport_api", |
| 365 "../base:rtc_base_approved", | 335 "../base:rtc_base_approved", |
| 366 "../call", | 336 "../call", |
| 367 "../modules/rtp_rtcp", | |
| 368 "../system_wrappers", | |
| 369 ] | 337 ] |
| 370 } | 338 } |
| 371 | 339 |
| 372 rtc_source_set("fake_audio_device") { | 340 rtc_source_set("fake_audio_device") { |
| 373 testonly = true | 341 testonly = true |
| 374 sources = [ | 342 sources = [ |
| 375 "fake_audio_device.cc", | 343 "fake_audio_device.cc", |
| 376 "fake_audio_device.h", | 344 "fake_audio_device.h", |
| 377 ] | 345 ] |
| 378 if (!build_with_chromium && is_clang) { | 346 if (!build_with_chromium && is_clang) { |
| 379 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 347 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 380 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 348 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 381 } | 349 } |
| 382 deps = [ | 350 deps = [ |
| 383 "..:webrtc_common", | |
| 384 "../base:rtc_base_approved", | 351 "../base:rtc_base_approved", |
| 385 "../common_audio", | 352 "../modules/audio_device:audio_device", |
| 386 "../modules/audio_device", | |
| 387 "../system_wrappers", | |
| 388 ] | 353 ] |
| 389 } | 354 } |
| 390 | 355 |
| 391 rtc_source_set("test_common") { | 356 rtc_source_set("test_common") { |
| 392 testonly = true | 357 testonly = true |
| 393 sources = [ | 358 sources = [ |
| 394 "call_test.cc", | 359 "call_test.cc", |
| 395 "call_test.h", | 360 "call_test.h", |
| 396 "configurable_frame_size_encoder.cc", | 361 "configurable_frame_size_encoder.cc", |
| 397 "configurable_frame_size_encoder.h", | 362 "configurable_frame_size_encoder.h", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 395 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 431 } | 396 } |
| 432 | 397 |
| 433 deps = [ | 398 deps = [ |
| 434 ":direct_transport", | 399 ":direct_transport", |
| 435 ":fake_audio_device", | 400 ":fake_audio_device", |
| 436 ":rtp_test_utils", | 401 ":rtp_test_utils", |
| 437 ":test_support", | 402 ":test_support", |
| 438 ":video_test_common", | 403 ":video_test_common", |
| 439 "..:webrtc_common", | 404 "..:webrtc_common", |
| 440 "../api:transport_api", | |
| 441 "../api:video_frame_api", | |
| 442 "../api/audio_codecs:builtin_audio_decoder_factory", | |
| 443 "../api/video_codecs:video_codecs_api", | 405 "../api/video_codecs:video_codecs_api", |
| 444 "../audio", | 406 "../audio", |
| 445 "../base:rtc_base_approved", | 407 "../base:rtc_base_approved", |
| 446 "../base:rtc_task_queue", | |
| 447 "../call", | 408 "../call", |
| 448 "../logging:rtc_event_log_api", | |
| 449 "../modules/audio_device:mock_audio_device", | |
| 450 "../modules/audio_mixer:audio_mixer_impl", | 409 "../modules/audio_mixer:audio_mixer_impl", |
| 451 "../modules/audio_processing", | 410 "../modules/audio_processing", |
| 452 "../modules/rtp_rtcp:rtp_rtcp", | |
| 453 "../modules/video_coding:webrtc_h264", | |
| 454 "../modules/video_coding:webrtc_vp8", | |
| 455 "../modules/video_coding:webrtc_vp9", | |
| 456 "../system_wrappers", | |
| 457 "../video", | 411 "../video", |
| 458 "../voice_engine", | |
| 459 "//testing/gmock", | 412 "//testing/gmock", |
| 460 "//testing/gtest", | 413 "//testing/gtest", |
| 461 ] | 414 ] |
| 462 if (!is_android) { | 415 if (!is_android) { |
| 463 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 416 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 464 } | 417 } |
| 465 } | 418 } |
| 466 | 419 |
| 467 config("test_renderer_exported_config") { | 420 config("test_renderer_exported_config") { |
| 468 if (is_win && is_clang) { | 421 if (is_win && is_clang) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 477 |
| 525 public_configs = [ ":test_renderer_exported_config" ] | 478 public_configs = [ ":test_renderer_exported_config" ] |
| 526 | 479 |
| 527 if (!build_with_chromium && is_clang) { | 480 if (!build_with_chromium && is_clang) { |
| 528 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 481 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 529 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 482 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 530 } | 483 } |
| 531 | 484 |
| 532 deps = [ | 485 deps = [ |
| 533 ":test_support", | 486 ":test_support", |
| 534 "..:webrtc_common", | |
| 535 "../base:rtc_base_approved", | |
| 536 "../common_video", | |
| 537 "../modules/media_file", | 487 "../modules/media_file", |
| 538 "//testing/gtest", | 488 "//testing/gtest", |
| 539 ] | 489 ] |
| 540 } | 490 } |
| 541 | 491 |
| 542 rtc_source_set("audio_codec_mocks") { | 492 rtc_source_set("audio_codec_mocks") { |
| 543 testonly = true | 493 testonly = true |
| 544 sources = [ | 494 sources = [ |
| 545 "mock_audio_decoder.h", | 495 "mock_audio_decoder.h", |
| 546 "mock_audio_decoder_factory.h", | 496 "mock_audio_decoder_factory.h", |
| 547 ] | 497 ] |
| 548 deps = [ | |
| 549 ":test_support", | |
| 550 "../api/audio_codecs:audio_codecs_api", | |
| 551 "../api/audio_codecs:builtin_audio_decoder_factory", | |
| 552 "../base:rtc_base_approved", | |
| 553 ] | |
| 554 } | 498 } |
| OLD | NEW |