• 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.
13
14import("//build/ohos.gni")
15
16group("hisyseventcat_package") {
17  # root of all the hiview dependencies
18  deps = [ ":hisysevent" ]
19}
20
21ohos_executable("hisysevent") {
22  install_enable = true
23
24  include_dirs = [
25    ".",
26    "include",
27  ]
28
29  public_configs = [ "../../adapter/native/idl:sys_event_impl_config" ]
30
31  deps = [
32    "../../adapter/native/idl:sys_event_impl_client",
33    "../../interfaces/native/innerkits/hisysevent:libhisysevent",
34    "../../interfaces/native/innerkits/hisysevent_manager:libhisyseventmanager",
35  ]
36
37  external_deps = [
38    "c_utils:utils",
39    "hilog:libhilog",
40    "ipc:ipc_single",
41    "jsoncpp:jsoncpp",
42    "safwk:system_ability_fwk",
43    "samgr:samgr_proxy",
44  ]
45
46  sources = [
47    "hisysevent_json_decorator.cpp",
48    "hisysevent_tool.cpp",
49    "hisysevent_tool_listener.cpp",
50    "hisysevent_tool_query.cpp",
51    "json_flatten_parser.cpp",
52    "main.cpp",
53  ]
54
55  part_name = "hisysevent"
56  subsystem_name = "hiviewdfx"
57}
58
59group("unittest") {
60  testonly = true
61  deps = [ "test:unittest" ]
62}
63