1# Copyright (c) 2023 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("intention_event_public_config") { 18 include_dirs = [ 19 "${accessibility_path}/interfaces/innerkits/common/include/", 20 "anr_manager/include", 21 "event_stage/include", 22 "timer_manager/include", 23 "../../../utils/include", 24 "../../session/container/include/zidl", 25 "../../interfaces/include", 26 "../../../interfaces/innerkits/wm", 27 "../../", 28 "../dfx/include", 29 "../framework/anr_handler/include", 30 "../utils/include", 31 ] 32} 33 34ohos_shared_library("intention_event_anr_manager") { 35 branch_protector_ret = "pac_ret" 36 sanitize = { 37 cfi = true 38 cfi_cross_dso = true 39 debug = false 40 } 41 sources = [ 42 "../dfx/src/dfx_hisysevent.cpp", 43 "../framework/anr_handler/src/anr_handler.cpp", 44 "../utils/src/util.cpp", 45 "anr_manager/src/anr_manager.cpp", 46 "event_stage/src/event_stage.cpp", 47 "timer_manager/src/timer_manager.cpp", 48 ] 49 50 public_configs = [ ":intention_event_public_config" ] 51 52 external_deps = [ 53 "ability_base:want", 54 "c_utils:utils", 55 "eventhandler:libeventhandler", 56 "hicollie:libhicollie", 57 "hilog:libhilog", 58 "hisysevent:libhisysevent", 59 "hitrace:hitrace_meter", 60 "ipc:ipc_single", 61 ] 62 63 if (defined(global_parts_info) && 64 defined(global_parts_info.barrierfree_accessibility)) { 65 external_deps += [ "accessibility:accessibility_common" ] 66 } 67 part_name = "window_manager" 68 subsystem_name = "window" 69} 70