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