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
9import("../../webrtc.gni")
10
11rtc_library("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",
24    "../../rtc_base:timeutils",
25    "../task_queue",
26  ]
27}
28
29rtc_library("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    "../../rtc_base/system:rtc_export",
40    "../task_queue",
41  ]
42
43  if (rtc_enable_protobuf) {
44    defines = [ "WEBRTC_ENABLE_RTC_EVENT_LOG" ]
45    deps += [ "../../logging:rtc_event_log_impl" ]
46  }
47}
48