wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 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 | |
Patrik Höglund | 29dd6d7 | 2017-12-01 11:35:26 +0100 | [diff] [blame] | 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 | |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 15 | import("//build/config/linux/pkg_config.gni") |
| 16 | import("//build/config/sanitizers/sanitizers.gni") |
| 17 | import("webrtc.gni") |
| 18 | import("//third_party/protobuf/proto_library.gni") |
| 19 | if (is_android) { |
| 20 | import("//build/config/android/config.gni") |
| 21 | import("//build/config/android/rules.gni") |
| 22 | } |
ehmaldonado | 37d7a22 | 2016-11-08 06:34:20 -0800 | [diff] [blame] | 23 | |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 24 | if (!build_with_chromium) { |
Patrik Höglund | 29dd6d7 | 2017-12-01 11:35:26 +0100 | [diff] [blame] | 25 | # This target should (transitively) cause everything to be built; if you run |
| 26 | # 'ninja default' and then 'ninja all', the second build should do no work. |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 27 | group("default") { |
| 28 | testonly = true |
| 29 | deps = [ |
| 30 | ":webrtc", |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 31 | ] |
Joachim Bauch | 93e9134 | 2017-12-07 01:25:53 +0100 | [diff] [blame] | 32 | if (rtc_build_examples) { |
| 33 | deps += [ "examples" ] |
| 34 | } |
| 35 | if (rtc_build_tools) { |
| 36 | deps += [ "rtc_tools" ] |
| 37 | } |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 38 | if (rtc_include_tests) { |
Patrik Höglund | 29dd6d7 | 2017-12-01 11:35:26 +0100 | [diff] [blame] | 39 | deps += [ |
| 40 | ":rtc_unittests", |
| 41 | ":video_engine_tests", |
| 42 | ":webrtc_nonparallel_tests", |
| 43 | ":webrtc_perf_tests", |
| 44 | "common_audio:common_audio_unittests", |
| 45 | "common_video:common_video_unittests", |
| 46 | "media:rtc_media_unittests", |
| 47 | "modules:modules_tests", |
| 48 | "modules:modules_unittests", |
| 49 | "modules/audio_coding:audio_coding_tests", |
| 50 | "modules/audio_processing:audio_processing_tests", |
| 51 | "modules/remote_bitrate_estimator:bwe_simulations_tests", |
| 52 | "modules/rtp_rtcp:test_packet_masks_metrics", |
| 53 | "modules/video_capture:video_capture_internal_impl", |
| 54 | "ortc:ortc_unittests", |
| 55 | "pc:peerconnection_unittests", |
| 56 | "pc:rtc_pc_unittests", |
| 57 | "rtc_base:rtc_base_tests_utils", |
| 58 | "stats:rtc_stats_unittests", |
| 59 | "system_wrappers:system_wrappers_unittests", |
| 60 | "test", |
| 61 | "video:screenshare_loopback", |
| 62 | "video:video_loopback", |
| 63 | "voice_engine:voice_engine_unittests", |
| 64 | ] |
| 65 | if (is_android) { |
| 66 | deps += [ |
| 67 | ":android_junit_tests", |
| 68 | "sdk/android:libjingle_peerconnection_android_unittest", |
| 69 | ] |
| 70 | } else { |
| 71 | deps += [ "modules/video_capture:video_capture_tests" ] |
| 72 | } |
| 73 | if (rtc_enable_protobuf) { |
| 74 | deps += [ |
| 75 | "audio:low_bandwidth_audio_test", |
| 76 | "logging:rtc_event_log2rtp_dump", |
| 77 | ] |
| 78 | } |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | # Contains the defines and includes in common.gypi that are duplicated both as |
| 84 | # target_defaults and direct_dependent_settings. |
| 85 | config("common_inherited_config") { |
| 86 | defines = [] |
| 87 | cflags = [] |
| 88 | ldflags = [] |
| 89 | if (build_with_mozilla) { |
| 90 | defines += [ "WEBRTC_MOZILLA_BUILD" ] |
| 91 | } |
| 92 | |
| 93 | # Some tests need to declare their own trace event handlers. If this define is |
| 94 | # not set, the first time TRACE_EVENT_* is called it will store the return |
| 95 | # value for the current handler in an static variable, so that subsequent |
| 96 | # changes to the handler for that TRACE_EVENT_* will be ignored. |
| 97 | # So when tests are included, we set this define, making it possible to use |
| 98 | # different event handlers in different tests. |
ehmaldonado | 37d7a22 | 2016-11-08 06:34:20 -0800 | [diff] [blame] | 99 | if (rtc_include_tests) { |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 100 | defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1" ] |
| 101 | } else { |
| 102 | defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0" ] |
| 103 | } |
| 104 | if (build_with_chromium) { |
| 105 | defines += [ |
| 106 | # TODO(kjellander): Cleanup unused ones and move defines closer to |
| 107 | # the source when webrtc:4256 is completed. |
| 108 | "FEATURE_ENABLE_VOICEMAIL", |
| 109 | "GTEST_RELATIVE_PATH", |
| 110 | "WEBRTC_CHROMIUM_BUILD", |
| 111 | ] |
| 112 | include_dirs = [ |
| 113 | # The overrides must be included first as that is the mechanism for |
| 114 | # selecting the override headers in Chromium. |
| 115 | "../webrtc_overrides", |
| 116 | |
| 117 | # Allow includes to be prefixed with webrtc/ in case it is not an |
| 118 | # immediate subdirectory of the top-level. |
| 119 | ".", |
| 120 | ] |
| 121 | } |
| 122 | if (is_posix) { |
| 123 | defines += [ "WEBRTC_POSIX" ] |
| 124 | } |
| 125 | if (is_ios) { |
| 126 | defines += [ |
| 127 | "WEBRTC_MAC", |
| 128 | "WEBRTC_IOS", |
| 129 | ] |
| 130 | } |
| 131 | if (is_linux) { |
| 132 | defines += [ "WEBRTC_LINUX" ] |
| 133 | } |
| 134 | if (is_mac) { |
| 135 | defines += [ "WEBRTC_MAC" ] |
| 136 | } |
Sergey Ulanov | 6acefdb | 2017-12-11 17:38:13 -0800 | [diff] [blame] | 137 | if (is_fuchsia) { |
| 138 | defines += [ "WEBRTC_FUCHSIA" ] |
| 139 | } |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 140 | if (is_win) { |
| 141 | defines += [ |
| 142 | "WEBRTC_WIN", |
| 143 | "_CRT_SECURE_NO_WARNINGS", # Suppress warnings about _vsnprinf |
| 144 | ] |
| 145 | } |
| 146 | if (is_android) { |
| 147 | defines += [ |
| 148 | "WEBRTC_LINUX", |
| 149 | "WEBRTC_ANDROID", |
| 150 | ] |
| 151 | } |
| 152 | if (is_chromeos) { |
| 153 | defines += [ "CHROMEOS" ] |
| 154 | } |
| 155 | |
| 156 | if (rtc_sanitize_coverage != "") { |
| 157 | assert(is_clang, "sanitizer coverage requires clang") |
| 158 | cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ] |
| 159 | ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ] |
| 160 | } |
| 161 | |
| 162 | if (is_ubsan) { |
| 163 | cflags += [ "-fsanitize=float-cast-overflow" ] |
| 164 | } |
| 165 | |
| 166 | # TODO(GYP): Support these in GN. |
| 167 | # if (is_bsd) { |
| 168 | # defines += [ "BSD" ] |
| 169 | # } |
| 170 | # if (is_openbsd) { |
| 171 | # defines += [ "OPENBSD" ] |
| 172 | # } |
| 173 | # if (is_freebsd) { |
| 174 | # defines += [ "FREEBSD" ] |
| 175 | # } |
| 176 | } |
| 177 | |
| 178 | config("common_config") { |
| 179 | cflags = [] |
| 180 | cflags_cc = [] |
| 181 | defines = [] |
| 182 | |
| 183 | if (rtc_enable_protobuf) { |
| 184 | defines += [ "WEBRTC_ENABLE_PROTOBUF=1" ] |
| 185 | } else { |
| 186 | defines += [ "WEBRTC_ENABLE_PROTOBUF=0" ] |
| 187 | } |
| 188 | |
| 189 | if (rtc_restrict_logging) { |
| 190 | defines += [ "WEBRTC_RESTRICT_LOGGING" ] |
| 191 | } |
| 192 | |
| 193 | if (rtc_include_internal_audio_device) { |
| 194 | defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ] |
| 195 | } |
| 196 | |
| 197 | if (!rtc_libvpx_build_vp9) { |
| 198 | defines += [ "RTC_DISABLE_VP9" ] |
| 199 | } |
| 200 | |
| 201 | if (rtc_enable_sctp) { |
| 202 | defines += [ "HAVE_SCTP" ] |
| 203 | } |
| 204 | |
| 205 | if (rtc_enable_external_auth) { |
| 206 | defines += [ "ENABLE_EXTERNAL_AUTH" ] |
| 207 | } |
| 208 | |
| 209 | if (build_with_chromium) { |
| 210 | defines += [ |
| 211 | # NOTICE: Since common_inherited_config is used in public_configs for our |
| 212 | # targets, there's no point including the defines in that config here. |
| 213 | # TODO(kjellander): Cleanup unused ones and move defines closer to the |
| 214 | # source when webrtc:4256 is completed. |
| 215 | "HAVE_WEBRTC_VIDEO", |
| 216 | "HAVE_WEBRTC_VOICE", |
| 217 | "LOGGING_INSIDE_WEBRTC", |
| 218 | "USE_WEBRTC_DEV_BRANCH", |
| 219 | ] |
| 220 | } else { |
| 221 | if (is_posix) { |
| 222 | # Enable more warnings: -Wextra is currently disabled in Chromium. |
| 223 | cflags = [ |
| 224 | "-Wextra", |
| 225 | |
| 226 | # Repeat some flags that get overridden by -Wextra. |
| 227 | "-Wno-unused-parameter", |
| 228 | "-Wno-missing-field-initializers", |
| 229 | "-Wno-strict-overflow", |
| 230 | ] |
| 231 | cflags_cc = [ |
| 232 | "-Wnon-virtual-dtor", |
| 233 | |
| 234 | # This is enabled for clang; enable for gcc as well. |
| 235 | "-Woverloaded-virtual", |
| 236 | ] |
| 237 | } |
| 238 | |
| 239 | if (is_clang) { |
| 240 | cflags += [ |
| 241 | "-Wc++11-narrowing", |
| 242 | "-Wimplicit-fallthrough", |
| 243 | "-Wthread-safety", |
| 244 | "-Winconsistent-missing-override", |
| 245 | "-Wundef", |
| 246 | ] |
| 247 | |
| 248 | # use_xcode_clang only refers to the iOS toolchain, host binaries use |
| 249 | # chromium's clang always. |
| 250 | if (!is_nacl && |
| 251 | (!use_xcode_clang || current_toolchain == host_toolchain)) { |
| 252 | # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not |
| 253 | # recognize. |
| 254 | cflags += [ "-Wunused-lambda-capture" ] |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | if (current_cpu == "arm64") { |
| 260 | defines += [ "WEBRTC_ARCH_ARM64" ] |
| 261 | defines += [ "WEBRTC_HAS_NEON" ] |
| 262 | } |
| 263 | |
| 264 | if (current_cpu == "arm") { |
| 265 | defines += [ "WEBRTC_ARCH_ARM" ] |
| 266 | if (arm_version >= 7) { |
| 267 | defines += [ "WEBRTC_ARCH_ARM_V7" ] |
| 268 | if (arm_use_neon) { |
| 269 | defines += [ "WEBRTC_HAS_NEON" ] |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | if (current_cpu == "mipsel") { |
| 275 | defines += [ "MIPS32_LE" ] |
| 276 | if (mips_float_abi == "hard") { |
| 277 | defines += [ "MIPS_FPU_LE" ] |
| 278 | } |
| 279 | if (mips_arch_variant == "r2") { |
| 280 | defines += [ "MIPS32_R2_LE" ] |
| 281 | } |
| 282 | if (mips_dsp_rev == 1) { |
| 283 | defines += [ "MIPS_DSP_R1_LE" ] |
| 284 | } else if (mips_dsp_rev == 2) { |
| 285 | defines += [ |
| 286 | "MIPS_DSP_R1_LE", |
| 287 | "MIPS_DSP_R2_LE", |
| 288 | ] |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | if (is_android && !is_clang) { |
| 293 | # The Android NDK doesn"t provide optimized versions of these |
| 294 | # functions. Ensure they are disabled for all compilers. |
| 295 | cflags += [ |
| 296 | "-fno-builtin-cos", |
| 297 | "-fno-builtin-sin", |
| 298 | "-fno-builtin-cosf", |
| 299 | "-fno-builtin-sinf", |
| 300 | ] |
| 301 | } |
| 302 | |
| 303 | if (use_libfuzzer || use_drfuzz || use_afl) { |
| 304 | # Used in Chromium's overrides to disable logging |
| 305 | defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ] |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | config("common_objc") { |
| 310 | libs = [ "Foundation.framework" ] |
| 311 | } |
| 312 | |
| 313 | if (!build_with_chromium) { |
| 314 | # Target to build all the WebRTC production code. |
| 315 | rtc_static_library("webrtc") { |
| 316 | # Only the root target should depend on this. |
| 317 | visibility = [ "//:default" ] |
| 318 | |
| 319 | sources = [] |
| 320 | complete_static_lib = true |
| 321 | defines = [] |
| 322 | |
| 323 | deps = [ |
| 324 | ":webrtc_common", |
| 325 | "api", |
| 326 | "api:transport_api", |
| 327 | "audio", |
| 328 | "call", |
| 329 | "common_audio", |
| 330 | "common_video", |
| 331 | "logging", |
| 332 | "media", |
| 333 | "modules", |
| 334 | "modules/video_capture:video_capture_internal_impl", |
| 335 | "ortc", |
| 336 | "p2p", |
| 337 | "pc", |
| 338 | "rtc_base", |
| 339 | "sdk", |
| 340 | "stats", |
| 341 | "system_wrappers:system_wrappers_default", |
| 342 | "video", |
| 343 | "voice_engine", |
| 344 | ] |
| 345 | |
| 346 | if (rtc_enable_protobuf) { |
| 347 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
| 348 | deps += [ "logging:rtc_event_log_proto" ] |
| 349 | } |
| 350 | } |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 351 | } |
| 352 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame^] | 353 | rtc_source_set("typedefs") { |
| 354 | sources = [ |
| 355 | "typedefs.h", |
| 356 | ] |
| 357 | } |
| 358 | |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 359 | rtc_static_library("webrtc_common") { |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 360 | sources = [ |
| 361 | "common_types.cc", |
| 362 | "common_types.h", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame^] | 363 | ] |
| 364 | deps = [ |
| 365 | ":typedefs", |
| 366 | "api:array_view", |
| 367 | "api:optional", |
| 368 | "rtc_base:checks", |
| 369 | "rtc_base:deprecation", |
| 370 | "rtc_base:stringutils", |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 371 | ] |
| 372 | |
| 373 | if (!build_with_chromium && is_clang) { |
| 374 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 375 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | if (use_libfuzzer || use_drfuzz || use_afl) { |
| 380 | # This target is only here for gn to discover fuzzer build targets under |
| 381 | # webrtc/test/fuzzers/. |
| 382 | group("webrtc_fuzzers_dummy") { |
| 383 | testonly = true |
| 384 | deps = [ |
| 385 | "test/fuzzers:webrtc_fuzzer_main", |
| 386 | ] |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | if (rtc_include_tests) { |
| 391 | config("rtc_unittests_config") { |
| 392 | # GN orders flags on a target before flags from configs. The default config |
| 393 | # adds -Wall, and this flag have to be after -Wall -- so they need to |
| 394 | # come from a config and can"t be on the target directly. |
| 395 | if (is_clang) { |
| 396 | cflags = [ |
| 397 | "-Wno-sign-compare", |
| 398 | "-Wno-unused-const-variable", |
| 399 | ] |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | rtc_test("rtc_unittests") { |
| 404 | testonly = true |
| 405 | |
| 406 | deps = [ |
| 407 | ":webrtc_common", |
| 408 | "api:rtc_api_unittests", |
| 409 | "api/audio_codecs/test:audio_codecs_api_unittests", |
| 410 | "p2p:libstunprober_unittests", |
| 411 | "p2p:rtc_p2p_unittests", |
| 412 | "rtc_base:rtc_base_approved_unittests", |
| 413 | "rtc_base:rtc_base_tests_main", |
| 414 | "rtc_base:rtc_base_tests_utils", |
| 415 | "rtc_base:rtc_base_unittests", |
| 416 | "rtc_base:rtc_numerics_unittests", |
| 417 | "rtc_base:rtc_task_queue_unittests", |
| 418 | "rtc_base:sequenced_task_checker_unittests", |
| 419 | "rtc_base:weak_ptr_unittests", |
| 420 | "system_wrappers:metrics_default", |
| 421 | ] |
| 422 | |
| 423 | if (rtc_enable_protobuf) { |
| 424 | deps += [ "logging:rtc_event_log_tests" ] |
| 425 | } |
| 426 | |
| 427 | if (is_android) { |
| 428 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 429 | shard_timeout = 900 |
| 430 | } |
| 431 | |
| 432 | if (is_ios || is_mac) { |
| 433 | deps += [ "sdk:sdk_unittests_objc" ] |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | # TODO(pbos): Rename test suite, this is no longer "just" for video targets. |
| 438 | video_engine_tests_resources = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 439 | "resources/foreman_cif_short.yuv", |
| 440 | "resources/voice_engine/audio_long16.pcm", |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 441 | ] |
| 442 | |
| 443 | if (is_ios) { |
| 444 | bundle_data("video_engine_tests_bundle_data") { |
| 445 | testonly = true |
| 446 | sources = video_engine_tests_resources |
| 447 | outputs = [ |
| 448 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 449 | ] |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | rtc_test("video_engine_tests") { |
| 454 | testonly = true |
| 455 | deps = [ |
| 456 | "audio:audio_tests", |
| 457 | |
| 458 | # TODO(eladalon): call_tests aren't actually video-specific, so we |
| 459 | # should move them to a more appropriate test suite. |
| 460 | "call:call_tests", |
| 461 | "modules/video_capture", |
| 462 | "rtc_base:rtc_base_tests_utils", |
| 463 | "test:test_common", |
| 464 | "test:test_main", |
| 465 | "test:video_test_common", |
| 466 | "video:video_tests", |
| 467 | ] |
| 468 | data = video_engine_tests_resources |
| 469 | if (!build_with_chromium && is_clang) { |
| 470 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 471 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 472 | } |
| 473 | if (is_android) { |
| 474 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 475 | shard_timeout = 900 |
| 476 | } |
| 477 | if (is_ios) { |
| 478 | deps += [ ":video_engine_tests_bundle_data" ] |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | webrtc_perf_tests_resources = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 483 | "resources/audio_coding/speech_mono_16kHz.pcm", |
| 484 | "resources/audio_coding/speech_mono_32_48kHz.pcm", |
| 485 | "resources/audio_coding/testfile32kHz.pcm", |
| 486 | "resources/ConferenceMotion_1280_720_50.yuv", |
| 487 | "resources/difficult_photo_1850_1110.yuv", |
| 488 | "resources/foreman_cif.yuv", |
| 489 | "resources/google-wifi-3mbps.rx", |
| 490 | "resources/paris_qcif.yuv", |
| 491 | "resources/photo_1850_1110.yuv", |
| 492 | "resources/presentation_1850_1110.yuv", |
| 493 | "resources/verizon4g-downlink.rx", |
| 494 | "resources/voice_engine/audio_long16.pcm", |
| 495 | "resources/web_screenshot_1850_1110.yuv", |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 496 | ] |
| 497 | |
| 498 | if (is_ios) { |
| 499 | bundle_data("webrtc_perf_tests_bundle_data") { |
| 500 | testonly = true |
| 501 | sources = webrtc_perf_tests_resources |
| 502 | outputs = [ |
| 503 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 504 | ] |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | rtc_test("webrtc_perf_tests") { |
| 509 | testonly = true |
| 510 | configs += [ ":rtc_unittests_config" ] |
| 511 | |
| 512 | deps = [ |
| 513 | "audio:audio_perf_tests", |
| 514 | "call:call_perf_tests", |
| 515 | "modules/audio_coding:audio_coding_perf_tests", |
| 516 | "modules/audio_processing:audio_processing_perf_tests", |
| 517 | "modules/remote_bitrate_estimator:remote_bitrate_estimator_perf_tests", |
| 518 | "test:test_main", |
| 519 | "video:video_full_stack_tests", |
| 520 | ] |
| 521 | |
| 522 | data = webrtc_perf_tests_resources |
| 523 | if (is_android) { |
Rasmus Brandt | 3102734 | 2017-09-29 13:48:12 +0000 | [diff] [blame] | 524 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
Mirko Bonadei | bb54720 | 2017-09-15 06:15:48 +0200 | [diff] [blame] | 525 | shard_timeout = 2700 |
| 526 | } |
| 527 | if (is_ios) { |
| 528 | deps += [ ":webrtc_perf_tests_bundle_data" ] |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | rtc_test("webrtc_nonparallel_tests") { |
| 533 | testonly = true |
| 534 | deps = [ |
| 535 | "rtc_base:rtc_base_nonparallel_tests", |
| 536 | ] |
| 537 | if (is_android) { |
| 538 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 539 | shard_timeout = 900 |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | if (is_android) { |
| 544 | junit_binary("android_junit_tests") { |
| 545 | java_files = [ |
| 546 | "examples/androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java", |
| 547 | "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", |
| 548 | "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java", |
| 549 | "sdk/android/tests/src/org/webrtc/CameraEnumerationTest.java", |
| 550 | ] |
| 551 | |
| 552 | deps = [ |
| 553 | "examples:AppRTCMobile_javalib", |
| 554 | "sdk/android:libjingle_peerconnection_java", |
| 555 | "//base:base_java_test_support", |
| 556 | ] |
| 557 | } |
ehmaldonado | 37d7a22 | 2016-11-08 06:34:20 -0800 | [diff] [blame] | 558 | } |
wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 559 | } |