2016-08-24 01:33:13 -07:00
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../webrtc.gni")
|
2016-08-24 01:33:13 -07:00
|
|
|
|
|
|
|
|
group("stats") {
|
2016-09-15 00:53:26 -07:00
|
|
|
public_deps = [
|
2016-08-24 01:33:13 -07:00
|
|
|
":rtc_stats",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("rtc_stats") {
|
2016-08-24 01:33:13 -07:00
|
|
|
cflags = []
|
|
|
|
|
sources = [
|
|
|
|
|
"rtcstats.cc",
|
2016-08-30 14:04:35 -07:00
|
|
|
"rtcstats_objects.cc",
|
2016-08-24 01:33:13 -07:00
|
|
|
"rtcstatsreport.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-09-15 23:33:01 -07:00
|
|
|
"../api:rtc_stats_api",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2016-08-24 01:33:13 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-19 06:05:56 -07:00
|
|
|
rtc_source_set("rtc_stats_test_utils") {
|
|
|
|
|
cflags = []
|
|
|
|
|
sources = [
|
|
|
|
|
"test/rtcteststats.cc",
|
|
|
|
|
"test/rtcteststats.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_stats",
|
|
|
|
|
"../api:rtc_stats_api",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-24 01:33:13 -07:00
|
|
|
if (rtc_include_tests) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("rtc_stats_unittests") {
|
2016-08-24 01:33:13 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"rtcstats_unittest.cc",
|
2016-08-29 07:20:33 -07:00
|
|
|
"rtcstatsreport_unittest.cc",
|
2016-08-24 01:33:13 -07:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-08-30 14:04:35 -07:00
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-08-30 14:04:35 -07:00
|
|
|
}
|
|
|
|
|
|
2016-08-24 01:33:13 -07:00
|
|
|
deps = [
|
|
|
|
|
":rtc_stats",
|
2016-09-19 06:05:56 -07:00
|
|
|
":rtc_stats_test_utils",
|
2017-02-27 15:53:39 -08:00
|
|
|
"../api:rtc_stats_api",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_base_tests_main",
|
|
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2017-07-28 07:29:12 -07:00
|
|
|
"../rtc_base:rtc_json",
|
2016-08-24 01:33:13 -07:00
|
|
|
"../system_wrappers:metrics_default",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_native_code" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|