1# Copyright (c) 2021-2025 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("//base/hiviewdfx/hiappevent/hiappevent_aafwk.gni") 15import("//build/ohos.gni") 16 17config("libhiappevent_source_config") { 18 visibility = [ "*:*" ] 19 include_dirs = [ 20 "include", 21 "dfr/include", 22 "load/include", 23 "../../../interfaces/native/inner_api/include", 24 "../../../interfaces/native/kits/include", 25 ] 26} 27 28ohos_shared_library("libhiappevent_base") { 29 branch_protector_ret = "pac_ret" 30 public_configs = [ 31 ":libhiappevent_source_config", 32 "cache:hiappevent_cache_config", 33 "observer:hiappevent_watcher_config", 34 ] 35 36 sources = [ 37 "app_event_util.cpp", 38 "dfr/resource_overlimit_mgr.cpp", 39 "hiappevent_base.cpp", 40 "hiappevent_c.cpp", 41 "hiappevent_clean.cpp", 42 "hiappevent_config.cpp", 43 "hiappevent_userinfo.cpp", 44 "hiappevent_verify.cpp", 45 "hiappevent_write.cpp", 46 "load/module_loader.cpp", 47 "load/processor_config_loader.cpp", 48 ] 49 50 deps = [ 51 "cache:hiappevent_cache", 52 "cleaner:hiappevent_cleaner", 53 "observer:hiappevent_observer", 54 "utility:hiappevent_utility", 55 ] 56 57 external_deps = [ 58 "ability_runtime:app_context", 59 "bundle_framework:appexecfwk_base", 60 "bundle_framework:appexecfwk_core", 61 "c_utils:utils", 62 "ffrt:libffrt", 63 "hicollie:libhicollie", 64 "hilog:libhilog", 65 "hisysevent:libhisysevent", 66 "hitrace:libhitracechain", 67 "init:libbegetutil", 68 "ipc:ipc_core", 69 "jsoncpp:jsoncpp", 70 "relational_store:native_rdb", 71 "samgr:samgr_proxy", 72 "storage_service:storage_manager_sa_proxy", 73 ] 74 75 part_name = "hiappevent" 76 innerapi_tags = [ "platformsdk" ] 77 subsystem_name = "hiviewdfx" 78} 79