1# Copyright (C) 2022-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("../../../accessibility_aafwk.gni") 16 17aafwk_path = "../../../frameworks/aafwk" 18 19config("accessibleability_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "${aafwk_path}/include", 24 "../../../common/log/include", 25 ] 26 27 defines = [ 28 "AAMS_LOG_TAG = \"accessibility_aakit\"", 29 "AAMS_LOG_DOMAIN = 0xD001D01", 30 ] 31} 32 33config("accessibleability_public_config") { 34 include_dirs = [ "include" ] 35} 36 37aafwk_files = [ 38 "${aafwk_path}/src/accessibility_element_operator_callback_impl.cpp", 39 "${aafwk_path}/src/accessibility_ui_test_ability_impl.cpp", 40 "${aafwk_path}/src/accessible_ability_channel_client.cpp", 41 "${aafwk_path}/src/accessible_ability_client_impl.cpp", 42] 43 44ohos_shared_library("accessibleability") { 45 branch_protector_ret = "pac_ret" 46 sanitize = { 47 integer_overflow = true 48 ubsan = true 49 boundary_sanitize = true 50 cfi = false 51 cfi_cross_dso = false 52 debug = false 53 } 54 55 sources = aafwk_files 56 configs = [ ":accessibleability_private_config" ] 57 58 public_configs = [ 59 ":accessibleability_public_config", 60 "../../../resources/config/build:coverage_flags", 61 ] 62 63 deps = [ "../../../common/interface:accessibility_interface" ] 64 65 external_deps = [ 66 "c_utils:utils", 67 "hilog:libhilog", 68 "hitrace:hitrace_meter", 69 "init:libbeget_proxy", 70 "init:libbegetutil", 71 "input:libmmi-client", 72 "ipc:ipc_single", 73 "samgr:samgr_proxy", 74 ] 75 76 public_deps = [ "../common:accessibility_common" ] 77 install_enable = true 78 79 subsystem_name = "barrierfree" 80 part_name = "accessibility" 81} 82