blob: 0f13c101e1bc76b8649e780b9fc799b63147706d [file] [log] [blame]
hbos615d3012016-08-24 01:33:13 -07001# Copyright (c) 2016 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
9import("../build/webrtc.gni")
hbos615d3012016-08-24 01:33:13 -070010
11group("stats") {
kjellander705ecc52016-09-15 00:53:26 -070012 public_deps = [
hbos615d3012016-08-24 01:33:13 -070013 ":rtc_stats",
14 ]
15}
16
17# GYP version: webrtc/stats/stats.gyp:rtc_stats
ehmaldonado38a21322016-09-02 04:10:34 -070018rtc_source_set("rtc_stats") {
hbos615d3012016-08-24 01:33:13 -070019 cflags = []
20 sources = [
21 "rtcstats.cc",
hbosd565b732016-08-30 14:04:35 -070022 "rtcstats_objects.cc",
hbos615d3012016-08-24 01:33:13 -070023 "rtcstatsreport.cc",
24 ]
25
hbosd565b732016-08-30 14:04:35 -070026 if (is_clang) {
27 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070028 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
hbosd565b732016-08-30 14:04:35 -070029 }
30
hbos615d3012016-08-24 01:33:13 -070031 deps = [
hbos74e1a4f2016-09-15 23:33:01 -070032 "../api:rtc_stats_api",
33 "../base:rtc_base_approved",
hbos615d3012016-08-24 01:33:13 -070034 ]
35}
36
37if (rtc_include_tests) {
38 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests
ehmaldonado38a21322016-09-02 04:10:34 -070039 rtc_test("rtc_stats_unittests") {
hbos615d3012016-08-24 01:33:13 -070040 testonly = true
41 sources = [
42 "rtcstats_unittest.cc",
hbos6d183ac2016-08-29 07:20:33 -070043 "rtcstatsreport_unittest.cc",
hbos615d3012016-08-24 01:33:13 -070044 ]
45
hbosd565b732016-08-30 14:04:35 -070046 if (is_clang) {
47 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070048 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
hbosd565b732016-08-30 14:04:35 -070049 }
50
hbos615d3012016-08-24 01:33:13 -070051 deps = [
52 ":rtc_stats",
53 "../base:rtc_base_tests_utils",
54 "../system_wrappers:metrics_default",
55 "//testing/gmock",
56 ]
57
58 if (is_android) {
59 deps += [ "//testing/android/native_test:native_test_native_code" ]
60 }
hbos615d3012016-08-24 01:33:13 -070061 }
62}