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 ] 53 54 configs = [ 55 ":libwmutil_private_config", 56 "//foundation/window/window_manager/resources/config/build:coverage_flags", 57 ] 58 59 public_configs = [ ":libwmutil_public_config" ] 60 61 deps = [ 62 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 63 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 64 ] 65 66 external_deps = [ 67 "ability_runtime:ability_manager", 68 "access_token:libaccesstoken_sdk", 69 "bundle_framework:appexecfwk_core", 70 "c_utils:utils", 71 "graphic_standard:surface", 72 "hilog_native:libhilog", 73 "hisysevent_native:libhisysevent", 74 "input:libmmi-client", 75 "ipc:ipc_core", 76 "multimedia_image_framework:image_native", 77 "samgr:samgr_proxy", 78 ] 79 part_name = "window_manager" 80 subsystem_name = "window" 81} 82 83group("test") { 84 testonly = true 85 deps = [ "test:test" ] 86} 87