1# Copyright (c) 2025-2025 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/config/components/ets_frontend/ets2abc_config.gni") 15import("//build/ohos.gni") 16import("../../../../windowmanager_aafwk.gni") 17 18config("screen_common_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "../common", 23 "../../../../utils/include", 24 "../../../innerkits/wm", 25 "../../../innerkits/dm", 26 "../../../../wm/include", 27 ] 28} 29 30config("screen_kit_public_config") { 31 visibility = [ ":*" ] 32 33 include_dirs = [ "screen_ani/include" ] 34} 35 36# lib generate 37ohos_shared_library("screenani_kit") { 38 branch_protector_ret = "pac_ret" 39 sanitize = { 40 cfi = true 41 cfi_cross_dso = true 42 cfi_vcall_icall_only = true 43 debug = false 44 } 45 sources = [ 46 "screen_ani/src/ani_err_utils.cpp", 47 "screen_ani/src/screen_ani_listener.cpp", 48 "screen_ani/src/screen_ani_manager.cpp", 49 "screen_ani/src/screen_ani_utils.cpp", 50 ] 51 52 configs = [ 53 ":screen_common_config", 54 ":screen_kit_public_config", 55 "../../../../resources/config/build:coverage_flags", 56 ] 57 58 public_configs = [ ":screen_kit_public_config" ] 59 60 deps = [ 61 "../../../../dm:libdm", 62 "../../../../utils:libwmutil", 63 "../../../../utils:libwmutil_base", 64 ] 65 66 external_deps = [ 67 "ability_runtime:ability_manager", 68 "ability_runtime:runtime", 69 "c_utils:utils", 70 "eventhandler:libeventhandler", 71 "graphic_2d:librender_service_base", 72 "graphic_surface:surface", # use for SurfaceUtils 73 "hilog:libhilog", 74 "hitrace:hitrace_meter", 75 "runtime_core:ani", 76 ] 77 78 innerapi_tags = [ "platformsdk" ] 79 part_name = "window_manager" 80 subsystem_name = "window" 81} 82 83group("screen_ani") { 84 deps = [ 85 ":screenani_kit", 86 "screen_ani:screen_etc", 87 ] 88} 89