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("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 if (rtc_enable_protobuf) { | 48 if (rtc_enable_protobuf) { |
49 defines += [ "ENABLE_RTC_EVENT_LOG" ] | 49 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
50 deps += [ ":rtc_event_log_proto" ] | 50 deps += [ ":rtc_event_log_proto" ] |
51 } | 51 } |
52 if (!build_with_chromium && is_clang) { | 52 if (!build_with_chromium && is_clang) { |
53 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 53 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 if (rtc_include_tests) { | |
59 rtc_source_set("rtc_event_log_tests") { | |
60 testonly = true | |
61 sources = [ | |
62 "rtc_event_log/ringbuffer_unittest.cc", | |
63 "rtc_event_log/rtc_event_log_unittest.cc", | |
64 "rtc_event_log/rtc_event_log_unittest_helper.cc", | |
65 ] | |
66 deps = [ | |
67 ":rtc_event_log_impl", | |
68 ":rtc_event_log_parser", | |
69 "../call", | |
70 "../modules/rtp_rtcp", | |
71 "../system_wrappers:metrics_default", | |
72 "//testing/gmock", | |
73 "//testing/gtest", | |
74 ] | |
75 if (!build_with_chromium && is_clang) { | |
76 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
77 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
78 } | |
79 } | |
80 } | |
81 | |
82 if (rtc_enable_protobuf) { | 58 if (rtc_enable_protobuf) { |
83 proto_library("rtc_event_log_proto") { | 59 proto_library("rtc_event_log_proto") { |
84 sources = [ | 60 sources = [ |
85 "rtc_event_log/rtc_event_log.proto", | 61 "rtc_event_log/rtc_event_log.proto", |
86 ] | 62 ] |
87 proto_out_dir = "webrtc/logging/rtc_event_log" | 63 proto_out_dir = "webrtc/logging/rtc_event_log" |
88 } | 64 } |
89 } | |
90 | 65 |
91 if (rtc_enable_protobuf) { | |
92 rtc_static_library("rtc_event_log_parser") { | 66 rtc_static_library("rtc_event_log_parser") { |
93 sources = [ | 67 sources = [ |
94 "rtc_event_log/rtc_event_log_parser.cc", | 68 "rtc_event_log/rtc_event_log_parser.cc", |
95 "rtc_event_log/rtc_event_log_parser.h", | 69 "rtc_event_log/rtc_event_log_parser.h", |
96 ] | 70 ] |
97 | 71 |
98 public_deps = [ | 72 public_deps = [ |
99 ":rtc_event_log_proto", | 73 ":rtc_event_log_proto", |
100 "..:webrtc_common", | 74 "..:webrtc_common", |
101 ] | 75 ] |
102 | 76 |
103 if (!build_with_chromium && is_clang) { | 77 if (!build_with_chromium && is_clang) { |
104 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 78 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
105 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 79 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
106 } | 80 } |
107 } | 81 } |
| 82 |
| 83 if (rtc_include_tests) { |
| 84 rtc_source_set("rtc_event_log_tests") { |
| 85 testonly = true |
| 86 sources = [ |
| 87 "rtc_event_log/ringbuffer_unittest.cc", |
| 88 "rtc_event_log/rtc_event_log_unittest.cc", |
| 89 "rtc_event_log/rtc_event_log_unittest_helper.cc", |
| 90 ] |
| 91 deps = [ |
| 92 ":rtc_event_log_impl", |
| 93 ":rtc_event_log_parser", |
| 94 "../call", |
| 95 "../modules/rtp_rtcp", |
| 96 "../system_wrappers:metrics_default", |
| 97 "//testing/gmock", |
| 98 "//testing/gtest", |
| 99 ] |
| 100 if (!build_with_chromium && is_clang) { |
| 101 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 103 } |
| 104 } |
| 105 } |
108 } | 106 } |
OLD | NEW |