• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("//build/ohos.gni")
15
16hicollie_part_path = "//base/hiviewdfx/hicollie"
17config("hicollie_include") {
18  include_dirs = [
19    ".",
20    "${hicollie_part_path}/interfaces/native/innerkits/include/xcollie",
21    "/foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
22    "//commonlibrary/c_utils/base/include",
23  ]
24  if (is_ohos) {
25    cflags_cc = [ "-D__XCOLLIE_OHOS__" ]
26  }
27}
28
29ohos_source_set("libhicollie_source") {
30  sources = [
31    "handler_checker.cpp",
32    "watchdog.cpp",
33    "watchdog_inner.cpp",
34    "watchdog_task.cpp",
35    "xcollie.cpp",
36    "xcollie_utils.cpp",
37  ]
38  configs = [ ":hicollie_include" ]
39
40  external_deps = [
41    "c_utils:utils",
42    "eventhandler:libeventhandler",
43    "faultloggerd:libbacktrace_local",
44    "ffrt:libffrt",
45    "hilog:libhilog",
46    "hisysevent:libhisysevent",
47    "ipc:ipc_single",
48  ]
49
50  part_name = "hicollie"
51  subsystem_name = "hiviewdfx"
52}
53
54group("libhicollie") {
55  deps = [ ":libhicollie_source" ]
56}
57