1# Copyright (c) 2021-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. 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 "load/include", 22 "../../../interfaces/native/inner_api/include", 23 "../../../interfaces/native/kits/include", 24 ] 25} 26 27ohos_shared_library("libhiappevent_base") { 28 branch_protector_ret = "pac_ret" 29 public_configs = [ 30 ":libhiappevent_source_config", 31 "cache:hiappevent_cache_config", 32 "observer:hiappevent_watcher_config", 33 ] 34 35 sources = [ 36 "hiappevent_base.cpp", 37 "hiappevent_c.cpp", 38 "hiappevent_clean.cpp", 39 "hiappevent_config.cpp", 40 "hiappevent_read.cpp", 41 "hiappevent_userinfo.cpp", 42 "hiappevent_verify.cpp", 43 "hiappevent_write.cpp", 44 "load/module_loader.cpp", 45 ] 46 47 deps = [ 48 "cache:hiappevent_cache", 49 "cleaner:hiappevent_cleaner", 50 "observer:hiappevent_observer", 51 "utility:hiappevent_utility", 52 ] 53 54 external_deps = [ 55 "ability_runtime:app_context", 56 "bundle_framework:appexecfwk_base", 57 "bundle_framework:appexecfwk_core", 58 "c_utils:utils", 59 "ffrt:libffrt", 60 "hilog:libhilog", 61 "hitrace:libhitracechain", 62 "relational_store:native_rdb", 63 ] 64 65 part_name = "hiappevent" 66 innerapi_tags = [ "platformsdk" ] 67 subsystem_name = "hiviewdfx" 68} 69