• 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("//build/ohos.gni")
15import("//foundation/ability/ability_runtime/ability_runtime.gni")
16import("//foundation/arkui/ace_engine/ace_config.gni")
17
18config("uiservice_manager_public_config") {
19  visibility = [ ":*" ]
20  include_dirs = [
21    "$ace_root/frameworks",
22    "include/",
23    "//drivers/peripheral/base",
24    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client/core",
25    "//foundation/graphic/graphic_2d/interfaces/innerkits/surface",
26    "//foundation/graphic/graphic_2d/interfaces/innerkits/common",
27    "//foundation/graphic/graphic_2d/utils/buffer_handle/export",
28    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include",
29    "//foundation/window/window_manager/interfaces/innerkits/wm",
30    "$ability_runtime_innerkits_path/ability_manager/include/",
31    "$ability_runtime_path/interfaces/kits/native/ability/native",
32    "$ability_runtime_services_path/uiservicemgr/include",
33    "//commonlibrary/c_utils/base/include",
34    "//utils/system/safwk/native/include",
35  ]
36  cflags = []
37  if (target_cpu == "arm") {
38    cflags += [ "-DBINDER_IPC_32BIT" ]
39  }
40}
41
42ohos_shared_library("ui_service_mgr") {
43  if (current_os == "ohos") {
44    sanitize = {
45      integer_overflow = true
46      boundary_sanitize = true
47      debug = ace_sanitize_debug
48    }
49  }
50  sources = [
51    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_client.cpp",
52    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_proxy.cpp",
53    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_proxy.cpp",
54    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_stub.cpp",
55  ]
56
57  configs = [
58    "$ace_root:ace_config",
59    "$ace_root:ace_coverage_config",
60    "//commonlibrary/c_utils/base:utils_config",
61  ]
62
63  public_configs = [
64    ":uiservice_manager_public_config",
65    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice:uiservicems_config",
66  ]
67
68  external_deps = [
69    "ability_base:want",
70    "c_utils:utils",
71    "hilog:libhilog",
72    "ipc:ipc_core",
73    "samgr:samgr_proxy",
74  ]
75
76  subsystem_name = ace_engine_subsystem
77  innerapi_tags = [ "platformsdk_indirect" ]
78  part_name = ace_engine_part
79}
80