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("sys_event_impl_config") { 18 visibility = [ "*:*" ] 19 20 include_dirs = [ 21 ".", 22 "include", 23 "//foundation/systemabilitymgr/safwk/services/safwk/include", 24 ] 25} 26 27ohos_source_set("sys_event_impl_client") { 28 include_dirs = [ 29 "include", 30 "//third_party/bounds_checking_function/include", 31 ] 32 33 sources = [ 34 "src/hisysevent_delegate.cpp", 35 "src/hisysevent_listener_proxy.cpp", 36 "src/hisysevent_query_proxy.cpp", 37 ] 38 39 deps = [ "//third_party/jsoncpp:jsoncpp" ] 40 41 all_dependent_configs = [ ":sys_event_impl_config" ] 42 43 public_configs = [ "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager:hisyseventmanager_config" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "hilog_native:libhilog", 48 "ipc:ipc_core", 49 "samgr:samgr_proxy", 50 ] 51 52 part_name = "hisysevent_native" 53 subsystem_name = "hiviewdfx" 54} 55 56ohos_source_set("sys_event_service_gen_src_client") { 57 include_dirs = [ 58 "include", 59 "//third_party/bounds_checking_function/include", 60 "//utils/system/safwk/native/include", 61 ] 62 63 sources = [ 64 "src/ash_mem_utils.cpp", 65 "src/query_argument.cpp", 66 "src/query_sys_event_callback_proxy.cpp", 67 "src/query_sys_event_callback_stub.cpp", 68 "src/sys_event_callback_proxy.cpp", 69 "src/sys_event_callback_stub.cpp", 70 "src/sys_event_query_rule.cpp", 71 "src/sys_event_rule.cpp", 72 "src/sys_event_service_proxy.cpp", 73 "src/sys_event_service_stub.cpp", 74 ] 75 76 all_dependent_configs = [ ":sys_event_impl_config" ] 77 78 external_deps = [ 79 "c_utils:utils", 80 "hilog_native:libhilog", 81 "ipc:ipc_core", 82 "samgr:samgr_proxy", 83 ] 84 85 part_name = "hisysevent_native" 86 subsystem_name = "hiviewdfx" 87} 88