Index: webrtc/stats/BUILD.gn |
diff --git a/webrtc/stats/BUILD.gn b/webrtc/stats/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a9652012ede9b2035a1cac882cefd68f0cb468fa |
--- /dev/null |
+++ b/webrtc/stats/BUILD.gn |
@@ -0,0 +1,56 @@ |
+# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
+# |
+# Use of this source code is governed by a BSD-style license |
+# that can be found in the LICENSE file in the root of the source |
+# tree. An additional intellectual property rights grant can be found |
+# in the file PATENTS. All contributing project authors may |
+# be found in the AUTHORS file in the root of the source tree. |
+ |
+import("../build/webrtc.gni") |
+import("//testing/test.gni") |
+ |
+# GYP version: webrtc/stats/stats.gyp:rtc_stats |
+source_set("rtc_stats") { |
+ cflags = [] |
+ sources = [ |
+ "rtcstats.cc", |
+ "rtcstatsreport.cc", |
+ ] |
+ |
+ configs += [ "..:common_config" ] |
+ public_configs = [ "..:common_inherited_config" ] |
+ |
+ if (is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
+ configs -= [ "//build/config/clang:find_bad_constructs" ] |
kjellander_webrtc
2016/08/15 11:21:51
Can't you fix the warnings instead of having to ad
hbos
2016/08/15 13:27:11
Done.
kjellander_webrtc
2016/08/15 13:34:20
If you fixed the warnings, remove this line to pro
hbos
2016/08/15 13:57:57
Done. (Oops, lost removing those lines when switch
|
+ } |
+ |
+ deps = [ |
+ "../api:libjingle_peerconnection", |
+ ] |
+} |
+ |
+if (rtc_include_tests) { |
+ # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests |
+ test("rtc_stats_unittests") { |
hbos
2016/08/13 08:31:39
This is a new unittest built from a new folder, we
kjellander_webrtc
2016/08/15 11:21:51
Can you make this target run on Android as well?
hbos
2016/08/15 13:27:12
Done.
hbos
2016/08/15 13:57:57
I made it work for GN, but not GYP as discussed of
|
+ testonly = true |
+ sources = [ |
+ "rtcstats_unittest.cc", |
+ ] |
+ |
+ configs += [ "..:common_config" ] |
+ public_configs = [ "..:common_inherited_config" ] |
+ |
+ if (is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
+ configs -= [ "//build/config/clang:find_bad_constructs" ] |
kjellander_webrtc
2016/08/15 11:21:51
Please fix the warnings instead of adding this (un
hbos
2016/08/15 13:27:11
Done.
|
+ } |
+ |
+ deps = [ |
+ ":rtc_stats", |
+ "../base:rtc_base_tests_utils", |
+ "../system_wrappers:metrics_default", |
+ "//testing/gmock", |
+ ] |
+ } |
+} |