• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = [
65    ":sys_event_interface",
66    "../../../interfaces/native/innerkits/hisysevent:libhisysevent",
67  ]
68
69  public_configs = [ ":sys_event_impl_config" ]
70
71  defines = []
72
73  external_deps = [
74    "bounds_checking_function:libsec_shared",
75    "c_utils:utils",
76    "hilog:libhilog",
77    "ipc:ipc_single",
78    "jsoncpp:jsoncpp",
79    "safwk:system_ability_fwk",
80    "samgr:samgr_proxy",
81  ]
82
83  if (!defined(global_parts_info) ||
84      defined(global_parts_info.filemanagement_storage_service)) {
85    external_deps += [ "storage_service:storage_manager_acl" ]
86    defines += [ "STORAGE_SERVICE_ENABLE" ]
87  }
88
89  part_name = "hisysevent"
90  subsystem_name = "hiviewdfx"
91}
92