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("//build/ohos.gni") 15 16config("sys_event_impl_config") { 17 visibility = [ "*:*" ] 18 19 include_dirs = [ 20 ".", 21 "include", 22 ] 23} 24 25ohos_source_set("sys_event_impl_client") { 26 include_dirs = [ "include" ] 27 28 sources = [ 29 "src/file_util.cpp", 30 "src/hisysevent_delegate.cpp", 31 "src/hisysevent_listener_proxy.cpp", 32 "src/hisysevent_query_proxy.cpp", 33 ] 34 35 public_configs = [ 36 "../../../interfaces/native/innerkits/hisysevent_manager:hisyseventmanager_config", 37 ":sys_event_impl_config", 38 ] 39 40 defines = [] 41 42 external_deps = [ 43 "bounds_checking_function:libsec_shared", 44 "c_utils:utils", 45 "hilog:libhilog", 46 "ipc:ipc_single", 47 "jsoncpp:jsoncpp", 48 "safwk:system_ability_fwk", 49 "samgr:samgr_proxy", 50 ] 51 52 if (!defined(global_parts_info) || 53 defined(global_parts_info.filemanagement_storage_service)) { 54 external_deps += [ "storage_service:storage_manager_acl" ] 55 defines += [ "STORAGE_SERVICE_ENABLE" ] 56 } 57 58 part_name = "hisysevent" 59 subsystem_name = "hiviewdfx" 60} 61 62ohos_source_set("sys_event_service_gen_src_client") { 63 include_dirs = [ 64 "../../../interfaces/native/innerkits/hisysevent_manager/include", 65 "include", 66 ] 67 68 sources = [ 69 "src/ash_mem_utils.cpp", 70 "src/query_argument.cpp", 71 "src/query_sys_event_callback_stub.cpp", 72 "src/sys_event_callback_stub.cpp", 73 "src/sys_event_query_rule.cpp", 74 "src/sys_event_rule.cpp", 75 "src/sys_event_service_proxy.cpp", 76 ] 77 78 public_configs = [ ":sys_event_impl_config" ] 79 80 external_deps = [ 81 "bounds_checking_function:libsec_shared", 82 "c_utils:utils", 83 "hilog:libhilog", 84 "ipc:ipc_single", 85 "samgr:samgr_proxy", 86 ] 87 88 part_name = "hisysevent" 89 subsystem_name = "hiviewdfx" 90} 91