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# This is the root build file for GN. GN will start processing by loading this 10# file, and recursively load all dependencies until all dependencies are either 11# resolved or known not to exist (which will cause the build to fail). So if 12# you add a new build file, there must be some path of dependencies from this 13# file to your new one or GN won't know about it. 14 15# Use of visibility = clauses: 16# The default visibility for all rtc_ targets is equivalent to "//*", or 17# "all targets in webrtc can depend on this, nothing outside can". 18# 19# When overriding, the choices are: 20# - visibility = [ "*" ] - public. Stuff outside webrtc can use this. 21# - visibility = [ ":*" ] - directory private. 22# As a general guideline, only targets in api/ should have public visibility. 23 24import("//build/config/linux/pkg_config.gni") 25import("//build/config/sanitizers/sanitizers.gni") 26import("//third_party/google_benchmark/buildconfig.gni") 27import("webrtc.gni") 28if (rtc_enable_protobuf) { 29 import("//third_party/protobuf/proto_library.gni") 30} 31if (is_android) { 32 import("//build/config/android/config.gni") 33 import("//build/config/android/rules.gni") 34} 35 36if (!build_with_chromium) { 37 # This target should (transitively) cause everything to be built; if you run 38 # 'ninja default' and then 'ninja all', the second build should do no work. 39 group("default") { 40 testonly = true 41 deps = [ ":webrtc" ] 42 if (rtc_build_examples) { 43 deps += [ "examples" ] 44 } 45 if (rtc_build_tools) { 46 deps += [ "rtc_tools" ] 47 } 48 if (rtc_include_tests) { 49 deps += [ 50 ":fuchsia_perf_tests", 51 ":rtc_unittests", 52 ":video_engine_tests", 53 ":voip_unittests", 54 ":webrtc_nonparallel_tests", 55 ":webrtc_perf_tests", 56 "common_audio:common_audio_unittests", 57 "common_video:common_video_unittests", 58 "examples:examples_unittests", 59 "media:rtc_media_unittests", 60 "modules:modules_tests", 61 "modules:modules_unittests", 62 "modules/audio_coding:audio_coding_tests", 63 "modules/audio_processing:audio_processing_tests", 64 "modules/remote_bitrate_estimator:rtp_to_text", 65 "modules/rtp_rtcp:test_packet_masks_metrics", 66 "modules/video_capture:video_capture_internal_impl", 67 "net/dcsctp:dcsctp_unittests", 68 "pc:peerconnection_unittests", 69 "pc:rtc_pc_unittests", 70 "pc:slow_peer_connection_unittests", 71 "pc:svc_tests", 72 "rtc_tools:rtp_generator", 73 "rtc_tools:video_replay", 74 "stats:rtc_stats_unittests", 75 "system_wrappers:system_wrappers_unittests", 76 "test", 77 "video:screenshare_loopback", 78 "video:sv_loopback", 79 "video:video_loopback", 80 ] 81 if (!is_asan) { 82 # Do not build :webrtc_lib_link_test because lld complains on some OS 83 # (e.g. when target_os = "mac") when is_asan=true. For more details, 84 # see bugs.webrtc.org/11027#c5. 85 deps += [ ":webrtc_lib_link_test" ] 86 } 87 if (is_ios) { 88 deps += [ 89 "examples:apprtcmobile_tests", 90 "sdk:sdk_framework_unittests", 91 "sdk:sdk_unittests", 92 ] 93 } 94 if (is_android) { 95 deps += [ 96 "examples:android_examples_junit_tests", 97 "sdk/android:android_instrumentation_test_apk", 98 "sdk/android:android_sdk_junit_tests", 99 ] 100 } else { 101 deps += [ "modules/video_capture:video_capture_tests" ] 102 } 103 if (rtc_enable_protobuf) { 104 deps += [ 105 "audio:low_bandwidth_audio_perf_test", 106 "logging:rtc_event_log_rtp_dump", 107 "tools_webrtc/perf:webrtc_dashboard_upload", 108 ] 109 } 110 if ((is_linux || is_chromeos) && rtc_use_pipewire) { 111 deps += [ "modules/desktop_capture:shared_screencast_stream_test" ] 112 } 113 } 114 if (target_os == "android") { 115 deps += [ "tools_webrtc:binary_version_check" ] 116 } 117 } 118} 119 120# Abseil Flags by default doesn't register command line flags on mobile 121# platforms, WebRTC tests requires them (e.g. on simualtors) so this 122# config will be applied to testonly targets globally (see webrtc.gni). 123config("absl_flags_configs") { 124 defines = [ "ABSL_FLAGS_STRIP_NAMES=0" ] 125} 126 127config("library_impl_config") { 128 # Build targets that contain WebRTC implementation need this macro to 129 # be defined in order to correctly export symbols when is_component_build 130 # is true. 131 # For more info see: rtc_base/build/rtc_export.h. 132 defines = [ "WEBRTC_LIBRARY_IMPL" ] 133} 134 135# Contains the defines and includes in common.gypi that are duplicated both as 136# target_defaults and direct_dependent_settings. 137config("common_inherited_config") { 138 defines = [] 139 cflags = [] 140 ldflags = [] 141 142 if (rtc_dlog_always_on) { 143 defines += [ "DLOG_ALWAYS_ON" ] 144 } 145 146 if (rtc_enable_symbol_export || is_component_build) { 147 defines += [ "WEBRTC_ENABLE_SYMBOL_EXPORT" ] 148 } 149 if (rtc_enable_objc_symbol_export) { 150 defines += [ "WEBRTC_ENABLE_OBJC_SYMBOL_EXPORT" ] 151 } 152 153 if (!rtc_builtin_ssl_root_certificates) { 154 defines += [ "WEBRTC_EXCLUDE_BUILT_IN_SSL_ROOT_CERTS" ] 155 } 156 157 if (rtc_disable_check_msg) { 158 defines += [ "RTC_DISABLE_CHECK_MSG" ] 159 } 160 161 if (rtc_enable_avx2) { 162 defines += [ "WEBRTC_ENABLE_AVX2" ] 163 } 164 165 if (rtc_enable_win_wgc) { 166 defines += [ "RTC_ENABLE_WIN_WGC" ] 167 } 168 169 # Some tests need to declare their own trace event handlers. If this define is 170 # not set, the first time TRACE_EVENT_* is called it will store the return 171 # value for the current handler in an static variable, so that subsequent 172 # changes to the handler for that TRACE_EVENT_* will be ignored. 173 # So when tests are included, we set this define, making it possible to use 174 # different event handlers in different tests. 175 if (rtc_include_tests) { 176 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1" ] 177 } else { 178 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0" ] 179 } 180 if (build_with_chromium) { 181 defines += [ "WEBRTC_CHROMIUM_BUILD" ] 182 include_dirs = [ 183 # The overrides must be included first as that is the mechanism for 184 # selecting the override headers in Chromium. 185 "../webrtc_overrides", 186 187 # Allow includes to be prefixed with webrtc/ in case it is not an 188 # immediate subdirectory of the top-level. 189 ".", 190 191 # Just like the root WebRTC directory is added to include path, the 192 # corresponding directory tree with generated files needs to be added too. 193 # Note: this path does not change depending on the current target, e.g. 194 # it is always "//gen/third_party/webrtc" when building with Chromium. 195 # See also: http://cs.chromium.org/?q=%5C"default_include_dirs 196 # https://gn.googlesource.com/gn/+/master/docs/reference.md#target_gen_dir 197 target_gen_dir, 198 ] 199 } 200 if (is_posix || is_fuchsia) { 201 defines += [ "WEBRTC_POSIX" ] 202 } 203 if (is_ios) { 204 defines += [ 205 "WEBRTC_MAC", 206 "WEBRTC_IOS", 207 ] 208 } 209 if (is_linux || is_chromeos) { 210 defines += [ "WEBRTC_LINUX" ] 211 } 212 if (is_mac) { 213 defines += [ "WEBRTC_MAC" ] 214 } 215 if (is_fuchsia) { 216 defines += [ "WEBRTC_FUCHSIA" ] 217 } 218 if (is_win) { 219 defines += [ "WEBRTC_WIN" ] 220 } 221 if (is_android) { 222 defines += [ 223 "WEBRTC_LINUX", 224 "WEBRTC_ANDROID", 225 ] 226 227 if (build_with_mozilla) { 228 defines += [ "WEBRTC_ANDROID_OPENSLES" ] 229 } 230 } 231 if (is_chromeos) { 232 defines += [ "CHROMEOS" ] 233 } 234 235 if (rtc_sanitize_coverage != "") { 236 assert(is_clang, "sanitizer coverage requires clang") 237 cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ] 238 ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ] 239 } 240 241 if (is_ubsan) { 242 cflags += [ "-fsanitize=float-cast-overflow" ] 243 } 244} 245 246# TODO(bugs.webrtc.org/9693): Remove the possibility to suppress this warning 247# as soon as WebRTC compiles without it. 248config("no_global_constructors") { 249 if (is_clang) { 250 cflags = [ "-Wno-global-constructors" ] 251 } 252} 253 254config("rtc_prod_config") { 255 # Ideally, WebRTC production code (but not test code) should have these flags. 256 if (is_clang) { 257 cflags = [ 258 "-Wexit-time-destructors", 259 "-Wglobal-constructors", 260 ] 261 } 262} 263 264config("common_config") { 265 cflags = [] 266 cflags_c = [] 267 cflags_cc = [] 268 cflags_objc = [] 269 defines = [] 270 271 if (rtc_enable_protobuf) { 272 defines += [ "WEBRTC_ENABLE_PROTOBUF=1" ] 273 } else { 274 defines += [ "WEBRTC_ENABLE_PROTOBUF=0" ] 275 } 276 277 if (rtc_strict_field_trials) { 278 defines += [ "WEBRTC_STRICT_FIELD_TRIALS=1" ] 279 } else { 280 defines += [ "WEBRTC_STRICT_FIELD_TRIALS=0" ] 281 } 282 283 if (rtc_include_internal_audio_device) { 284 defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ] 285 } 286 287 if (rtc_libvpx_build_vp9) { 288 defines += [ "RTC_ENABLE_VP9" ] 289 } 290 291 if (rtc_include_dav1d_in_internal_decoder_factory) { 292 defines += [ "RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY" ] 293 } 294 295 if (rtc_enable_sctp) { 296 defines += [ "WEBRTC_HAVE_SCTP" ] 297 } 298 299 if (rtc_enable_external_auth) { 300 defines += [ "ENABLE_EXTERNAL_AUTH" ] 301 } 302 303 if (rtc_use_h264) { 304 defines += [ "WEBRTC_USE_H264" ] 305 } 306 307 if (rtc_use_absl_mutex) { 308 defines += [ "WEBRTC_ABSL_MUTEX" ] 309 } 310 311 if (rtc_disable_logging) { 312 defines += [ "RTC_DISABLE_LOGGING" ] 313 } 314 315 if (rtc_disable_trace_events) { 316 defines += [ "RTC_DISABLE_TRACE_EVENTS" ] 317 } 318 319 if (rtc_disable_metrics) { 320 defines += [ "RTC_DISABLE_METRICS" ] 321 } 322 323 if (rtc_exclude_transient_suppressor) { 324 defines += [ "WEBRTC_EXCLUDE_TRANSIENT_SUPPRESSOR" ] 325 } 326 327 if (rtc_exclude_audio_processing_module) { 328 defines += [ "WEBRTC_EXCLUDE_AUDIO_PROCESSING_MODULE" ] 329 } 330 331 if (is_clang) { 332 cflags += [ 333 # TODO(webrtc:13219): Fix -Wshadow instances and enable. 334 "-Wno-shadow", 335 336 # See https://reviews.llvm.org/D56731 for details about this 337 # warning. 338 "-Wctad-maybe-unsupported", 339 ] 340 } 341 342 if (build_with_chromium) { 343 defines += [ 344 # NOTICE: Since common_inherited_config is used in public_configs for our 345 # targets, there's no point including the defines in that config here. 346 # TODO(kjellander): Cleanup unused ones and move defines closer to the 347 # source when webrtc:4256 is completed. 348 "HAVE_WEBRTC_VIDEO", 349 "LOGGING_INSIDE_WEBRTC", 350 ] 351 } else { 352 if (is_posix || is_fuchsia) { 353 cflags_c += [ 354 # TODO(bugs.webrtc.org/9029): enable commented compiler flags. 355 # Some of these flags should also be added to cflags_objc. 356 357 # "-Wextra", (used when building C++ but not when building C) 358 # "-Wmissing-prototypes", (C/Obj-C only) 359 # "-Wmissing-declarations", (ensure this is always used C/C++, etc..) 360 "-Wstrict-prototypes", 361 362 # "-Wpointer-arith", (ensure this is always used C/C++, etc..) 363 # "-Wbad-function-cast", (C/Obj-C only) 364 # "-Wnested-externs", (C/Obj-C only) 365 ] 366 cflags_objc += [ "-Wstrict-prototypes" ] 367 cflags_cc = [ 368 "-Wnon-virtual-dtor", 369 370 # This is enabled for clang; enable for gcc as well. 371 "-Woverloaded-virtual", 372 ] 373 } 374 375 if (is_clang) { 376 cflags += [ "-Wc++11-narrowing" ] 377 378 if (!is_fuchsia) { 379 # Compiling with the Fuchsia SDK results in Wundef errors 380 # TODO(bugs.fuchsia.dev/100722): Remove from (!is_fuchsia) branch when 381 # Fuchsia build errors are fixed. 382 cflags += [ "-Wundef" ] 383 } 384 385 if (!is_nacl) { 386 # Flags NaCl (Clang 3.7) do not recognize. 387 cflags += [ "-Wunused-lambda-capture" ] 388 } 389 } 390 391 if (is_win && !is_clang) { 392 # MSVC warning suppressions (needed to use Abseil). 393 # TODO(bugs.webrtc.org/9274): Remove these warnings as soon as MSVC allows 394 # external headers warning suppression (or fix them upstream). 395 cflags += [ "/wd4702" ] # unreachable code 396 397 # MSVC 2019 warning suppressions for C++17 compiling 398 cflags += 399 [ "/wd5041" ] # out-of-line definition for constexpr static data 400 # member is not needed and is deprecated in C++17 401 } 402 } 403 404 if (current_cpu == "arm64") { 405 defines += [ "WEBRTC_ARCH_ARM64" ] 406 defines += [ "WEBRTC_HAS_NEON" ] 407 } 408 409 if (current_cpu == "arm") { 410 defines += [ "WEBRTC_ARCH_ARM" ] 411 if (arm_version >= 7) { 412 defines += [ "WEBRTC_ARCH_ARM_V7" ] 413 if (arm_use_neon) { 414 defines += [ "WEBRTC_HAS_NEON" ] 415 } 416 } 417 } 418 419 if (current_cpu == "mipsel") { 420 defines += [ "MIPS32_LE" ] 421 if (mips_float_abi == "hard") { 422 defines += [ "MIPS_FPU_LE" ] 423 } 424 if (mips_arch_variant == "r2") { 425 defines += [ "MIPS32_R2_LE" ] 426 } 427 if (mips_dsp_rev == 1) { 428 defines += [ "MIPS_DSP_R1_LE" ] 429 } else if (mips_dsp_rev == 2) { 430 defines += [ 431 "MIPS_DSP_R1_LE", 432 "MIPS_DSP_R2_LE", 433 ] 434 } 435 } 436 437 if (is_android && !is_clang) { 438 # The Android NDK doesn"t provide optimized versions of these 439 # functions. Ensure they are disabled for all compilers. 440 cflags += [ 441 "-fno-builtin-cos", 442 "-fno-builtin-sin", 443 "-fno-builtin-cosf", 444 "-fno-builtin-sinf", 445 ] 446 } 447 448 if (use_fuzzing_engine && optimize_for_fuzzing) { 449 # Used in Chromium's overrides to disable logging 450 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ] 451 } 452 453 if (!build_with_chromium && rtc_win_undef_unicode) { 454 cflags += [ 455 "/UUNICODE", 456 "/U_UNICODE", 457 ] 458 } 459} 460 461config("common_objc") { 462 frameworks = [ "Foundation.framework" ] 463} 464 465if (!build_with_chromium) { 466 # Target to build all the WebRTC production code. 467 rtc_static_library("webrtc") { 468 # Only the root target and the test should depend on this. 469 visibility = [ 470 "//:default", 471 "//:webrtc_lib_link_test", 472 ] 473 474 sources = [] 475 complete_static_lib = true 476 suppressed_configs += [ "//build/config/compiler:thin_archive" ] 477 defines = [] 478 479 deps = [ 480 "api:create_peerconnection_factory", 481 "api:libjingle_peerconnection_api", 482 "api:rtc_error", 483 "api:transport_api", 484 "api/crypto", 485 "api/rtc_event_log:rtc_event_log_factory", 486 "api/task_queue", 487 "api/task_queue:default_task_queue_factory", 488 "api/test/metrics", 489 "audio", 490 "call", 491 "common_audio", 492 "common_video", 493 "logging:rtc_event_log_api", 494 "media", 495 "modules", 496 "modules/video_capture:video_capture_internal_impl", 497 "p2p:rtc_p2p", 498 "pc:libjingle_peerconnection", 499 "pc:rtc_pc", 500 "rtc_base", 501 "sdk", 502 "video", 503 ] 504 505 if (rtc_include_builtin_audio_codecs) { 506 deps += [ 507 "api/audio_codecs:builtin_audio_decoder_factory", 508 "api/audio_codecs:builtin_audio_encoder_factory", 509 ] 510 } 511 512 if (rtc_include_builtin_video_codecs) { 513 deps += [ 514 "api/video_codecs:builtin_video_decoder_factory", 515 "api/video_codecs:builtin_video_encoder_factory", 516 ] 517 } 518 519 if (build_with_mozilla) { 520 deps += [ 521 "api/video:video_frame", 522 "api/video:video_rtp_headers", 523 ] 524 } else { 525 deps += [ 526 "api", 527 "logging", 528 "p2p", 529 "pc", 530 "stats", 531 ] 532 } 533 534 if (rtc_enable_protobuf) { 535 deps += [ "logging:rtc_event_log_proto" ] 536 } 537 } 538 539 if (rtc_include_tests && !is_asan) { 540 rtc_executable("webrtc_lib_link_test") { 541 testonly = true 542 543 # This target is used for checking to link, so do not check dependencies 544 # on gn check. 545 check_includes = false # no-presubmit-check TODO(bugs.webrtc.org/12785) 546 547 sources = [ "webrtc_lib_link_test.cc" ] 548 deps = [ 549 # NOTE: Don't add deps here. If this test fails to link, it means you 550 # need to add stuff to the webrtc static lib target above. 551 ":webrtc", 552 ] 553 } 554 } 555} 556 557if (use_libfuzzer || use_afl) { 558 # This target is only here for gn to discover fuzzer build targets under 559 # webrtc/test/fuzzers/. 560 group("webrtc_fuzzers_dummy") { 561 testonly = true 562 deps = [ "test/fuzzers:webrtc_fuzzer_main" ] 563 } 564} 565 566if (rtc_include_tests && !build_with_chromium) { 567 rtc_test("rtc_unittests") { 568 testonly = true 569 570 deps = [ 571 "api:compile_all_headers", 572 "api:rtc_api_unittests", 573 "api/audio/test:audio_api_unittests", 574 "api/audio_codecs/test:audio_codecs_api_unittests", 575 "api/numerics:numerics_unittests", 576 "api/task_queue:pending_task_safety_flag_unittests", 577 "api/test/metrics:metrics_unittests", 578 "api/transport:stun_unittest", 579 "api/video/test:rtc_api_video_unittests", 580 "api/video_codecs/test:video_codecs_api_unittests", 581 "api/voip:compile_all_headers", 582 "call:fake_network_pipe_unittests", 583 "p2p:libstunprober_unittests", 584 "p2p:rtc_p2p_unittests", 585 "rtc_base:callback_list_unittests", 586 "rtc_base:rtc_base_approved_unittests", 587 "rtc_base:rtc_base_unittests", 588 "rtc_base:rtc_json_unittests", 589 "rtc_base:rtc_numerics_unittests", 590 "rtc_base:rtc_operations_chain_unittests", 591 "rtc_base:rtc_task_queue_unittests", 592 "rtc_base:sigslot_unittest", 593 "rtc_base:untyped_function_unittest", 594 "rtc_base:weak_ptr_unittests", 595 "rtc_base/experiments:experiments_unittests", 596 "rtc_base/system:file_wrapper_unittests", 597 "rtc_base/task_utils:repeating_task_unittests", 598 "rtc_base/units:units_unittests", 599 "sdk:sdk_tests", 600 "test:rtp_test_utils", 601 "test:test_main", 602 "test/network:network_emulation_unittests", 603 ] 604 605 if (rtc_enable_protobuf) { 606 deps += [ "logging:rtc_event_log_tests" ] 607 } 608 609 if (is_android) { 610 # Do not use Chromium's launcher. native_unittests defines its own JNI_OnLoad. 611 use_default_launcher = false 612 613 deps += [ 614 "sdk/android:native_unittests", 615 "sdk/android:native_unittests_java", 616 "//testing/android/native_test:native_test_support", 617 ] 618 shard_timeout = 900 619 } 620 } 621 622 if (enable_google_benchmarks) { 623 rtc_test("benchmarks") { 624 testonly = true 625 deps = [ 626 "rtc_base/synchronization:mutex_benchmark", 627 "test:benchmark_main", 628 ] 629 } 630 } 631 632 # TODO(pbos): Rename test suite, this is no longer "just" for video targets. 633 video_engine_tests_resources = [ 634 "resources/foreman_cif_short.yuv", 635 "resources/voice_engine/audio_long16.pcm", 636 ] 637 638 if (is_ios) { 639 bundle_data("video_engine_tests_bundle_data") { 640 testonly = true 641 sources = video_engine_tests_resources 642 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] 643 } 644 } 645 646 rtc_test("video_engine_tests") { 647 testonly = true 648 deps = [ 649 "audio:audio_tests", 650 651 # TODO(eladalon): call_tests aren't actually video-specific, so we 652 # should move them to a more appropriate test suite. 653 "call:call_tests", 654 "call/adaptation:resource_adaptation_tests", 655 "test:test_common", 656 "test:test_main", 657 "test:video_test_common", 658 "video:video_tests", 659 "video/adaptation:video_adaptation_tests", 660 ] 661 data = video_engine_tests_resources 662 if (is_android) { 663 use_default_launcher = false 664 deps += [ 665 "//build/android/gtest_apk:native_test_instrumentation_test_runner_java", 666 "//testing/android/native_test:native_test_java", 667 "//testing/android/native_test:native_test_support", 668 ] 669 shard_timeout = 900 670 } 671 if (is_ios) { 672 deps += [ ":video_engine_tests_bundle_data" ] 673 } 674 } 675 676 webrtc_perf_tests_resources = [ 677 "resources/ConferenceMotion_1280_720_50.yuv", 678 "resources/audio_coding/speech_mono_16kHz.pcm", 679 "resources/audio_coding/speech_mono_32_48kHz.pcm", 680 "resources/audio_coding/testfile32kHz.pcm", 681 "resources/difficult_photo_1850_1110.yuv", 682 "resources/foreman_cif.yuv", 683 "resources/paris_qcif.yuv", 684 "resources/photo_1850_1110.yuv", 685 "resources/presentation_1850_1110.yuv", 686 "resources/voice_engine/audio_long16.pcm", 687 "resources/web_screenshot_1850_1110.yuv", 688 ] 689 690 if (is_ios) { 691 bundle_data("webrtc_perf_tests_bundle_data") { 692 testonly = true 693 sources = webrtc_perf_tests_resources 694 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] 695 } 696 } 697 698 rtc_test("webrtc_perf_tests") { 699 testonly = true 700 deps = [ 701 "audio:audio_perf_tests", 702 "call:call_perf_tests", 703 "modules/audio_coding:audio_coding_perf_tests", 704 "modules/audio_processing:audio_processing_perf_tests", 705 "pc:peerconnection_perf_tests", 706 "test:test_main", 707 "video:video_full_stack_tests", 708 "video:video_pc_full_stack_tests", 709 ] 710 711 data = webrtc_perf_tests_resources 712 if (is_android) { 713 use_default_launcher = false 714 deps += [ 715 "//build/android/gtest_apk:native_test_instrumentation_test_runner_java", 716 "//testing/android/native_test:native_test_java", 717 "//testing/android/native_test:native_test_support", 718 ] 719 shard_timeout = 4500 720 } 721 if (is_ios) { 722 deps += [ ":webrtc_perf_tests_bundle_data" ] 723 } 724 } 725 726 rtc_test("fuchsia_perf_tests") { 727 testonly = true 728 deps = [ 729 #TODO(fxbug.dev/115601) - Enable when fixed 730 #"call:call_perf_tests", 731 #"video:video_pc_full_stack_tests", 732 "modules/audio_coding:audio_coding_perf_tests", 733 "modules/audio_processing:audio_processing_perf_tests", 734 "pc:peerconnection_perf_tests", 735 "test:test_main", 736 "video:video_full_stack_tests", 737 ] 738 739 data = webrtc_perf_tests_resources 740 } 741 742 rtc_test("webrtc_nonparallel_tests") { 743 testonly = true 744 deps = [ "rtc_base:rtc_base_nonparallel_tests" ] 745 if (is_android) { 746 deps += [ "//testing/android/native_test:native_test_support" ] 747 shard_timeout = 900 748 } 749 } 750 751 rtc_test("voip_unittests") { 752 testonly = true 753 deps = [ 754 "api/voip:compile_all_headers", 755 "api/voip:voip_engine_factory_unittests", 756 "audio/voip/test:audio_channel_unittests", 757 "audio/voip/test:audio_egress_unittests", 758 "audio/voip/test:audio_ingress_unittests", 759 "audio/voip/test:voip_core_unittests", 760 "test:test_main", 761 ] 762 } 763} 764 765# Build target for standalone dcsctp 766rtc_static_library("dcsctp") { 767 # Only the root target should depend on this. 768 visibility = [ "//:default" ] 769 sources = [] 770 complete_static_lib = true 771 suppressed_configs += [ "//build/config/compiler:thin_archive" ] 772 defines = [] 773 deps = [ 774 "net/dcsctp/public:factory", 775 "net/dcsctp/public:socket", 776 "net/dcsctp/public:types", 777 "net/dcsctp/socket:dcsctp_socket", 778 "net/dcsctp/timer:task_queue_timeout", 779 ] 780} 781 782# ---- Poisons ---- 783# 784# Here is one empty dummy target for each poison type (needed because 785# "being poisonous with poison type foo" is implemented as "depends on 786# //:poison_foo"). 787# 788# The set of poison_* targets needs to be kept in sync with the 789# `all_poison_types` list in webrtc.gni. 790# 791group("poison_audio_codecs") { 792} 793 794group("poison_default_task_queue") { 795} 796 797group("poison_default_echo_detector") { 798} 799 800group("poison_rtc_json") { 801} 802 803group("poison_software_video_codecs") { 804} 805