• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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.
13import("//base/hiviewdfx/hiview/hiview.gni")
14import("//build/ohos.gni")
15config("faultlogger_common_config") {
16  visibility = [ "*:*" ]
17  include_dirs = [ "." ]
18}
19
20ohos_source_set("log_analyzer") {
21  include_dirs = [
22    "//base/hiviewdfx/hiview/utility/smart_parser",
23    "//base/hiviewdfx/hiview/utility/common_utils/include",
24  ]
25
26  public_configs = [ ":faultlogger_common_config" ]
27
28  sources = [ "log_analyzer.cpp" ]
29
30  deps = [
31    ":faultlogger_common",
32    "$hiview_base:logger",
33    "$hiview_base/utility:hiview_utility",
34    "$hiview_root/utility/common_utils:hiview_reliability_common_utils",
35    "$hiview_root/utility/smart_parser:smart_parser",
36  ]
37
38  part_name = "hiview"
39}
40
41ohos_source_set("faultlogger_common") {
42  public_configs = [ ":faultlogger_common_config" ]
43  sources = [
44    "faultlog_query_result_inner.cpp",
45    "faultlog_util.cpp",
46  ]
47
48  deps = [
49    "$hiview_base:logger",
50    "$hiview_base/event_raw:hiview_event_raw_decode",
51    "$hiview_base/event_raw:hiview_event_raw_encode",
52    "$hiview_base/utility:hiview_utility",
53  ]
54
55  external_deps = [ "hilog:libhilog" ]
56
57  part_name = "hiview"
58}
59