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("../webrtc.gni") | 9 import("../webrtc.gni") |
10 import("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
11 if (is_android) { | 11 if (is_android) { |
12 import("//build/config/android/config.gni") | 12 import("//build/config/android/config.gni") |
13 import("//build/config/android/rules.gni") | 13 import("//build/config/android/rules.gni") |
14 } | 14 } |
15 | 15 |
16 group("logging") { | 16 group("logging") { |
17 public_deps = [ | 17 public_deps = [ |
18 ":rtc_event_log_impl", | 18 ":rtc_event_log_impl", |
19 ] | 19 ] |
20 if (rtc_enable_protobuf) { | 20 if (rtc_enable_protobuf) { |
21 public_deps += [ ":rtc_event_log_parser" ] | 21 public_deps += [ ":rtc_event_log_parser" ] |
22 } | 22 } |
23 } | 23 } |
24 | 24 |
25 rtc_source_set("rtc_event_log_api") { | 25 rtc_source_set("rtc_event_log_api") { |
26 # TODO(kjellander): Remove (bugs.webrtc.org/7257) | |
27 # Enabling GN check triggers cyclic dependency error: | |
28 # //webrtc/logging:rtc_event_log_api -> | |
29 # //webrtc/modules/audio_coding:audio_network_adaptor -> | |
30 # //webrtc/logging:rtc_event_log_api | |
31 check_includes = false | |
32 sources = [ | 26 sources = [ |
33 "rtc_event_log/rtc_event_log.h", | 27 "rtc_event_log/rtc_event_log.h", |
34 ] | 28 ] |
35 deps = [ | 29 deps = [ |
36 "../base:rtc_base_approved", | 30 "../base:rtc_base_approved", |
37 "../call:call_interfaces", | 31 "../call:call_interfaces", |
32 "../modules/remote_bitrate_estimator:remote_bitrate_estimator", | |
terelius
2017/04/06 09:39:37
I don't like this. The event log API should not li
| |
38 ] | 33 ] |
39 } | 34 } |
40 | 35 |
41 rtc_static_library("rtc_event_log_impl") { | 36 rtc_static_library("rtc_event_log_impl") { |
42 sources = [ | 37 sources = [ |
43 "rtc_event_log/ringbuffer.h", | 38 "rtc_event_log/ringbuffer.h", |
44 "rtc_event_log/rtc_event_log.cc", | 39 "rtc_event_log/rtc_event_log.cc", |
45 "rtc_event_log/rtc_event_log_helper_thread.cc", | 40 "rtc_event_log/rtc_event_log_helper_thread.cc", |
46 "rtc_event_log/rtc_event_log_helper_thread.h", | 41 "rtc_event_log/rtc_event_log_helper_thread.h", |
47 ] | 42 ] |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 sources = [ | 75 sources = [ |
81 "rtc_event_log/rtc_event_log_parser.cc", | 76 "rtc_event_log/rtc_event_log_parser.cc", |
82 "rtc_event_log/rtc_event_log_parser.h", | 77 "rtc_event_log/rtc_event_log_parser.h", |
83 ] | 78 ] |
84 | 79 |
85 public_deps = [ | 80 public_deps = [ |
86 ":rtc_event_log_api", | 81 ":rtc_event_log_api", |
87 ":rtc_event_log_proto", | 82 ":rtc_event_log_proto", |
88 "..:webrtc_common", | 83 "..:webrtc_common", |
89 "../call:call_interfaces", | 84 "../call:call_interfaces", |
85 "../modules/audio_coding:audio_network_adaptor", | |
90 "../modules/rtp_rtcp:rtp_rtcp", | 86 "../modules/rtp_rtcp:rtp_rtcp", |
91 "../system_wrappers", | 87 "../system_wrappers", |
92 ] | 88 ] |
93 | 89 |
94 if (!build_with_chromium && is_clang) { | 90 if (!build_with_chromium && is_clang) { |
95 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 91 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
96 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 92 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
97 } | 93 } |
98 deps = [ | 94 deps = [ |
99 "../base:rtc_base_approved", | 95 "../base:rtc_base_approved", |
100 ] | 96 ] |
101 } | 97 } |
102 | 98 |
103 if (rtc_include_tests) { | 99 if (rtc_include_tests) { |
104 rtc_source_set("rtc_event_log_tests") { | 100 rtc_source_set("rtc_event_log_tests") { |
105 testonly = true | 101 testonly = true |
106 sources = [ | 102 sources = [ |
107 "rtc_event_log/ringbuffer_unittest.cc", | 103 "rtc_event_log/ringbuffer_unittest.cc", |
108 "rtc_event_log/rtc_event_log_unittest.cc", | 104 "rtc_event_log/rtc_event_log_unittest.cc", |
109 "rtc_event_log/rtc_event_log_unittest_helper.cc", | 105 "rtc_event_log/rtc_event_log_unittest_helper.cc", |
110 ] | 106 ] |
111 deps = [ | 107 deps = [ |
112 ":rtc_event_log_impl", | 108 ":rtc_event_log_impl", |
113 ":rtc_event_log_parser", | 109 ":rtc_event_log_parser", |
114 "../base:rtc_base_approved", | 110 "../base:rtc_base_approved", |
115 "../base:rtc_base_tests_utils", | 111 "../base:rtc_base_tests_utils", |
116 "../call", | 112 "../call", |
113 "../modules/audio_coding:audio_network_adaptor", | |
117 "../modules/rtp_rtcp", | 114 "../modules/rtp_rtcp", |
118 "../system_wrappers:metrics_default", | 115 "../system_wrappers:metrics_default", |
119 "../test:test_support", | 116 "../test:test_support", |
120 "//testing/gmock", | 117 "//testing/gmock", |
121 "//testing/gtest", | 118 "//testing/gtest", |
122 ] | 119 ] |
123 if (!build_with_chromium && is_clang) { | 120 if (!build_with_chromium && is_clang) { |
124 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | 121 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . |
125 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 122 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
126 } | 123 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 "../modules/rtp_rtcp:rtp_rtcp", | 163 "../modules/rtp_rtcp:rtp_rtcp", |
167 "//third_party/gflags", | 164 "//third_party/gflags", |
168 ] | 165 ] |
169 if (!build_with_chromium && is_clang) { | 166 if (!build_with_chromium && is_clang) { |
170 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | 167 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . |
171 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 168 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
172 } | 169 } |
173 } | 170 } |
174 } | 171 } |
175 } | 172 } |
OLD | NEW |