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/ohos.gni") 15import("../../../../windowmanager_aafwk.gni") 16 17config("window_common_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "../common", 22 "../../../innerkits/wm", 23 "../../../innerkits/dm", 24 "../../../../wm/include", 25 "../../../../utils/include", 26 ] 27} 28 29config("windowstage_kit_public_config") { 30 visibility = [ ":*" ] 31 32 include_dirs = [ "window_stage_ani/include" ] 33} 34 35# lib generate 36ohos_shared_library("windowstageani_kit") { 37 branch_protector_ret = "pac_ret" 38 sanitize = { 39 cfi = true 40 cfi_cross_dso = true 41 cfi_vcall_icall_only = true 42 debug = false 43 } 44 sources = [ 45 "window_stage_ani/src/ani_err_utils.cpp", 46 "window_stage_ani/src/ani_window.cpp", 47 "window_stage_ani/src/ani_window_listener.cpp", 48 "window_stage_ani/src/ani_window_manager.cpp", 49 "window_stage_ani/src/ani_window_register_manager.cpp", 50 "window_stage_ani/src/ani_window_stage.cpp", 51 "window_stage_ani/src/ani_window_utils.cpp", 52 ] 53 54 configs = [ 55 ":window_common_config", 56 ":windowstage_kit_public_config", 57 "../../../../resources/config/build:coverage_flags", 58 ] 59 60 public_configs = [ ":windowstage_kit_public_config" ] 61 62 deps = [ 63 "../../../../utils:libwmutil", 64 "../../../../utils:libwmutil_base", 65 "../../../../wm:libwm", 66 ] 67 68 external_deps = [ 69 "ability_runtime:ability_context_native", 70 "ability_runtime:ability_manager", 71 "ability_runtime:abilitykit_native", 72 "ability_runtime:runtime", 73 "access_token:libaccesstoken_sdk", 74 "ace_engine:ace_uicontent", 75 "bundle_framework:appexecfwk_base", 76 "c_utils:utils", 77 "eventhandler:libeventhandler", 78 "hilog:libhilog", 79 "hitrace:hitrace_meter", 80 "image_framework:image", 81 "image_framework:image_native", 82 "ipc:ipc_napi", 83 "ipc:ipc_single", 84 "napi:ace_napi", 85 "runtime_core:ani", 86 ] 87 88 innerapi_tags = [ "platformsdk" ] 89 part_name = "window_manager" 90 subsystem_name = "window" 91} 92 93group("window_stage_ani_pack") { 94 deps = [ 95 ":windowstageani_kit", 96 "window_stage_ani:window_stage_etc", 97 ] 98} 99