• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17config("sys_event_service_ohos_private_config") {
18  include_dirs = [ "." ]
19}
20
21config("sys_event_service_ohos_public_config") {
22  include_dirs = [ "include" ]
23}
24
25ohos_source_set("sys_event_service_ohos_common") {
26  part_name = "hiview"
27  include_dirs = [
28    "$hiview_plugin/eventservice/include",
29    "//utils/system/safwk/native/include",
30    "//third_party/jsoncpp/include",
31    "$hiview_base/event_store/include",
32    "$hiview_base/running_status_logger/include",
33  ]
34
35  sources = [
36    "src/ash_mem_utils.cpp",
37    "src/event_query_wrapper_builder.cpp",
38    "src/query_argument.cpp",
39    "src/query_sys_event_callback_proxy.cpp",
40    "src/query_sys_event_callback_stub.cpp",
41    "src/running_status_log_util.cpp",
42    "src/sys_event_callback_proxy.cpp",
43    "src/sys_event_callback_stub.cpp",
44    "src/sys_event_query_rule.cpp",
45    "src/sys_event_rule.cpp",
46    "src/sys_event_service_proxy.cpp",
47    "src/sys_event_service_stub.cpp",
48  ]
49
50  configs = [ ":sys_event_service_ohos_private_config" ]
51
52  public_configs = [ ":sys_event_service_ohos_public_config" ]
53
54  deps = [
55    "$hiview_base:hiviewbase",
56    "$hiview_base/event_store:event_store_source",
57    "$hiview_base/running_status_logger:running_status_logger_source",
58  ]
59
60  external_deps = [
61    "c_utils:utils",
62    "hilog_native:libhilog",
63    "ipc:ipc_core",
64    "safwk:system_ability_fwk",
65    "samgr:samgr_proxy",
66  ]
67}
68
69ohos_source_set("sys_event_service_ohos") {
70  part_name = "hiview"
71  include_dirs = [
72    "$hiview_plugin/eventservice/include",
73    "//utils/system/safwk/native/include",
74    "//third_party/jsoncpp/include",
75    "$hiview_base/event_store/include",
76    "$hiview_base/running_status_logger/include",
77  ]
78
79  sources = [ "src/sys_event_service_ohos.cpp" ]
80
81  configs = [ ":sys_event_service_ohos_private_config" ]
82
83  public_configs = [ ":sys_event_service_ohos_public_config" ]
84
85  deps = [
86    ":sys_event_service_ohos_common",
87    "$hiview_base:hiviewbase",
88    "$hiview_base/event_store:event_store_source",
89    "$hiview_base/running_status_logger:running_status_logger_source",
90  ]
91
92  external_deps = [
93    "access_token:libaccesstoken_sdk",
94    "c_utils:utils",
95    "hilog_native:libhilog",
96    "ipc:ipc_core",
97    "safwk:system_ability_fwk",
98    "samgr:samgr_proxy",
99  ]
100}
101