OLD | NEW |
---|---|
(Empty) | |
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") | |
10 import("//testing/test.gni") | |
11 | |
12 # GYP version: webrtc/stats/stats.gyp:rtc_stats | |
13 source_set("rtc_stats") { | |
14 cflags = [] | |
15 sources = [ | |
16 "rtcstats.cc", | |
17 "rtcstatsreport.cc", | |
18 ] | |
19 | |
20 configs += [ "..:common_config" ] | |
21 public_configs = [ "..:common_inherited_config" ] | |
22 | |
23 if (is_clang) { | |
24 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
25 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
| |
26 } | |
27 | |
28 deps = [ | |
29 "../api:libjingle_peerconnection", | |
30 ] | |
31 } | |
32 | |
33 if (rtc_include_tests) { | |
34 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests | |
35 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
| |
36 testonly = true | |
37 sources = [ | |
38 "rtcstats_unittest.cc", | |
39 ] | |
40 | |
41 configs += [ "..:common_config" ] | |
42 public_configs = [ "..:common_inherited_config" ] | |
43 | |
44 if (is_clang) { | |
45 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
46 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.
| |
47 } | |
48 | |
49 deps = [ | |
50 ":rtc_stats", | |
51 "../base:rtc_base_tests_utils", | |
52 "../system_wrappers:metrics_default", | |
53 "//testing/gmock", | |
54 ] | |
55 } | |
56 } | |
OLD | NEW |