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

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

Issue 2380683005: Moved RtcEventLog files from call/ to logging/ (new top level dir) (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/call/webrtc_call.gypi ('k') | webrtc/logging/OWNERS » ('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) 2015 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")
11 if (is_android) {
12 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni")
14 }
10 15
11 rtc_static_library("call") { 16 rtc_source_set("rtc_event_log_api") {
12 sources = [ 17 sources = [
13 "bitrate_allocator.cc", 18 "rtc_event_log/rtc_event_log.h",
14 "call.cc",
15 "transport_adapter.cc",
16 "transport_adapter.h",
17 ]
18
19 if (is_clang) {
20 # Suppress warnings from Chrome's Clang plugins.
21 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
22 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
23 }
24
25 deps = [
26 ":rtc_event_log",
27 "..:webrtc_common",
28 "../api:call_api",
29 "../audio",
30 "../base:rtc_task_queue",
31 "../modules/congestion_controller",
32 "../modules/rtp_rtcp",
33 "../system_wrappers",
34 "../video",
35 ] 19 ]
36 } 20 }
37 21
38 rtc_static_library("rtc_event_log") { 22 rtc_static_library("rtc_event_log_impl") {
39 sources = [ 23 sources = [
40 "rtc_event_log.cc", 24 "rtc_event_log/ringbuffer.h",
41 "rtc_event_log.h", 25 "rtc_event_log/rtc_event_log.cc",
42 "rtc_event_log_helper_thread.cc", 26 "rtc_event_log/rtc_event_log_helper_thread.cc",
43 "rtc_event_log_helper_thread.h", 27 "rtc_event_log/rtc_event_log_helper_thread.h",
44 ] 28 ]
45 29
46 defines = [] 30 defines = []
47 31
48 deps = [ 32 deps = [
33 ":rtc_event_log_api",
49 "..:webrtc_common", 34 "..:webrtc_common",
50 "../modules/rtp_rtcp", 35 "../modules/rtp_rtcp",
51 ] 36 ]
52 37
53 if (rtc_enable_protobuf) { 38 if (rtc_enable_protobuf) {
54 defines += [ "ENABLE_RTC_EVENT_LOG" ] 39 defines += [ "ENABLE_RTC_EVENT_LOG" ]
55 deps += [ "..:rtc_event_log_proto" ] 40 deps += [ ":rtc_event_log_proto" ]
56 } 41 }
57 if (is_clang && !is_nacl) { 42 if (is_clang && !is_nacl) {
58 # Suppress warnings from Chrome's Clang plugins. 43 # Suppress warnings from Chrome's Clang plugins.
59 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 44 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
60 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 45 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
61 } 46 }
62 } 47 }
63 48
64 if (rtc_include_tests) { 49 if (rtc_include_tests) {
65 rtc_source_set("call_tests") { 50 rtc_source_set("rtc_event_log_tests") {
66 testonly = true 51 testonly = true
67 sources = [ 52 sources = [
68 "bitrate_allocator_unittest.cc", 53 "rtc_event_log/ringbuffer_unittest.cc",
69 "bitrate_estimator_tests.cc", 54 "rtc_event_log/rtc_event_log_unittest.cc",
70 "call_unittest.cc", 55 "rtc_event_log/rtc_event_log_unittest_helper.cc",
71 "packet_injection_tests.cc",
72 "ringbuffer_unittest.cc",
73 ] 56 ]
74 deps = [ 57 deps = [
75 ":call", 58 ":rtc_event_log_impl",
59 ":rtc_event_log_parser",
60 "../modules/rtp_rtcp",
61 "../system_wrappers:metrics_default",
76 "//testing/gmock", 62 "//testing/gmock",
77 "//testing/gtest", 63 "//testing/gtest",
78 ] 64 ]
79 if (is_clang) { 65 if (is_clang) {
80 # Suppress warnings from the Chromium Clang plugin. 66 # Suppress warnings from the Chromium Clang plugin.
81 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 67 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
82 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 68 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
83 } 69 }
84 } 70 }
85 rtc_source_set("rtc_event_log_tests") { 71 }
86 testonly = true 72
73 if (rtc_enable_protobuf) {
74 proto_library("rtc_event_log_proto") {
87 sources = [ 75 sources = [
88 "rtc_event_log_unittest.cc", 76 "rtc_event_log/rtc_event_log.proto",
89 "rtc_event_log_unittest_helper.cc",
90 ] 77 ]
91 deps = [ 78 proto_out_dir = "webrtc/logging/rtc_event_log"
92 ":rtc_event_log", 79 }
93 "..:rtc_event_log_parser", 80 }
94 "../modules/rtp_rtcp", 81
95 "../system_wrappers:metrics_default", 82 if (rtc_enable_protobuf) {
96 "//testing/gmock", 83 rtc_static_library("rtc_event_log_parser") {
97 "//testing/gtest", 84 sources = [
85 "rtc_event_log/rtc_event_log_parser.cc",
86 "rtc_event_log/rtc_event_log_parser.h",
98 ] 87 ]
99 if (is_clang) { 88
100 # Suppress warnings from the Chromium Clang plugin. 89 public_deps = [
90 ":rtc_event_log_proto",
91 "..:webrtc_common",
92 ]
93
94 if (is_clang && !is_nacl) {
95 # Suppress warnings from Chrome's Clang plugins.
101 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 96 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 97 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
103 } 98 }
104 } 99 }
105 } 100 }
OLDNEW
« no previous file with comments | « webrtc/call/webrtc_call.gypi ('k') | webrtc/logging/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698