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("//build/ohos.gni") 15 16config("hisyseventmanager_config") { 17 visibility = [ "*:*" ] 18 19 include_dirs = [ 20 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include", 21 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 22 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/include", 23 "include", 24 ] 25} 26 27ohos_shared_library("libhisyseventmanager") { 28 branch_protector_ret = "pac_ret" 29 30 sources = [ 31 "hisysevent_base_manager.cpp", 32 "hisysevent_listener_c.cpp", 33 "hisysevent_manager.cpp", 34 "hisysevent_manager_c.cpp", 35 "hisysevent_query_callback_c.cpp", 36 "hisysevent_record.cpp", 37 "hisysevent_record_c.cpp", 38 "hisysevent_record_convertor.cpp", 39 ] 40 41 output_name = "libhisyseventmanager" 42 43 install_enable = true 44 45 innerapi_tags = [ "platformsdk" ] 46 47 part_name = "hisysevent" 48 49 subsystem_name = "hiviewdfx" 50 51 public_configs = [ 52 "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config", 53 ":hisyseventmanager_config", 54 ] 55 56 deps = [ 57 "../../../../adapter/native/idl:sys_event_impl_client", 58 "../../../../frameworks/native/util:hisysevent_util", 59 "../hisysevent:libhisysevent", 60 ] 61 62 version_script = "libhisyseventmanager.map" 63 64 external_deps = [ 65 "bounds_checking_function:libsec_shared", 66 "c_utils:utils", 67 "hilog:libhilog", 68 "ipc:ipc_single", 69 "jsoncpp:jsoncpp", 70 "samgr:samgr_proxy", 71 ] 72} 73 74ohos_static_library("hisyseventmanager_static_lib_for_tdd") { 75 sources = [ 76 "hisysevent_base_manager.cpp", 77 "hisysevent_listener_c.cpp", 78 "hisysevent_manager.cpp", 79 "hisysevent_manager_c.cpp", 80 "hisysevent_query_callback_c.cpp", 81 "hisysevent_record.cpp", 82 "hisysevent_record_c.cpp", 83 "hisysevent_record_convertor.cpp", 84 ] 85 86 output_name = "hisyseventmanager_static_lib_for_tdd" 87 88 part_name = "hisysevent" 89 90 subsystem_name = "hiviewdfx" 91 92 public_configs = [ 93 "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config", 94 ":hisyseventmanager_config", 95 ] 96 97 deps = [ 98 "../../../../adapter/native/idl:sys_event_impl_client", 99 "../../../../frameworks/native/util:hisysevent_util", 100 "../hisysevent:hisysevent_static_lib_for_tdd", 101 ] 102 103 external_deps = [ 104 "c_utils:utils", 105 "hilog:libhilog", 106 "ipc:ipc_single", 107 "jsoncpp:jsoncpp", 108 "samgr:samgr_proxy", 109 ] 110} 111