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