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") { |
kjellander | 705ecc5 | 2016-09-15 00:53:26 -0700 | [diff] [blame] | 12 | public_deps = [ |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 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", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 23 | "rtcstatsreport.cc", |
| 24 | ] |
| 25 | |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 26 | if (is_clang) { |
| 27 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 28 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 29 | } |
| 30 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 31 | deps = [ |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 32 | "../api:rtc_stats_api", |
| 33 | "../base:rtc_base_approved", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 34 | ] |
| 35 | } |
| 36 | |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 37 | rtc_source_set("rtc_stats_test_utils") { |
| 38 | cflags = [] |
| 39 | sources = [ |
| 40 | "test/rtcteststats.cc", |
| 41 | "test/rtcteststats.h", |
| 42 | ] |
| 43 | |
| 44 | if (is_clang) { |
| 45 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 46 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 47 | } |
| 48 | |
| 49 | deps = [ |
| 50 | ":rtc_stats", |
| 51 | "../api:rtc_stats_api", |
| 52 | ] |
| 53 | } |
| 54 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 55 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 56 | rtc_test("rtc_stats_unittests") { |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 57 | testonly = true |
| 58 | sources = [ |
| 59 | "rtcstats_unittest.cc", |
hbos | 6d183ac | 2016-08-29 07:20:33 -0700 | [diff] [blame] | 60 | "rtcstatsreport_unittest.cc", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 61 | ] |
| 62 | |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 63 | if (is_clang) { |
| 64 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 65 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
hbos | d565b73 | 2016-08-30 14:04:35 -0700 | [diff] [blame] | 66 | } |
| 67 | |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 68 | deps = [ |
| 69 | ":rtc_stats", |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 70 | ":rtc_stats_test_utils", |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 71 | "../base:rtc_base_tests_utils", |
| 72 | "../system_wrappers:metrics_default", |
| 73 | "//testing/gmock", |
| 74 | ] |
| 75 | |
| 76 | if (is_android) { |
| 77 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 78 | } |
hbos | 615d301 | 2016-08-24 01:33:13 -0700 | [diff] [blame] | 79 | } |
| 80 | } |