• 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("//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/cJSON",
31    "//third_party/jsoncpp/include",
32    "$hiview_base/event_store/include",
33  ]
34
35  sources = [
36    "src/query_sys_event_callback_proxy.cpp",
37    "src/query_sys_event_callback_stub.cpp",
38    "src/sys_event_callback_proxy.cpp",
39    "src/sys_event_callback_stub.cpp",
40    "src/sys_event_query_rule.cpp",
41    "src/sys_event_rule.cpp",
42    "src/sys_event_service_proxy.cpp",
43    "src/sys_event_service_stub.cpp",
44  ]
45
46  configs = [ ":sys_event_service_ohos_private_config" ]
47
48  public_configs = [ ":sys_event_service_ohos_public_config" ]
49
50  deps = [
51    "$hiview_base:hiviewbase",
52    "$hiview_base/event_store:event_store_source",
53    "//utils/native/base:utils",
54  ]
55
56  external_deps = [
57    "hilog_native:libhilog",
58    "ipc:ipc_core",
59    "safwk:system_ability_fwk",
60    "samgr_standard:samgr_proxy",
61  ]
62}
63
64ohos_source_set("sys_event_service_ohos") {
65  part_name = "hiview"
66  include_dirs = [
67    "$hiview_plugin/eventservice/include",
68    "//utils/system/safwk/native/include",
69    "//third_party/cJSON",
70    "//third_party/jsoncpp/include",
71    "$hiview_base/event_store/include",
72  ]
73
74  sources = [ "src/sys_event_service_ohos.cpp" ]
75
76  configs = [ ":sys_event_service_ohos_private_config" ]
77
78  public_configs = [ ":sys_event_service_ohos_public_config" ]
79
80  deps = [
81    ":sys_event_service_ohos_common",
82    "$hiview_base:hiviewbase",
83    "$hiview_base/event_store:event_store_source",
84    "//utils/native/base:utils",
85  ]
86
87  external_deps = [
88    "access_token:libaccesstoken_sdk",
89    "hilog_native:libhilog",
90    "ipc:ipc_core",
91    "safwk:system_ability_fwk",
92    "samgr_standard:samgr_proxy",
93  ]
94}
95