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") 15config("libwmutil_private_config") { 16 include_dirs = [ 17 "include", 18 "//foundation/window/window_manager/dmserver/include", 19 "../interfaces/innerkits/dm", 20 "../interfaces/innerkits/wm", 21 ] 22} 23 24config("libwmutil_public_config") { 25 include_dirs = [ 26 "//foundation/window/window_manager/utils/include", 27 "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include", 28 ] 29} 30 31## Build libwmutil.so 32ohos_shared_library("libwmutil") { 33 sources = [ 34 "src/agent_death_recipient.cpp", 35 "src/cutout_info.cpp", 36 "src/display_info.cpp", 37 "src/perform_reporter.cpp", 38 "src/permission.cpp", 39 "src/screen_group_info.cpp", 40 "src/screen_info.cpp", 41 "src/screenshot_info.cpp", 42 "src/singleton_container.cpp", 43 "src/string_util.cpp", 44 "src/surface_draw.cpp", 45 "src/surface_reader.cpp", 46 "src/surface_reader_handler_impl.cpp", 47 "src/sys_cap_util.cpp", 48 "src/window_property.cpp", 49 "src/window_transition_info.cpp", 50 "src/wm_math.cpp", 51 "src/wm_occlusion_region.cpp", 52 "src/xml_config_base.cpp", 53 ] 54 55 configs = [ 56 ":libwmutil_private_config", 57 "//foundation/window/window_manager/resources/config/build:coverage_flags", 58 ] 59 60 public_configs = [ ":libwmutil_public_config" ] 61 62 deps = [ 63 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 64 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 65 ] 66 67 external_deps = [ 68 "ability_runtime:ability_manager", 69 "access_token:libaccesstoken_sdk", 70 "bundle_framework:appexecfwk_core", 71 "c_utils:utils", 72 "graphic_standard:surface", 73 "hilog_native:libhilog", 74 "hisysevent_native:libhisysevent", 75 "input:libmmi-client", 76 "ipc:ipc_core", 77 "multimedia_image_framework:image_native", 78 "samgr:samgr_proxy", 79 ] 80 part_name = "window_manager" 81 subsystem_name = "window" 82} 83 84group("test") { 85 testonly = true 86 deps = [ "test:test" ] 87} 88