• 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    "//commonlibrary/c_utils/base/include",
22  ]
23  if (is_ohos) {
24    cflags_cc = [ "-D__XCOLLIE_OHOS__" ]
25  }
26}
27
28ohos_source_set("libhicollie_source") {
29  sources = [
30    "handler_checker.cpp",
31    "timer_ring.cpp",
32    "watchdog.cpp",
33    "watchdog_inner.cpp",
34    "watchdog_task.cpp",
35    "xcollie.cpp",
36    "xcollie_inner.cpp",
37    "xcollie_utils.cpp",
38  ]
39  configs = [ ":hicollie_include" ]
40
41  external_deps = [
42    "c_utils:utils",
43    "eventhandler:libeventhandler",
44    "hilog_native:libhilog",
45    "hisysevent_native:libhisysevent",
46  ]
47
48  part_name = "hicollie_native"
49  subsystem_name = "hiviewdfx"
50}
51
52group("libhicollie") {
53  deps = [ ":libhicollie_source" ]
54}
55