1# Copyright (c) 2021-2023 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    "../../adapter/native/idl:sys_event_service_gen_src_client",
34    "../../interfaces/native/innerkits/hisysevent:libhisysevent",
35    "../../interfaces/native/innerkits/hisysevent_manager:libhisyseventmanager",
36  ]
37
38  external_deps = [
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_single",
42    "jsoncpp:jsoncpp",
43    "safwk:system_ability_fwk",
44    "samgr:samgr_proxy",
45  ]
46
47  sources = [
48    "hisysevent_json_decorator.cpp",
49    "hisysevent_tool.cpp",
50    "hisysevent_tool_listener.cpp",
51    "hisysevent_tool_query.cpp",
52    "json_flatten_parser.cpp",
53    "main.cpp",
54  ]
55
56  part_name = "hisysevent"
57  subsystem_name = "hiviewdfx"
58}
59
60group("unittest") {
61  testonly = true
62  deps = [ "test:unittest" ]
63}
64