Danil Chapovalov | b32f2c7 | 2019-05-22 13:39:25 +0200 | [diff] [blame] | 1 | # Copyright (c) 2019 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("../../webrtc.gni") |
| 10 | |
| 11 | rtc_source_set("rtc_event_log") { |
| 12 | visibility = [ "*" ] |
| 13 | sources = [ |
| 14 | "rtc_event.cc", |
| 15 | "rtc_event.h", |
| 16 | "rtc_event_log.cc", |
| 17 | "rtc_event_log.h", |
| 18 | "rtc_event_log_factory_interface.h", |
| 19 | ] |
| 20 | |
| 21 | deps = [ |
| 22 | "..:libjingle_logging_api", |
| 23 | "../../rtc_base:checks", |
Danil Chapovalov | b32f2c7 | 2019-05-22 13:39:25 +0200 | [diff] [blame] | 24 | "../../rtc_base:timeutils", |
| 25 | "../task_queue", |
Danil Chapovalov | b32f2c7 | 2019-05-22 13:39:25 +0200 | [diff] [blame] | 26 | ] |
| 27 | } |
| 28 | |
| 29 | rtc_source_set("rtc_event_log_factory") { |
| 30 | visibility = [ "*" ] |
| 31 | sources = [ |
| 32 | "rtc_event_log_factory.cc", |
| 33 | "rtc_event_log_factory.h", |
| 34 | ] |
| 35 | |
| 36 | deps = [ |
| 37 | ":rtc_event_log", |
| 38 | "../../rtc_base:checks", |
| 39 | "../task_queue", |
| 40 | "//third_party/abseil-cpp/absl/memory", |
| 41 | ] |
| 42 | |
| 43 | if (rtc_enable_protobuf) { |
| 44 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 45 | deps += [ "../../logging:rtc_event_log_impl" ] |
| 46 | } |
| 47 | } |