Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: webrtc/stats/BUILD.gn

Issue 2311843002: GN Templates: Move common_inherited_config to the template. (Closed)
Patch Set: Added comment for rtc_common_inherited_config. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/sdk/BUILD.gn ('k') | webrtc/system_wrappers/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
11 group("stats") { 11 group("stats") {
12 deps = [ 12 deps = [
13 ":rtc_stats", 13 ":rtc_stats",
14 ] 14 ]
15 } 15 }
16 16
17 # GYP version: webrtc/stats/stats.gyp:rtc_stats 17 # GYP version: webrtc/stats/stats.gyp:rtc_stats
18 rtc_source_set("rtc_stats") { 18 rtc_source_set("rtc_stats") {
19 cflags = [] 19 cflags = []
20 sources = [ 20 sources = [
21 "rtcstats.cc", 21 "rtcstats.cc",
22 "rtcstats_objects.cc", 22 "rtcstats_objects.cc",
23 "rtcstatscollector.cc", 23 "rtcstatscollector.cc",
24 "rtcstatscollector.h", 24 "rtcstatscollector.h",
25 "rtcstatsreport.cc", 25 "rtcstatsreport.cc",
26 ] 26 ]
27 27
28 public_configs = [ "..:common_inherited_config" ]
29
30 if (is_clang) { 28 if (is_clang) {
31 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 29 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
32 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 30 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
33 } 31 }
34 32
35 deps = [ 33 deps = [
36 "../api:libjingle_peerconnection", 34 "../api:libjingle_peerconnection",
37 ] 35 ]
38 } 36 }
39 37
40 if (rtc_include_tests) { 38 if (rtc_include_tests) {
41 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests 39 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests
42 rtc_test("rtc_stats_unittests") { 40 rtc_test("rtc_stats_unittests") {
43 testonly = true 41 testonly = true
44 sources = [ 42 sources = [
45 "rtcstats_unittest.cc", 43 "rtcstats_unittest.cc",
46 "rtcstatscollector_unittest.cc", 44 "rtcstatscollector_unittest.cc",
47 "rtcstatsreport_unittest.cc", 45 "rtcstatsreport_unittest.cc",
48 ] 46 ]
49 47
50 public_configs = [ "..:common_inherited_config" ]
51
52 if (is_clang) { 48 if (is_clang) {
53 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 49 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 50 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
55 } 51 }
56 52
57 deps = [ 53 deps = [
58 ":rtc_stats", 54 ":rtc_stats",
59 "../base:rtc_base_tests_utils", 55 "../base:rtc_base_tests_utils",
60 "../system_wrappers:metrics_default", 56 "../system_wrappers:metrics_default",
61 "//testing/gmock", 57 "//testing/gmock",
62 ] 58 ]
63 59
64 if (is_android) { 60 if (is_android) {
65 deps += [ "//testing/android/native_test:native_test_native_code" ] 61 deps += [ "//testing/android/native_test:native_test_native_code" ]
66 } 62 }
67 } 63 }
68 } 64 }
OLDNEW
« no previous file with comments | « webrtc/sdk/BUILD.gn ('k') | webrtc/system_wrappers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698