1# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17config("hiview_event_report_config") {
18  visibility = [ "*:*" ]
19
20  include_dirs = [
21    "cache/include",
22    "event/include",
23    "factory/include",
24    "include",
25  ]
26}
27
28ohos_source_set("hiview_event_report") {
29  sources = [
30    "cache/hiview_event_cacher.cpp",
31    "event/logger_event.cpp",
32    "event/param_value.cpp",
33    "event/plugin_event.cpp",
34    "event/plugin_fault_event.cpp",
35    "event/plugin_stats_event.cpp",
36    "factory/plugin_fault_event_factory.cpp",
37    "factory/plugin_load_event_factory.cpp",
38    "factory/plugin_stats_event_factory.cpp",
39    "factory/plugin_unload_event_factory.cpp",
40    "hiview_event_report.cpp",
41  ]
42
43  public_configs = [ ":hiview_event_report_config" ]
44
45  external_deps = [
46    "c_utils:utils",
47    "hilog:libhilog",
48    "hisysevent:libhisysevent",
49    "jsoncpp:jsoncpp",
50  ]
51
52  deps = [
53    "$hiview_base:logger",
54    "$hiview_base/utility:hiview_utility",
55  ]
56
57  part_name = "hiview"
58  subsystem_name = "hiviewdfx"
59}
60