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 19 include_dirs = [ 20 "include", 21 "include/zidl", 22 "../window_extension/include/zidl", 23 ] 24} 25 26config("libextension_connection_public_config") { 27 include_dirs = [ "../../interfaces/innerkits/extension" ] 28} 29 30ohos_shared_library("libwindow_extension_client") { 31 install_enable = true 32 sources = [ 33 "../window_extension/src/zidl/window_extension_proxy.cpp", 34 "src/window_extension_client_stub_impl.cpp", 35 "src/window_extension_connection.cpp", 36 "src/zidl/window_extension_client_stub.cpp", 37 ] 38 39 configs = [ 40 ":libwindow_extension_client_private_config", 41 "//foundation/window/window_manager/resources/config/build:coverage_flags", 42 ] 43 44 public_configs = [ ":libextension_connection_public_config" ] 45 46 deps = [ 47 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 48 "//foundation/window/window_manager/wm:libwm", 49 ] 50 51 external_deps = [ 52 "ability_base:want", 53 "ability_runtime:ability_manager", 54 "hitrace_native:hitrace_meter", 55 "input:libmmi-client", 56 "ipc:ipc_core", 57 ] 58 59 part_name = "window_manager" 60 subsystem_name = "window" 61} 62