• 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/arkui/ace_engine/ace_config.gni")
16
17config("uisession_manager_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "$ace_root/frameworks",
21    "include/",
22    "$ace_root/interfaces/inner_api/ui_session",
23    "$ace_root/interfaces/inner_api/ace_kit/include",
24  ]
25  if (current_os == "ohos") {
26    defines = [ "OHOS_PLATFORM" ]
27  }
28  cflags = []
29  if (target_cpu == "arm") {
30    cflags += [ "-DBINDER_IPC_32BIT" ]
31  }
32}
33
34ohos_shared_library("ui_session") {
35  if (current_os == "ohos") {
36    sanitize = {
37      integer_overflow = true
38      boundary_sanitize = true
39      debug = ace_sanitize_debug
40    }
41  }
42  sources = [
43    "$ace_root/adapter/ohos/entrance/ui_session/ui_content_proxy.cpp",
44    "$ace_root/adapter/ohos/entrance/ui_session/ui_content_stub.cpp",
45    "$ace_root/adapter/ohos/entrance/ui_session/ui_content_stub_impl.cpp",
46    "$ace_root/adapter/ohos/entrance/ui_session/ui_report_proxy.cpp",
47    "$ace_root/adapter/ohos/entrance/ui_session/ui_report_stub.cpp",
48    "$ace_root/adapter/ohos/entrance/ui_session/ui_session_json_util.cpp",
49    "$ace_root/adapter/ohos/entrance/ui_session/ui_session_manager_ohos.cpp",
50  ]
51
52  configs = [ "$ace_root:ace_config" ]
53
54  public_configs = [ ":uisession_manager_public_config" ]
55
56  external_deps = [
57    "ability_base:want",
58    "access_token:libaccesstoken_sdk",
59    "access_token:libtokenid_sdk",
60    "cJSON:cjson",
61    "c_utils:utils",
62    "graphic_2d:2d_graphics",
63    "graphic_2d:librender_service_client",
64    "hilog:libhilog",
65    "image_framework:image_native",
66    "ipc:ipc_core",
67    "samgr:samgr_proxy",
68  ]
69
70  subsystem_name = ace_engine_subsystem
71  innerapi_tags = [ "platformsdk_indirect" ]
72  part_name = ace_engine_part
73}
74