1# Copyright (C) 2022-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")
15
16config("libwindow_extension_client_private_config") {
17  visibility = [ ":*" ]
18  visibility += [ "//foundation/arkui/ace_engine/frameworks/core/components_ng/test/pattern/ability_component/*" ]
19
20  include_dirs = [
21    "include",
22    "include/zidl",
23    "../window_extension/include/zidl",
24  ]
25}
26
27config("libextension_connection_public_config") {
28  include_dirs = [ "../../interfaces/innerkits/extension" ]
29}
30
31ohos_shared_library("libwindow_extension_client") {
32  branch_protector_ret = "pac_ret"
33  sanitize = {
34    cfi = true
35    cfi_cross_dso = true
36    cfi_vcall_icall_only = true
37    debug = false
38  }
39  install_enable = true
40  sources = [
41    "../window_extension/src/zidl/window_extension_proxy.cpp",
42    "src/window_extension_client_stub_impl.cpp",
43    "src/window_extension_connection.cpp",
44    "src/zidl/window_extension_client_stub.cpp",
45  ]
46
47  configs = [
48    ":libwindow_extension_client_private_config",
49    "../../resources/config/build:coverage_flags",
50  ]
51
52  public_configs = [ ":libextension_connection_public_config" ]
53
54  deps = [
55    "../../window_scene/session:scene_session",
56    "../../wm:libwm",
57  ]
58
59  external_deps = [
60    "ability_base:session_info",
61    "ability_base:want",
62    "ability_runtime:ability_manager",
63    "c_utils:utils",
64    "graphic_2d:librender_service_client",
65    "hilog:libhilog",
66    "hitrace:hitrace_meter",
67    "input:libmmi-client",
68    "ipc:ipc_single",
69  ]
70
71  innerapi_tags = [ "platformsdk_indirect" ]
72  part_name = "window_manager"
73  subsystem_name = "window"
74}
75