• 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.
13
14import("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17config("freeze_detector_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "//third_party/libxml2/include",
21    "//base/hiviewdfx/hiview/base/include",
22    "//base/hiviewdfx/hiview/utility/smart_parser",
23    "//base/hiviewdfx/hiview/base/event_store/include",
24    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
25    "//base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include",
26    ".",
27  ]
28}
29
30ohos_source_set("freeze_detector") {
31  part_name = "hiview"
32  sources = [
33    "db_helper.cpp",
34    "freeze_common.cpp",
35    "freeze_detector_plugin.cpp",
36    "resolver.cpp",
37    "rule_cluster.cpp",
38    "vendor.cpp",
39    "watch_point.cpp",
40  ]
41
42  configs = [ ":freeze_detector_config" ]
43
44  external_deps = [
45    "hilog_native:libhilog",
46    "hiview:libfaultlogger",
47  ]
48
49  deps = [
50    "$hiview_base:hiviewbase",
51    "$hiview_base/event_store:event_store_source",
52    "$hiview_root/utility/smart_parser:smart_parser",
53    "config:config",
54    "//third_party/libxml2:xml2",
55  ]
56}
57
58group("unittest") {
59  testonly = true
60  deps = [
61    "test:FreezeDetectorTest",
62    "test:FreezeDetectorUnittest",
63  ]
64}
65
66group("moduletest") {
67  testonly = true
68  deps = []
69}
70