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 | |
| 9 | import("../build/webrtc.gni") |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 10 | |
| 11 | group("stats") { |
| 12 | deps = [ |
| 13 | ":rtc_stats", |
| 14 | ] |
| 15 | } |
| 16 | |
| 17 | # GYP version: webrtc/stats/stats.gyp:rtc_stats |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 18 | rtc_source_set("rtc_stats") { |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 19 | cflags = [] |
| 20 | sources = [ |
| 21 | "rtcstats.cc", |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 22 | "rtcstats_objects.cc", |
| 23 | "rtcstatscollector.cc", |
| 24 | "rtcstatscollector.h", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 25 | "rtcstatsreport.cc", |
| 26 | ] |
| 27 | |
| 28 | configs += [ "..:common_config" ] |
| 29 | public_configs = [ "..:common_inherited_config" ] |
| 30 | |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 31 | if (is_clang) { |
| 32 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 33 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 34 | } |
| 35 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 36 | deps = [ |
| 37 | "../api:libjingle_peerconnection", |
| 38 | ] |
| 39 | } |
| 40 | |
| 41 | if (rtc_include_tests) { |
| 42 | # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 43 | rtc_test("rtc_stats_unittests") { |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 44 | testonly = true |
| 45 | sources = [ |
| 46 | "rtcstats_unittest.cc", |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 47 | "rtcstatscollector_unittest.cc", |
hbos | 6d183ac | 2016-08-29 07:20:33 -0700 | [diff] [blame] | 48 | "rtcstatsreport_unittest.cc", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 49 | ] |
| 50 | |
| 51 | configs += [ "..:common_config" ] |
| 52 | public_configs = [ "..:common_inherited_config" ] |
| 53 | |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 54 | if (is_clang) { |
| 55 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 56 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 57 | } |
| 58 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 59 | deps = [ |
| 60 | ":rtc_stats", |
| 61 | "../base:rtc_base_tests_utils", |
| 62 | "../system_wrappers:metrics_default", |
| 63 | "//testing/gmock", |
| 64 | ] |
| 65 | |
| 66 | if (is_android) { |
| 67 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 68 | } |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 69 | } |
| 70 | } |