1# Copyright (c) 2021-2022 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/hiview/hiview.gni") 15import("//build/ohos.gni") 16 17config("hisyseventmanager_config") { 18 visibility = [ "*:*" ] 19 20 include_dirs = [ 21 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include", 22 "//third_party/bounds_checking_function/include", 23 "//third_party/jsoncpp/include/json", 24 "include", 25 ] 26} 27 28ohos_shared_library("libhisyseventmanager") { 29 sources = [ 30 "hisysevent_base_manager.cpp", 31 "hisysevent_manager.cpp", 32 "hisysevent_manager_c.cpp", 33 "hisysevent_query_callback_c.cpp", 34 "hisysevent_record.cpp", 35 "hisysevent_record_c.cpp", 36 ] 37 38 output_name = "libhisyseventmanager" 39 install_enable = true 40 41 part_name = "hisysevent_native" 42 subsystem_name = "hiviewdfx" 43 44 public_configs = [ 45 "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config", 46 ":hisyseventmanager_config", 47 ] 48 49 deps = [ 50 "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_client", 51 "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_service_gen_src_client", 52 "//base/hiviewdfx/hisysevent/frameworks/native/util:hisysevent_util", 53 ] 54 55 public_deps = [ "//third_party/jsoncpp:jsoncpp" ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "hilog_native:libhilog", 60 "ipc:ipc_core", 61 "samgr:samgr_proxy", 62 ] 63} 64