1# Copyright (c) 2024 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")
15
16ohos_prebuilt_etc("adft_plugin_config") {
17  source = "adft_plugin_config"
18  relative_install_dir = "hiview"
19  part_name = "hiview"
20  subsystem_name = "hiviewdfx"
21}
22
23ohos_shared_library("adft") {
24  branch_protector_ret = "pac_ret"
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    cfi_vcall_icall_only = true
29    debug = false
30  }
31
32  deps = [
33    ":adft_plugin_config",
34    "$hiview_base:hiviewbase",
35    "$hiview_plugin/event_store:sys_event_store",
36    "$hiview_plugin/privacy_controller:privacy_controller",
37    "$hiview_plugin/sys_dispatcher:sys_dispatcher",
38    "$hiview_plugin/sysevent_source:sysevent_source",
39    "$hiview_plugin/unified_collector:unified_collector",
40    "$hiview_plugin/usage_event_report:usage_event_report",
41  ]
42
43  external_deps = [
44    "c_utils:utils",
45    "hilog:libhilog",
46  ]
47
48  version_script = "libdft.map"
49  part_name = "hiview"
50  subsystem_name = "hiviewdfx"
51}
52
53ohos_shared_library("bdfr") {
54  sanitize = {
55    cfi = true
56    cfi_cross_dso = true
57    cfi_vcall_icall_only = true
58    debug = false
59  }
60
61  deps = [
62    ":bdfr_plugin_config",
63    "$hiview_plugin/faultlogger:faultlogger",
64    "$hiview_plugin/faultlogger:libfaultlogger",
65    "$hiview_plugin/reliability/bbox_detectors:bbox_detector_with_cfi",
66  ]
67
68  external_deps = [
69    "c_utils:utils",
70    "hilog:libhilog",
71  ]
72
73  version_script = "libdfr.map"
74
75  part_name = "hiview"
76  subsystem_name = "hiviewdfx"
77}
78
79ohos_prebuilt_etc("bdfr_plugin_config") {
80  source = "bdfr_plugin_config"
81  part_name = "hiview"
82  subsystem_name = "hiviewdfx"
83  relative_install_dir = "hiview"
84}
85