1# Copyright (c) 2021-2023 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 "//third_party/bounds_checking_function/include", 24 "//third_party/jsoncpp/include", 25 "include", 26 ] 27} 28 29ohos_shared_library("libhisyseventmanager") { 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 "../../../../adapter/native/idl:sys_event_service_gen_src_client", 59 "../../../../frameworks/native/util:hisysevent_util", 60 "../hisysevent:libhisysevent", 61 "//third_party/jsoncpp:jsoncpp", 62 ] 63 64 version_script = "libhisyseventmanager.map" 65 66 external_deps = [ 67 "c_utils:utils", 68 "hilog:libhilog", 69 "ipc:ipc_single", 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 "../../../../adapter/native/idl:sys_event_service_gen_src_client", 100 "../../../../frameworks/native/util:hisysevent_util", 101 "../hisysevent:hisysevent_static_lib_for_tdd", 102 "//third_party/jsoncpp:jsoncpp", 103 ] 104 105 external_deps = [ 106 "c_utils:utils", 107 "hilog:libhilog", 108 "ipc:ipc_single", 109 "samgr:samgr_proxy", 110 ] 111} 112