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/sys_dispatcher:sys_dispatcher", 36 "$hiview_plugin/sysevent_source:sysevent_source", 37 "$hiview_plugin/unified_collector:unified_collector", 38 ] 39 40 if (hiview_sysevent_store_enable) { 41 deps += [ "$hiview_plugin/event_store:sys_event_store" ] 42 } 43 44 if (hiview_privacy_enable) { 45 deps += [ "$hiview_plugin/privacy_controller:privacy_controller" ] 46 } 47 48 if (hiview_usage_stat_enable) { 49 deps += [ "$hiview_plugin/usage_event_report:usage_event_report" ] 50 } 51 52 external_deps = [ 53 "c_utils:utils", 54 "hilog:libhilog", 55 ] 56 57 version_script = "libdft.map" 58 part_name = "hiview" 59 subsystem_name = "hiviewdfx" 60} 61 62ohos_shared_library("bdfr") { 63 sanitize = { 64 cfi = true 65 cfi_cross_dso = true 66 cfi_vcall_icall_only = true 67 debug = false 68 } 69 70 deps = [ 71 ":bdfr_plugin_config", 72 "$hiview_plugin/faultlogger:faultlogger", 73 "$hiview_plugin/faultlogger:libfaultlogger", 74 "$hiview_plugin/reliability/bbox_detectors:bbox_detector_with_cfi", 75 ] 76 77 external_deps = [ 78 "c_utils:utils", 79 "hilog:libhilog", 80 ] 81 82 version_script = "libdfr.map" 83 84 part_name = "hiview" 85 subsystem_name = "hiviewdfx" 86} 87 88ohos_prebuilt_etc("bdfr_plugin_config") { 89 source = "bdfr_plugin_config" 90 part_name = "hiview" 91 subsystem_name = "hiviewdfx" 92 relative_install_dir = "hiview" 93} 94