hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 10 | |
| 11 | group("stats") { |
Mirko Bonadei | 0880f4b | 2017-12-04 11:49:49 +0100 | [diff] [blame] | 12 | deps = [ |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 13 | ":rtc_stats", |
| 14 | ] |
| 15 | } |
| 16 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 17 | rtc_library("rtc_stats") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 18 | visibility = [ "*" ] |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 19 | cflags = [] |
| 20 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 21 | "rtc_stats.cc", |
| 22 | "rtc_stats_report.cc", |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 23 | "rtcstats_objects.cc", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 26 | deps = [ |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 27 | "../api:rtc_stats_api", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 28 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 29 | "../rtc_base:rtc_base_approved", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 30 | ] |
| 31 | } |
| 32 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 33 | rtc_library("rtc_stats_test_utils") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 34 | visibility = [ "*" ] |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 35 | cflags = [] |
| 36 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 37 | "test/rtc_test_stats.cc", |
| 38 | "test/rtc_test_stats.h", |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 39 | ] |
| 40 | |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 41 | deps = [ |
| 42 | ":rtc_stats", |
| 43 | "../api:rtc_stats_api", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 44 | "../rtc_base:checks", |
Mirko Bonadei | 977b46a | 2018-10-24 16:22:04 +0200 | [diff] [blame] | 45 | "../rtc_base/system:rtc_export", |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 46 | ] |
| 47 | } |
| 48 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 49 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 50 | rtc_test("rtc_stats_unittests") { |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 51 | testonly = true |
| 52 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 53 | "rtc_stats_report_unittest.cc", |
| 54 | "rtc_stats_unittest.cc", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 55 | ] |
| 56 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 57 | deps = [ |
| 58 | ":rtc_stats", |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 59 | ":rtc_stats_test_utils", |
kjellander | dcb4b43 | 2017-02-27 15:53:39 -0800 | [diff] [blame] | 60 | "../api:rtc_stats_api", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 61 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 62 | "../rtc_base:gunit_helpers", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 63 | "../rtc_base:rtc_base_approved", |
ehmaldonado | 35a872c | 2017-07-28 07:29:12 -0700 | [diff] [blame] | 64 | "../rtc_base:rtc_json", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 65 | "../test:test_main", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 66 | "../test:test_support", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 67 | ] |
| 68 | |
| 69 | if (is_android) { |
| 70 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 71 | } |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 72 | } |
| 73 | } |