• 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  sources = [
44    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_client.cpp",
45    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_mgr_proxy.cpp",
46    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_proxy.cpp",
47    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/ui_service_stub.cpp",
48  ]
49
50  configs = [
51    "$ace_root:ace_config",
52    "//commonlibrary/c_utils/base:utils_config",
53  ]
54
55  public_configs = [
56    ":uiservice_manager_public_config",
57    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice:uiservicems_config",
58  ]
59
60  deps = [ "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy" ]
61
62  external_deps = [
63    "ability_base:want",
64    "c_utils:utils",
65    "hiviewdfx_hilog_native:libhilog",
66    "ipc:ipc_core",
67  ]
68
69  subsystem_name = ace_engine_subsystem
70  part_name = ace_engine_part
71}
72