2014-06-17 08:54:03 +00:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2014-06-28 18:05:22 +00:00
|
|
|
# TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
|
|
|
|
|
|
2014-06-17 08:54:03 +00:00
|
|
|
import("//build/config/linux/pkg_config.gni")
|
2015-11-23 15:12:06 +01:00
|
|
|
import("//build/config/sanitizers/sanitizers.gni")
|
2014-06-17 08:54:03 +00:00
|
|
|
import("build/webrtc.gni")
|
2015-07-30 12:45:18 +02:00
|
|
|
import("//third_party/protobuf/proto_library.gni")
|
2014-06-17 08:54:03 +00:00
|
|
|
|
|
|
|
|
# Contains the defines and includes in common.gypi that are duplicated both as
|
|
|
|
|
# target_defaults and direct_dependent_settings.
|
|
|
|
|
config("common_inherited_config") {
|
|
|
|
|
defines = []
|
2016-07-22 08:57:23 +02:00
|
|
|
cflags = []
|
|
|
|
|
ldflags = []
|
2014-06-17 08:54:03 +00:00
|
|
|
if (build_with_mozilla) {
|
|
|
|
|
defines += [ "WEBRTC_MOZILLA_BUILD" ]
|
|
|
|
|
}
|
|
|
|
|
if (build_with_chromium) {
|
2016-05-30 06:27:50 -07:00
|
|
|
defines = [
|
|
|
|
|
# TODO(kjellander): Cleanup unused ones and move defines closer to
|
|
|
|
|
# the source when webrtc:4256 is completed.
|
|
|
|
|
"FEATURE_ENABLE_SSL",
|
|
|
|
|
"FEATURE_ENABLE_VOICEMAIL",
|
|
|
|
|
"EXPAT_RELATIVE_PATH",
|
|
|
|
|
"GTEST_RELATIVE_PATH",
|
|
|
|
|
"NO_MAIN_THREAD_WRAPPING",
|
|
|
|
|
"NO_SOUND_SYSTEM",
|
|
|
|
|
"WEBRTC_CHROMIUM_BUILD",
|
|
|
|
|
]
|
2014-06-17 08:54:03 +00:00
|
|
|
include_dirs = [
|
2015-09-30 03:48:52 -07:00
|
|
|
# The overrides must be included first as that is the mechanism for
|
2014-06-17 08:54:03 +00:00
|
|
|
# selecting the override headers in Chromium.
|
2015-09-30 03:48:52 -07:00
|
|
|
"../webrtc_overrides",
|
2015-05-25 12:55:39 +02:00
|
|
|
|
2014-06-17 08:54:03 +00:00
|
|
|
# Allow includes to be prefixed with webrtc/ in case it is not an
|
|
|
|
|
# immediate subdirectory of the top-level.
|
|
|
|
|
"..",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_posix) {
|
|
|
|
|
defines += [ "WEBRTC_POSIX" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
defines += [
|
|
|
|
|
"WEBRTC_MAC",
|
|
|
|
|
"WEBRTC_IOS",
|
|
|
|
|
]
|
|
|
|
|
}
|
2015-06-29 14:34:58 -07:00
|
|
|
if (is_ios && rtc_use_objc_h264) {
|
|
|
|
|
defines += [ "WEBRTC_OBJC_H264" ]
|
|
|
|
|
}
|
2014-06-17 08:54:03 +00:00
|
|
|
if (is_linux) {
|
|
|
|
|
defines += [ "WEBRTC_LINUX" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
defines += [ "WEBRTC_MAC" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
2016-05-30 06:27:50 -07:00
|
|
|
defines += [
|
|
|
|
|
"WEBRTC_WIN",
|
|
|
|
|
"_CRT_SECURE_NO_WARNINGS", # Suppress warnings about _vsnprinf
|
|
|
|
|
]
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
if (is_android) {
|
|
|
|
|
defines += [
|
|
|
|
|
"WEBRTC_LINUX",
|
|
|
|
|
"WEBRTC_ANDROID",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-05-30 06:27:50 -07:00
|
|
|
if (is_chromeos) {
|
|
|
|
|
defines += [ "CHROMEOS" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 08:57:23 +02:00
|
|
|
if (rtc_sanitize_coverage != "") {
|
|
|
|
|
assert(is_clang, "sanitizer coverage requires clang")
|
|
|
|
|
cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
|
|
|
|
|
ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-05-30 06:27:50 -07:00
|
|
|
# TODO(GYP): Support these in GN.
|
|
|
|
|
# if (is_bsd) {
|
|
|
|
|
# defines += [ "BSD" ]
|
|
|
|
|
# }
|
|
|
|
|
# if (is_openbsd) {
|
|
|
|
|
# defines += [ "OPENBSD" ]
|
|
|
|
|
# }
|
|
|
|
|
# if (is_freebsd) {
|
|
|
|
|
# defines += [ "FREEBSD" ]
|
|
|
|
|
# }
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_have_dbus_glib) {
|
2014-06-28 18:05:22 +00:00
|
|
|
pkg_config("dbus-glib") {
|
|
|
|
|
packages = [ "dbus-glib-1" ]
|
|
|
|
|
}
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("common_config") {
|
2014-09-04 14:10:49 +00:00
|
|
|
cflags = []
|
|
|
|
|
cflags_cc = []
|
2016-05-30 06:27:50 -07:00
|
|
|
defines = []
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_restrict_logging) {
|
2016-05-30 06:27:50 -07:00
|
|
|
defines += [ "WEBRTC_RESTRICT_LOGGING" ]
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-12 22:12:01 -07:00
|
|
|
if (rtc_include_internal_audio_device) {
|
|
|
|
|
defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_have_dbus_glib) {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "HAVE_DBUS_GLIB" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
|
2014-06-17 08:54:03 +00:00
|
|
|
# TODO(kjellander): Investigate this, it seems like include <dbus/dbus.h>
|
|
|
|
|
# is still not found even if the execution of
|
|
|
|
|
# build/config/linux/pkg-config.py dbus-glib-1 returns correct include
|
|
|
|
|
# dirs on Linux.
|
|
|
|
|
all_dependent_configs = [ "dbus-glib" ]
|
|
|
|
|
}
|
|
|
|
|
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
if (rtc_relative_path) {
|
|
|
|
|
defines += [ "EXPAT_RELATIVE_PATH" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-09 19:15:33 +00:00
|
|
|
if (build_with_chromium) {
|
2016-05-30 06:27:50 -07:00
|
|
|
defines += [
|
|
|
|
|
# NOTICE: Since common_inherited_config is used in public_configs for our
|
|
|
|
|
# targets, there's no point including the defines in that config here.
|
|
|
|
|
# TODO(kjellander): Cleanup unused ones and move defines closer to the
|
|
|
|
|
# source when webrtc:4256 is completed.
|
|
|
|
|
"ENABLE_EXTERNAL_AUTH",
|
|
|
|
|
"HAVE_OPENSSL_SSL_H",
|
|
|
|
|
"HAVE_SCTP",
|
|
|
|
|
"HAVE_SRTP",
|
|
|
|
|
"HAVE_WEBRTC_VIDEO",
|
|
|
|
|
"HAVE_WEBRTC_VOICE",
|
|
|
|
|
"LOGGING_INSIDE_WEBRTC",
|
|
|
|
|
"SRTP_RELATIVE_PATH",
|
|
|
|
|
"SSL_USE_OPENSSL",
|
|
|
|
|
"USE_WEBRTC_DEV_BRANCH",
|
|
|
|
|
]
|
2014-09-09 19:15:33 +00:00
|
|
|
} else {
|
2014-06-17 08:54:03 +00:00
|
|
|
if (is_posix) {
|
|
|
|
|
# -Wextra is currently disabled in Chromium"s common.gypi. Enable
|
|
|
|
|
# for targets that can handle it. For Android/arm64 right now
|
|
|
|
|
# there will be an "enumeral and non-enumeral type in conditional
|
|
|
|
|
# expression" warning in android_tools/ndk_experimental"s version
|
|
|
|
|
# of stlport.
|
|
|
|
|
# See: https://code.google.com/p/chromium/issues/detail?id=379699
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu != "arm64" || !is_android) {
|
2014-06-17 08:54:03 +00:00
|
|
|
cflags = [
|
|
|
|
|
"-Wextra",
|
2015-05-25 12:55:39 +02:00
|
|
|
|
2014-06-17 08:54:03 +00:00
|
|
|
# We need to repeat some flags from Chromium"s common.gypi
|
|
|
|
|
# here that get overridden by -Wextra.
|
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
|
"-Wno-missing-field-initializers",
|
|
|
|
|
"-Wno-strict-overflow",
|
|
|
|
|
]
|
|
|
|
|
cflags_cc = [
|
|
|
|
|
"-Wnon-virtual-dtor",
|
2015-05-25 12:55:39 +02:00
|
|
|
|
2014-06-17 08:54:03 +00:00
|
|
|
# This is enabled for clang; enable for gcc as well.
|
|
|
|
|
"-Woverloaded-virtual",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_clang) {
|
2016-04-27 07:13:46 -07:00
|
|
|
cflags += [
|
|
|
|
|
"-Wimplicit-fallthrough",
|
|
|
|
|
"-Wthread-safety",
|
2016-05-10 23:28:10 -07:00
|
|
|
"-Winconsistent-missing-override",
|
2016-04-27 07:13:46 -07:00
|
|
|
]
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "arm64") {
|
2015-05-19 22:20:17 -07:00
|
|
|
defines += [ "WEBRTC_ARCH_ARM64" ]
|
|
|
|
|
defines += [ "WEBRTC_HAS_NEON" ]
|
2014-10-31 00:14:39 +00:00
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "arm") {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "WEBRTC_ARCH_ARM" ]
|
2014-11-26 17:01:40 +00:00
|
|
|
if (arm_version >= 7) {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "WEBRTC_ARCH_ARM_V7" ]
|
|
|
|
|
if (arm_use_neon) {
|
2015-05-19 22:20:17 -07:00
|
|
|
defines += [ "WEBRTC_HAS_NEON" ]
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "mipsel") {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "MIPS32_LE" ]
|
2015-03-04 09:50:31 +00:00
|
|
|
if (mips_float_abi == "hard") {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "MIPS_FPU_LE" ]
|
|
|
|
|
}
|
2015-01-25 19:17:56 +00:00
|
|
|
if (mips_arch_variant == "r2") {
|
2014-06-17 08:54:03 +00:00
|
|
|
defines += [ "MIPS32_R2_LE" ]
|
|
|
|
|
}
|
|
|
|
|
if (mips_dsp_rev == 1) {
|
|
|
|
|
defines += [ "MIPS_DSP_R1_LE" ]
|
|
|
|
|
} else if (mips_dsp_rev == 2) {
|
|
|
|
|
defines += [
|
|
|
|
|
"MIPS_DSP_R1_LE",
|
|
|
|
|
"MIPS_DSP_R2_LE",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-07 12:57:42 +02:00
|
|
|
if (is_android && !is_clang) {
|
2015-09-21 16:50:45 +02:00
|
|
|
# The Android NDK doesn"t provide optimized versions of these
|
|
|
|
|
# functions. Ensure they are disabled for all compilers.
|
2014-06-17 08:54:03 +00:00
|
|
|
cflags += [
|
|
|
|
|
"-fno-builtin-cos",
|
|
|
|
|
"-fno-builtin-sin",
|
|
|
|
|
"-fno-builtin-cosf",
|
|
|
|
|
"-fno-builtin-sinf",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-05-26 01:03:02 -07:00
|
|
|
|
2016-07-25 02:14:09 -07:00
|
|
|
if (use_libfuzzer || use_drfuzz || use_afl) {
|
2016-05-26 01:03:02 -07:00
|
|
|
# Used in Chromium's overrides to disable logging
|
|
|
|
|
defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ]
|
|
|
|
|
}
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-08 01:14:15 -07:00
|
|
|
config("common_objc") {
|
2016-08-07 21:37:45 -07:00
|
|
|
libs = [ "Foundation.framework" ]
|
2016-06-08 01:14:15 -07:00
|
|
|
precompiled_header = "sdk/objc/WebRTC-Prefix.pch"
|
|
|
|
|
precompiled_source = "sdk/objc/WebRTC-Prefix.pch"
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-02 09:53:25 -04:00
|
|
|
if (!is_ios || !build_with_chromium) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("webrtc") {
|
2016-08-02 09:53:25 -04:00
|
|
|
sources = [
|
|
|
|
|
"call.h",
|
|
|
|
|
"config.h",
|
|
|
|
|
"transport.h",
|
|
|
|
|
]
|
2014-07-13 09:02:54 +00:00
|
|
|
|
2016-08-02 09:53:25 -04:00
|
|
|
defines = []
|
2015-02-11 07:47:00 +00:00
|
|
|
|
2016-08-02 09:53:25 -04:00
|
|
|
deps = [
|
|
|
|
|
":webrtc_common",
|
|
|
|
|
"audio",
|
|
|
|
|
"base:rtc_base",
|
|
|
|
|
"call",
|
|
|
|
|
"common_audio",
|
|
|
|
|
"common_video",
|
|
|
|
|
"modules",
|
2016-08-24 01:33:13 -07:00
|
|
|
"stats",
|
2016-08-02 09:53:25 -04:00
|
|
|
"system_wrappers",
|
|
|
|
|
"tools",
|
|
|
|
|
"video",
|
|
|
|
|
"voice_engine",
|
2016-06-10 01:56:57 -07:00
|
|
|
]
|
2015-07-30 12:45:18 +02:00
|
|
|
|
2016-08-02 09:53:25 -04:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
deps += [ "modules/video_capture" ]
|
|
|
|
|
} else {
|
|
|
|
|
# TODO(kjellander): Enable for Chromium as well when bugs.webrtc.org/4256
|
|
|
|
|
# is fixed. Right now it's not possible due to circular dependencies.
|
|
|
|
|
deps += [
|
|
|
|
|
"api",
|
|
|
|
|
"media",
|
|
|
|
|
"p2p",
|
|
|
|
|
"pc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
defines += [ "ENABLE_RTC_EVENT_LOG" ]
|
|
|
|
|
deps += [ ":rtc_event_log_proto" ]
|
|
|
|
|
}
|
2015-07-30 12:45:18 +02:00
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-30 18:05:02 +00:00
|
|
|
if (!build_with_chromium) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("webrtc_tests") {
|
2014-09-30 18:05:02 +00:00
|
|
|
testonly = true
|
|
|
|
|
deps = [
|
|
|
|
|
":webrtc",
|
|
|
|
|
"modules/video_capture:video_capture_internal_impl",
|
|
|
|
|
"test",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-08-15 06:29:10 -07:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("video_loopback") {
|
2016-08-15 06:29:10 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/run_test.h",
|
|
|
|
|
"video/video_loopback.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [ "test/mac/run_test.mm" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "test/run_test.cc" ]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
|
|
|
|
":video_quality_test",
|
|
|
|
|
"system_wrappers:metrics_default",
|
|
|
|
|
"test:field_trial",
|
|
|
|
|
"test:test_common",
|
|
|
|
|
"test:test_renderer",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
|
|
|
|
if (is_clang && !is_nacl) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-08-15 06:29:10 -07:00
|
|
|
}
|
|
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("webrtc_common") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2015-02-26 13:59:22 +00:00
|
|
|
"common_types.cc",
|
2015-01-26 19:17:26 +00:00
|
|
|
"common_types.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"config.cc",
|
2015-05-25 12:55:39 +02:00
|
|
|
"config.h",
|
2015-01-26 19:17:26 +00:00
|
|
|
"engine_configurations.h",
|
|
|
|
|
"typedefs.h",
|
2014-06-17 08:54:03 +00:00
|
|
|
]
|
2014-07-13 09:02:54 +00:00
|
|
|
|
2016-01-14 04:32:46 -08:00
|
|
|
if (is_clang && !is_nacl) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-01-14 04:32:46 -08:00
|
|
|
}
|
2014-06-17 08:54:03 +00:00
|
|
|
}
|
2015-01-26 19:17:26 +00:00
|
|
|
|
2015-07-30 12:45:18 +02:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
proto_library("rtc_event_log_proto") {
|
|
|
|
|
sources = [
|
2015-09-25 13:58:30 +02:00
|
|
|
"call/rtc_event_log.proto",
|
2015-07-30 12:45:18 +02:00
|
|
|
]
|
2015-09-25 13:58:30 +02:00
|
|
|
proto_out_dir = "webrtc/call"
|
2015-07-30 12:45:18 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("rtc_event_log") {
|
2015-07-30 12:45:18 +02:00
|
|
|
sources = [
|
2015-09-25 13:58:30 +02:00
|
|
|
"call/rtc_event_log.cc",
|
|
|
|
|
"call/rtc_event_log.h",
|
2016-04-22 12:40:37 -07:00
|
|
|
"call/rtc_event_log_helper_thread.cc",
|
|
|
|
|
"call/rtc_event_log_helper_thread.h",
|
2015-07-30 12:45:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":webrtc_common",
|
2016-08-04 07:54:04 -07:00
|
|
|
"modules/rtp_rtcp",
|
2015-07-30 12:45:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
defines += [ "ENABLE_RTC_EVENT_LOG" ]
|
|
|
|
|
deps += [ ":rtc_event_log_proto" ]
|
|
|
|
|
}
|
2015-09-02 14:22:40 -07:00
|
|
|
if (is_clang && !is_nacl) {
|
2015-07-30 12:45:18 +02:00
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2015-07-30 12:45:18 +02:00
|
|
|
}
|
|
|
|
|
}
|
2015-11-23 15:12:06 +01:00
|
|
|
|
2016-05-13 00:42:59 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("rtc_event_log_parser") {
|
2016-05-13 00:42:59 -07:00
|
|
|
sources = [
|
|
|
|
|
"call/rtc_event_log_parser.cc",
|
|
|
|
|
"call/rtc_event_log_parser.h",
|
|
|
|
|
]
|
|
|
|
|
|
2016-07-13 06:44:41 -07:00
|
|
|
public_deps = [
|
2016-05-13 00:42:59 -07:00
|
|
|
":rtc_event_log_proto",
|
|
|
|
|
":webrtc_common",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_clang && !is_nacl) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-05-13 00:42:59 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-25 02:14:09 -07:00
|
|
|
if (use_libfuzzer || use_drfuzz || use_afl) {
|
2015-12-17 14:28:16 +01:00
|
|
|
# This target is only here for gn to discover fuzzer build targets under
|
|
|
|
|
# webrtc/test/fuzzers/.
|
|
|
|
|
group("webrtc_fuzzers_dummy") {
|
2015-11-23 15:12:06 +01:00
|
|
|
testonly = true
|
|
|
|
|
deps = [
|
2015-12-17 14:28:16 +01:00
|
|
|
"test/fuzzers:webrtc_fuzzer_main",
|
2015-11-23 15:12:06 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-03 15:57:02 +02:00
|
|
|
|
2016-06-06 23:04:31 +02:00
|
|
|
if (rtc_include_tests) {
|
2016-06-03 15:57:02 +02:00
|
|
|
config("rtc_unittests_config") {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds -Wall, and this flag have to be after -Wall -- so they need to
|
|
|
|
|
# come from a config and can"t be on the target directly.
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
cflags = [
|
|
|
|
|
"-Wno-missing-braces",
|
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
|
"-Wno-unused-const-variable",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("rtc_unittests") {
|
2016-06-03 15:57:02 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"base/array_view_unittest.cc",
|
|
|
|
|
"base/atomicops_unittest.cc",
|
|
|
|
|
"base/autodetectproxy_unittest.cc",
|
|
|
|
|
"base/bandwidthsmoother_unittest.cc",
|
|
|
|
|
"base/base64_unittest.cc",
|
|
|
|
|
"base/basictypes_unittest.cc",
|
|
|
|
|
"base/bind_unittest.cc",
|
|
|
|
|
"base/bitbuffer_unittest.cc",
|
|
|
|
|
"base/buffer_unittest.cc",
|
|
|
|
|
"base/bufferqueue_unittest.cc",
|
|
|
|
|
"base/bytebuffer_unittest.cc",
|
|
|
|
|
"base/byteorder_unittest.cc",
|
|
|
|
|
"base/callback_unittest.cc",
|
|
|
|
|
"base/copyonwritebuffer_unittest.cc",
|
|
|
|
|
"base/crc32_unittest.cc",
|
|
|
|
|
"base/criticalsection_unittest.cc",
|
|
|
|
|
"base/event_tracer_unittest.cc",
|
|
|
|
|
"base/event_unittest.cc",
|
|
|
|
|
"base/exp_filter_unittest.cc",
|
2016-09-02 13:38:32 +02:00
|
|
|
"base/file_unittest.cc",
|
2016-06-03 15:57:02 +02:00
|
|
|
"base/filerotatingstream_unittest.cc",
|
|
|
|
|
"base/fileutils_unittest.cc",
|
|
|
|
|
"base/helpers_unittest.cc",
|
|
|
|
|
"base/httpbase_unittest.cc",
|
|
|
|
|
"base/httpcommon_unittest.cc",
|
|
|
|
|
"base/httpserver_unittest.cc",
|
|
|
|
|
"base/ipaddress_unittest.cc",
|
|
|
|
|
"base/logging_unittest.cc",
|
|
|
|
|
"base/md5digest_unittest.cc",
|
|
|
|
|
"base/messagedigest_unittest.cc",
|
|
|
|
|
"base/messagequeue_unittest.cc",
|
|
|
|
|
"base/mod_ops_unittest.cc",
|
|
|
|
|
"base/multipart_unittest.cc",
|
|
|
|
|
"base/nat_unittest.cc",
|
|
|
|
|
"base/network_unittest.cc",
|
|
|
|
|
"base/onetimeevent_unittest.cc",
|
|
|
|
|
"base/optional_unittest.cc",
|
|
|
|
|
"base/optionsfile_unittest.cc",
|
|
|
|
|
"base/pathutils_unittest.cc",
|
|
|
|
|
"base/platform_thread_unittest.cc",
|
|
|
|
|
"base/profiler_unittest.cc",
|
|
|
|
|
"base/proxy_unittest.cc",
|
|
|
|
|
"base/proxydetect_unittest.cc",
|
|
|
|
|
"base/random_unittest.cc",
|
2016-07-13 09:11:28 -07:00
|
|
|
"base/rate_limiter_unittest.cc",
|
2016-06-03 15:57:02 +02:00
|
|
|
"base/rate_statistics_unittest.cc",
|
|
|
|
|
"base/ratelimiter_unittest.cc",
|
|
|
|
|
"base/ratetracker_unittest.cc",
|
|
|
|
|
"base/referencecountedsingletonfactory_unittest.cc",
|
|
|
|
|
"base/rollingaccumulator_unittest.cc",
|
|
|
|
|
"base/rtccertificate_unittest.cc",
|
|
|
|
|
"base/rtccertificategenerator_unittest.cc",
|
|
|
|
|
"base/scopedptrcollection_unittest.cc",
|
2016-07-12 15:04:07 -07:00
|
|
|
"base/sequenced_task_checker_unittest.cc",
|
2016-06-03 15:57:02 +02:00
|
|
|
"base/sha1digest_unittest.cc",
|
|
|
|
|
"base/sharedexclusivelock_unittest.cc",
|
|
|
|
|
"base/signalthread_unittest.cc",
|
|
|
|
|
"base/sigslot_unittest.cc",
|
|
|
|
|
"base/sigslottester.h",
|
|
|
|
|
"base/sigslottester.h.pump",
|
|
|
|
|
"base/stream_unittest.cc",
|
|
|
|
|
"base/stringencode_unittest.cc",
|
|
|
|
|
"base/stringutils_unittest.cc",
|
|
|
|
|
"base/swap_queue_unittest.cc",
|
|
|
|
|
|
|
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# "systeminfo_unittest.cc",
|
|
|
|
|
"base/task_queue_unittest.cc",
|
|
|
|
|
"base/task_unittest.cc",
|
|
|
|
|
"base/testclient_unittest.cc",
|
|
|
|
|
"base/thread_checker_unittest.cc",
|
|
|
|
|
"base/thread_unittest.cc",
|
2016-06-22 08:36:53 -07:00
|
|
|
"base/timestampaligner_unittest.cc",
|
2016-06-03 15:57:02 +02:00
|
|
|
"base/timeutils_unittest.cc",
|
|
|
|
|
"base/urlencode_unittest.cc",
|
|
|
|
|
"base/versionparsing_unittest.cc",
|
|
|
|
|
|
|
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# "windowpicker_unittest.cc",
|
|
|
|
|
"p2p/base/dtlstransportchannel_unittest.cc",
|
|
|
|
|
"p2p/base/fakeportallocator.h",
|
|
|
|
|
"p2p/base/faketransportcontroller.h",
|
|
|
|
|
"p2p/base/p2ptransportchannel_unittest.cc",
|
|
|
|
|
"p2p/base/port_unittest.cc",
|
|
|
|
|
"p2p/base/portallocator_unittest.cc",
|
|
|
|
|
"p2p/base/pseudotcp_unittest.cc",
|
|
|
|
|
"p2p/base/relayport_unittest.cc",
|
|
|
|
|
"p2p/base/relayserver_unittest.cc",
|
|
|
|
|
"p2p/base/stun_unittest.cc",
|
|
|
|
|
"p2p/base/stunport_unittest.cc",
|
|
|
|
|
"p2p/base/stunrequest_unittest.cc",
|
|
|
|
|
"p2p/base/stunserver_unittest.cc",
|
|
|
|
|
"p2p/base/tcpport_unittest.cc",
|
|
|
|
|
"p2p/base/testrelayserver.h",
|
|
|
|
|
"p2p/base/teststunserver.h",
|
|
|
|
|
"p2p/base/testturnserver.h",
|
|
|
|
|
"p2p/base/transport_unittest.cc",
|
|
|
|
|
"p2p/base/transportcontroller_unittest.cc",
|
|
|
|
|
"p2p/base/transportdescriptionfactory_unittest.cc",
|
|
|
|
|
"p2p/base/turnport_unittest.cc",
|
2016-08-01 16:37:14 -07:00
|
|
|
"p2p/base/turnserver_unittest.cc",
|
2016-06-03 15:57:02 +02:00
|
|
|
"p2p/client/basicportallocator_unittest.cc",
|
|
|
|
|
"p2p/stunprober/stunprober_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_linux) {
|
|
|
|
|
sources += [
|
|
|
|
|
"base/latebindingsymboltable_unittest.cc",
|
|
|
|
|
|
|
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# "linux_unittest.cc",
|
|
|
|
|
"base/linuxfdwalk_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"base/win32_unittest.cc",
|
|
|
|
|
"base/win32regkey_unittest.cc",
|
|
|
|
|
"base/win32window_unittest.cc",
|
|
|
|
|
"base/win32windowpicker_unittest.cc",
|
|
|
|
|
"base/winfirewall_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [ "base/macutils_unittest.cc" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_posix) {
|
|
|
|
|
sources += [
|
|
|
|
|
"base/ssladapter_unittest.cc",
|
|
|
|
|
"base/sslidentity_unittest.cc",
|
|
|
|
|
"base/sslstreamadapter_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (rtc_use_quic) {
|
|
|
|
|
sources += [
|
|
|
|
|
"p2p/quic/quicconnectionhelper_unittest.cc",
|
|
|
|
|
"p2p/quic/quicsession_unittest.cc",
|
|
|
|
|
"p2p/quic/quictransport_unittest.cc",
|
|
|
|
|
"p2p/quic/quictransportchannel_unittest.cc",
|
|
|
|
|
"p2p/quic/reliablequicstream_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":rtc_unittests_config" ]
|
2016-06-03 15:57:02 +02:00
|
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-03 15:57:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"base:rtc_base",
|
2016-06-12 22:12:01 -07:00
|
|
|
"base:rtc_base_tests_utils",
|
2016-06-03 15:57:02 +02:00
|
|
|
"base:rtc_task_queue",
|
|
|
|
|
"p2p:libstunprober",
|
|
|
|
|
"p2p:rtc_p2p",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
2016-08-15 02:29:11 -07:00
|
|
|
shard_timeout = 900
|
2016-06-03 15:57:02 +02:00
|
|
|
}
|
2016-06-08 01:14:15 -07:00
|
|
|
|
|
|
|
|
if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
|
|
|
|
|
deps += [
|
|
|
|
|
"sdk:rtc_sdk_peerconnection_objc",
|
|
|
|
|
"system_wrappers:system_wrappers_default",
|
|
|
|
|
]
|
|
|
|
|
sources += [
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm",
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm",
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm",
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCIceServerTest.mm",
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm",
|
|
|
|
|
"sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# TODO(tkchin): Cleanup this warning.
|
|
|
|
|
cflags = [ "-Wno-objc-property-no-attribute" ]
|
|
|
|
|
|
|
|
|
|
# |-ObjC| flag needed to make sure category method implementations
|
|
|
|
|
# are included:
|
|
|
|
|
# https://developer.apple.com/library/mac/qa/qa1490/_index.html
|
|
|
|
|
ldflags = [ "-ObjC" ]
|
|
|
|
|
}
|
2016-06-03 15:57:02 +02:00
|
|
|
}
|
2016-06-14 12:52:54 +02:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("xmllite_xmpp_unittests") {
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":rtc_unittests_config" ]
|
2016-08-04 01:16:39 -07:00
|
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-08-04 01:16:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"base:rtc_base_tests_utils",
|
|
|
|
|
"libjingle/xmllite:rtc_xmllite",
|
|
|
|
|
"libjingle/xmpp:rtc_xmpp",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"libjingle/xmllite/qname_unittest.cc",
|
|
|
|
|
"libjingle/xmllite/xmlbuilder_unittest.cc",
|
|
|
|
|
"libjingle/xmllite/xmlelement_unittest.cc",
|
|
|
|
|
"libjingle/xmllite/xmlnsstack_unittest.cc",
|
|
|
|
|
"libjingle/xmllite/xmlparser_unittest.cc",
|
|
|
|
|
"libjingle/xmllite/xmlprinter_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/fakexmppclient.h",
|
|
|
|
|
"libjingle/xmpp/hangoutpubsubclient_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/jid_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/mucroomconfigtask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/mucroomdiscoverytask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/mucroomlookuptask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/mucroomuniquehangoutidtask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/pingtask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/pubsubclient_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/pubsubtasks_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/util_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/util_unittest.h",
|
|
|
|
|
"libjingle/xmpp/xmppengine_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/xmpplogintask_unittest.cc",
|
|
|
|
|
"libjingle/xmpp/xmppstanzaparser_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-14 12:52:54 +02:00
|
|
|
# TODO(pbos): Rename test suite, this is no longer "just" for video targets.
|
2016-08-30 02:53:49 -07:00
|
|
|
if (is_android || is_ios) {
|
|
|
|
|
video_engine_tests_resources = [
|
|
|
|
|
"//resources/foreman_cif_short.yuv",
|
|
|
|
|
"//resources/voice_engine/audio_long16.pcm",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("video_engine_tests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = video_engine_tests_resources
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("video_engine_tests") {
|
2016-06-14 12:52:54 +02:00
|
|
|
testonly = true
|
|
|
|
|
deps = [
|
|
|
|
|
"audio:audio_tests",
|
|
|
|
|
"call:call_tests",
|
|
|
|
|
"modules/video_capture",
|
|
|
|
|
"test:test_common",
|
|
|
|
|
"test:test_main",
|
|
|
|
|
"video:video_tests",
|
|
|
|
|
]
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-14 12:52:54 +02:00
|
|
|
}
|
2016-08-15 02:29:11 -07:00
|
|
|
if (is_android) {
|
2016-08-18 00:41:59 -07:00
|
|
|
deps += [ "//testing/android/native_test:native_test_native_code" ]
|
2016-08-30 02:53:49 -07:00
|
|
|
data = video_engine_tests_resources
|
2016-08-24 07:48:42 -07:00
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
2016-08-30 02:53:49 -07:00
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":video_engine_tests_bundle_data" ]
|
2016-08-15 02:29:11 -07:00
|
|
|
}
|
2016-06-14 12:52:54 +02:00
|
|
|
}
|
2016-06-27 19:31:39 +02:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("video_quality_test") {
|
2016-07-27 08:14:32 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"video/video_quality_test.cc",
|
|
|
|
|
"video/video_quality_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":webrtc",
|
|
|
|
|
"system_wrappers",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
if (!is_android) {
|
|
|
|
|
deps += [ "modules/video_capture:video_capture_internal_impl" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-07-27 08:14:32 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-30 02:53:49 -07:00
|
|
|
if (is_android || is_ios) {
|
|
|
|
|
webrtc_perf_tests_resources = [
|
|
|
|
|
"//resources/audio_coding/speech_mono_16kHz.pcm",
|
|
|
|
|
"//resources/audio_coding/testfile32kHz.pcm",
|
|
|
|
|
"//resources/ConferenceMotion_1280_720_50.yuv",
|
|
|
|
|
"//resources/difficult_photo_1850_1110.yuv",
|
|
|
|
|
"//resources/foreman_cif.yuv",
|
|
|
|
|
"//resources/google-wifi-3mbps.rx",
|
|
|
|
|
"//resources/paris_qcif.yuv",
|
|
|
|
|
"//resources/photo_1850_1110.yuv",
|
|
|
|
|
"//resources/presentation_1850_1110.yuv",
|
|
|
|
|
"//resources/verizon4g-downlink.rx",
|
|
|
|
|
"//resources/voice_engine/audio_long16.pcm",
|
|
|
|
|
"//resources/web_screenshot_1850_1110.yuv",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("webrtc_perf_tests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = webrtc_perf_tests_resources
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("webrtc_perf_tests") {
|
2016-07-27 08:14:32 -07:00
|
|
|
testonly = true
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":rtc_unittests_config" ]
|
2016-08-31 08:22:09 -07:00
|
|
|
|
2016-07-27 08:14:32 -07:00
|
|
|
sources = [
|
|
|
|
|
"call/call_perf_tests.cc",
|
|
|
|
|
"call/rampup_tests.cc",
|
|
|
|
|
"call/rampup_tests.h",
|
|
|
|
|
"modules/audio_coding/neteq/test/neteq_performance_unittest.cc",
|
|
|
|
|
"modules/audio_processing/audio_processing_performance_unittest.cc",
|
|
|
|
|
"modules/audio_processing/level_controller/level_controller_complexity_unittest.cc",
|
|
|
|
|
"modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc",
|
|
|
|
|
"video/full_stack.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_quality_test",
|
|
|
|
|
":webrtc",
|
|
|
|
|
"modules/audio_coding:neteq_test_support",
|
|
|
|
|
"modules/audio_processing",
|
|
|
|
|
"modules/audio_processing:audioproc_test_utils",
|
|
|
|
|
"modules/remote_bitrate_estimator:bwe_simulator",
|
|
|
|
|
"modules/rtp_rtcp",
|
|
|
|
|
"test:channel_transport",
|
|
|
|
|
"test:test_common",
|
|
|
|
|
"test:test_main",
|
|
|
|
|
"test:test_renderer",
|
|
|
|
|
"voice_engine",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_native_code" ]
|
2016-08-30 02:53:49 -07:00
|
|
|
data = webrtc_perf_tests_resources
|
2016-08-15 02:29:11 -07:00
|
|
|
shard_timeout = 2700
|
2016-07-27 08:14:32 -07:00
|
|
|
}
|
2016-08-30 02:53:49 -07:00
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":webrtc_perf_tests_bundle_data" ]
|
|
|
|
|
}
|
2016-07-27 08:14:32 -07:00
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-07-27 08:14:32 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("webrtc_nonparallel_tests") {
|
2016-06-27 19:31:39 +02:00
|
|
|
testonly = true
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":rtc_unittests_config" ]
|
2016-06-27 19:31:39 +02:00
|
|
|
sources = [
|
|
|
|
|
"base/nullsocketserver_unittest.cc",
|
2016-08-05 05:55:43 -07:00
|
|
|
"base/physicalsocketserver_unittest.cc",
|
|
|
|
|
"base/socket_unittest.cc",
|
|
|
|
|
"base/socket_unittest.h",
|
2016-06-27 19:31:39 +02:00
|
|
|
"base/socketaddress_unittest.cc",
|
|
|
|
|
"base/virtualsocket_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"base:rtc_base",
|
|
|
|
|
"base:rtc_base_tests_utils",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
if (is_win) {
|
2016-08-05 05:55:43 -07:00
|
|
|
sources += [ "base/win32socketserver_unittest.cc" ]
|
2016-06-27 19:31:39 +02:00
|
|
|
}
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
2016-08-15 02:29:11 -07:00
|
|
|
shard_timeout = 900
|
2016-06-27 19:31:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [ "base/macsocketserver_unittest.cc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-27 19:31:39 +02:00
|
|
|
}
|
|
|
|
|
}
|
2016-06-03 15:57:02 +02:00
|
|
|
}
|