1# Copyright (c) 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")
15import("../../../hichecker.gni")
16
17config("hichecker_native_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [ "include" ]
21}
22
23ohos_prebuilt_etc("hichecker.para") {
24  source = "hichecker.para"
25  install_images = [
26    "system",
27    "updater",
28  ]
29  module_install_dir = "etc/param"
30  part_name = "hichecker"
31  subsystem_name = "hiviewdfx"
32}
33
34ohos_prebuilt_etc("hichecker.para.dac") {
35  source = "hichecker.para.dac"
36  install_images = [
37    "system",
38    "updater",
39  ]
40  module_install_dir = "etc/param"
41  part_name = "hichecker"
42  subsystem_name = "hiviewdfx"
43}
44
45group("hichecker_etc") {
46  deps = [
47    ":hichecker.para",
48    ":hichecker.para.dac",
49  ]
50}
51
52ohos_shared_library("libhichecker") {
53  branch_protector_ret = "pac_ret"
54  public_configs = [ ":hichecker_native_config" ]
55
56  deps = [
57    ":hichecker_etc",
58    "../../../frameworks/native:libhichecker_source",
59  ]
60  external_deps = [ "hilog:libhilog" ]
61
62  output_extension = "so"
63  innerapi_tags = [ "platformsdk" ]
64  part_name = "hichecker"
65  subsystem_name = "hiviewdfx"
66}
67