blob: bd19952e28725704457d6d8d1dbe6e5e1935e5c2 [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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
hbos615d3012016-08-24 01:33:13 -070010
11group("stats") {
Mirko Bonadei0880f4b2017-12-04 11:49:49 +010012 deps = [
hbos615d3012016-08-24 01:33:13 -070013 ":rtc_stats",
14 ]
15}
16
kjellanderb62dbbe2016-09-23 00:38:52 -070017rtc_static_library("rtc_stats") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000018 visibility = [ "*" ]
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
hbos615d3012016-08-24 01:33:13 -070026 deps = [
hbos74e1a4f2016-09-15 23:33:01 -070027 "../api:rtc_stats_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070028 "../rtc_base:rtc_base_approved",
hbos615d3012016-08-24 01:33:13 -070029 ]
30}
31
hbos27e177c2016-09-19 06:05:56 -070032rtc_source_set("rtc_stats_test_utils") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000033 visibility = [ "*" ]
hbos27e177c2016-09-19 06:05:56 -070034 cflags = []
35 sources = [
36 "test/rtcteststats.cc",
37 "test/rtcteststats.h",
38 ]
39
hbos27e177c2016-09-19 06:05:56 -070040 deps = [
41 ":rtc_stats",
42 "../api:rtc_stats_api",
Mirko Bonadei977b46a2018-10-24 16:22:04 +020043 "../rtc_base/system:rtc_export",
hbos27e177c2016-09-19 06:05:56 -070044 ]
45}
46
hbos615d3012016-08-24 01:33:13 -070047if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070048 rtc_test("rtc_stats_unittests") {
hbos615d3012016-08-24 01:33:13 -070049 testonly = true
50 sources = [
51 "rtcstats_unittest.cc",
hbos6d183ac2016-08-29 07:20:33 -070052 "rtcstatsreport_unittest.cc",
hbos615d3012016-08-24 01:33:13 -070053 ]
54
hbos615d3012016-08-24 01:33:13 -070055 deps = [
56 ":rtc_stats",
hbos27e177c2016-09-19 06:05:56 -070057 ":rtc_stats_test_utils",
kjellanderdcb4b432017-02-27 15:53:39 -080058 "../api:rtc_stats_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010059 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070060 "../rtc_base:rtc_base_approved",
61 "../rtc_base:rtc_base_tests_main",
62 "../rtc_base:rtc_base_tests_utils",
ehmaldonado35a872c2017-07-28 07:29:12 -070063 "../rtc_base:rtc_json",
hbos615d3012016-08-24 01:33:13 -070064 ]
65
66 if (is_android) {
67 deps += [ "//testing/android/native_test:native_test_native_code" ]
68 }
hbos615d3012016-08-24 01:33:13 -070069 }
70}