• 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/notification/ces_standard/event.gni")
15import("//build/ohos.gni")
16
17cflags = []
18
19config("ces_services_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = []
23
24  if (target_cpu == "arm") {
25    cflags += [ "-DBINDER_IPC_32BIT" ]
26  }
27
28  defines = [
29    "EVENT_LOG_TAG = \"CesService\"",
30    "LOG_DOMAIN = 0xD008800",
31  ]
32}
33
34config("ces_services_public_config") {
35  visibility = [ ":*" ]
36
37  include_dirs = [
38    "${ces_services_path}/include",
39    "//utils/system/safwk/native/include",
40  ]
41}
42
43ohos_shared_library("cesfwk_services") {
44  sources = [
45    "${ces_services_path}/src/ability_manager_death_recipient.cpp",
46    "${ces_services_path}/src/ability_manager_helper.cpp",
47    "${ces_services_path}/src/access_token_helper.cpp",
48    "${ces_services_path}/src/bms_death_recipient.cpp",
49    "${ces_services_path}/src/bundle_manager_helper.cpp",
50    "${ces_services_path}/src/common_event_control_manager.cpp",
51    "${ces_services_path}/src/common_event_manager_service.cpp",
52    "${ces_services_path}/src/common_event_permission_manager.cpp",
53    "${ces_services_path}/src/common_event_sticky_manager.cpp",
54    "${ces_services_path}/src/common_event_subscriber_manager.cpp",
55    "${ces_services_path}/src/common_event_support_mapper.cpp",
56    "${ces_services_path}/src/inner_common_event_manager.cpp",
57    "${ces_services_path}/src/ordered_event_handler.cpp",
58    "${ces_services_path}/src/publish_manager.cpp",
59    "${ces_services_path}/src/static_subscriber_connection.cpp",
60    "${ces_services_path}/src/static_subscriber_manager.cpp",
61    "${ces_services_path}/src/subscriber_death_recipient.cpp",
62    "${ces_services_path}/src/system_time.cpp",
63  ]
64
65  configs = [ ":ces_services_config" ]
66
67  public_configs = [ ":ces_services_public_config" ]
68
69  deps = [
70    ":static_subscriber_config.json",
71    "${ces_common_path}:libevent_common",
72    "${ces_core_path}:cesfwk_core",
73    "${ces_native_path}:cesfwk_innerkits",
74    "//foundation/aafwk/standard/frameworks/kits/ability/native:static_subscriber_ipc",
75    "//utils/native/base:utils",
76  ]
77
78  external_deps = [
79    "ability_base:want",
80    "ability_runtime:ability_manager",
81    "access_token:libaccesstoken_sdk",
82    "bundle_framework:appexecfwk_base",
83    "bundle_framework:appexecfwk_core",
84    "eventhandler:libeventhandler",
85    "hiviewdfx_hilog_native:libhilog",
86    "ipc:ipc_core",
87    "os_account_standard:os_account_innerkits",
88    "resmgr_standard:global_resmgr",
89    "safwk:system_ability_fwk",
90    "samgr_standard:samgr_proxy",
91  ]
92
93  subsystem_name = "notification"
94  part_name = "ces_standard"
95}
96
97ohos_prebuilt_etc("static_subscriber_config.json") {
98  source = "//base/notification/ces_standard/services/ces/resource/static_subscriber_config.json"
99  subsystem_name = "notification"
100  part_name = "ces_standard"
101}
102