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 debug = false 37 } 38 install_enable = true 39 sources = [ 40 "../window_extension/src/zidl/window_extension_proxy.cpp", 41 "src/window_extension_client_stub_impl.cpp", 42 "src/window_extension_connection.cpp", 43 "src/zidl/window_extension_client_stub.cpp", 44 ] 45 46 configs = [ 47 ":libwindow_extension_client_private_config", 48 "../../resources/config/build:coverage_flags", 49 ] 50 51 public_configs = [ ":libextension_connection_public_config" ] 52 53 deps = [ 54 "../../window_scene/session:scene_session", 55 "../../wm:libwm", 56 ] 57 58 external_deps = [ 59 "ability_base:session_info", 60 "ability_base:want", 61 "ability_runtime:ability_manager", 62 "c_utils:utils", 63 "graphic_2d:librender_service_client", 64 "hilog:libhilog", 65 "hitrace:hitrace_meter", 66 "input:libmmi-client", 67 "ipc:ipc_single", 68 ] 69 70 innerapi_tags = [ "platformsdk_indirect" ] 71 part_name = "window_manager" 72 subsystem_name = "window" 73} 74