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