| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 11 | 11 |
| 12 group("stats") { | 12 group("stats") { |
| 13 deps = [ | 13 deps = [ |
| 14 ":rtc_stats", | 14 ":rtc_stats", |
| 15 ] | 15 ] |
| 16 } | 16 } |
| 17 | 17 |
| 18 # GYP version: webrtc/stats/stats.gyp:rtc_stats | 18 # GYP version: webrtc/stats/stats.gyp:rtc_stats |
| 19 source_set("rtc_stats") { | 19 source_set("rtc_stats") { |
| 20 cflags = [] | 20 cflags = [] |
| 21 sources = [ | 21 sources = [ |
| 22 "rtcstats.cc", | 22 "rtcstats.cc", |
| 23 "rtcstats_objects.cc", |
| 24 "rtcstatscollector.cc", |
| 25 "rtcstatscollector.h", |
| 23 "rtcstatsreport.cc", | 26 "rtcstatsreport.cc", |
| 24 ] | 27 ] |
| 25 | 28 |
| 26 configs += [ "..:common_config" ] | 29 configs += [ "..:common_config" ] |
| 27 public_configs = [ "..:common_inherited_config" ] | 30 public_configs = [ "..:common_inherited_config" ] |
| 28 | 31 |
| 32 if (is_clang) { |
| 33 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 34 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 35 } |
| 36 |
| 29 deps = [ | 37 deps = [ |
| 30 "../api:libjingle_peerconnection", | 38 "../api:libjingle_peerconnection", |
| 31 ] | 39 ] |
| 32 } | 40 } |
| 33 | 41 |
| 34 if (rtc_include_tests) { | 42 if (rtc_include_tests) { |
| 35 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests | 43 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests |
| 36 test("rtc_stats_unittests") { | 44 test("rtc_stats_unittests") { |
| 37 testonly = true | 45 testonly = true |
| 38 sources = [ | 46 sources = [ |
| 39 "rtcstats_unittest.cc", | 47 "rtcstats_unittest.cc", |
| 48 "rtcstatscollector_unittest.cc", |
| 40 "rtcstatsreport_unittest.cc", | 49 "rtcstatsreport_unittest.cc", |
| 41 ] | 50 ] |
| 42 | 51 |
| 43 configs += [ "..:common_config" ] | 52 configs += [ "..:common_config" ] |
| 44 public_configs = [ "..:common_inherited_config" ] | 53 public_configs = [ "..:common_inherited_config" ] |
| 45 | 54 |
| 55 if (is_clang) { |
| 56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 57 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 58 } |
| 59 |
| 46 deps = [ | 60 deps = [ |
| 47 ":rtc_stats", | 61 ":rtc_stats", |
| 48 "../base:rtc_base_tests_utils", | 62 "../base:rtc_base_tests_utils", |
| 49 "../system_wrappers:metrics_default", | 63 "../system_wrappers:metrics_default", |
| 50 "//testing/gmock", | 64 "//testing/gmock", |
| 51 ] | 65 ] |
| 52 | 66 |
| 53 if (is_android) { | 67 if (is_android) { |
| 54 deps += [ "//testing/android/native_test:native_test_native_code" ] | 68 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 55 } | 69 } |
| 56 | |
| 57 if (is_clang) { | |
| 58 # Suppress warnings from Chrome's Clang plugins. | |
| 59 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
| 60 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
| 61 } | |
| 62 } | 70 } |
| 63 } | 71 } |
| OLD | NEW |