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