blob: 37224cd6185dd16e5e7045d00c0244f63c7fb4c4 [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 Bonadeiccbe95f2020-01-21 12:10:10 +010012 deps = [ ":rtc_stats" ]
hbos615d3012016-08-24 01:33:13 -070013}
14
Mirko Bonadei86d053c2019-10-17 21:32:04 +020015rtc_library("rtc_stats") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
hbos615d3012016-08-24 01:33:13 -070017 cflags = []
18 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080019 "rtc_stats.cc",
20 "rtc_stats_report.cc",
hbosd565b732016-08-30 14:04:35 -070021 "rtcstats_objects.cc",
hbos615d3012016-08-24 01:33:13 -070022 ]
23
hbos615d3012016-08-24 01:33:13 -070024 deps = [
hbos74e1a4f2016-09-15 23:33:01 -070025 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 16:47:49 +010026 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070027 "../rtc_base:rtc_base_approved",
hbos615d3012016-08-24 01:33:13 -070028 ]
29}
30
Mirko Bonadei86d053c2019-10-17 21:32:04 +020031rtc_library("rtc_stats_test_utils") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000032 visibility = [ "*" ]
hbos27e177c2016-09-19 06:05:56 -070033 cflags = []
34 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080035 "test/rtc_test_stats.cc",
36 "test/rtc_test_stats.h",
hbos27e177c2016-09-19 06:05:56 -070037 ]
38
hbos27e177c2016-09-19 06:05:56 -070039 deps = [
40 ":rtc_stats",
41 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 16:47:49 +010042 "../rtc_base:checks",
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 = [
Steve Anton10542f22019-01-11 09:11:00 -080051 "rtc_stats_report_unittest.cc",
52 "rtc_stats_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",
Mirko Bonadeie3abb812018-11-23 13:15:08 +010060 "../rtc_base:gunit_helpers",
ehmaldonadof6a861a2017-07-19 10:40:47 -070061 "../rtc_base:rtc_base_approved",
ehmaldonado35a872c2017-07-28 07:29:12 -070062 "../rtc_base:rtc_json",
Niels Möller04a3cc12019-05-21 13:01:58 +020063 "../test:test_main",
Yves Gerey3e707812018-11-28 16:47:49 +010064 "../test:test_support",
hbos615d3012016-08-24 01:33:13 -070065 ]
66
67 if (is_android) {
68 deps += [ "//testing/android/native_test:native_test_native_code" ]
69 }
hbos615d3012016-08-24 01:33:13 -070070 }
71}