• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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    "//utils/system/safwk/native/include",
28    "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk",
29  ]
30
31  public_configs =
32      [ "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config" ]
33
34  deps = [
35    "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_client",
36    "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_service_gen_src_client",
37    "//third_party/jsoncpp:jsoncpp",
38  ]
39
40  external_deps = [
41    "c_utils:utils",
42    "hilog_native:libhilog",
43    "hisysevent_native:libhisysevent",
44    "hisysevent_native:libhisyseventmanager",
45    "ipc:ipc_core",
46    "samgr:samgr_proxy",
47  ]
48
49  sources = [
50    "hisysevent_json_decorator.cpp",
51    "hisysevent_tool.cpp",
52    "hisysevent_tool_listener.cpp",
53    "hisysevent_tool_query.cpp",
54    "json_flatten_parser.cpp",
55    "main.cpp",
56  ]
57
58  part_name = "hisysevent_native"
59  subsystem_name = "hiviewdfx"
60}
61
62group("unittest") {
63  testonly = true
64  deps = [ "test:unittest" ]
65}
66