1# Copyright (C) 2022-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("../../../accessibility_manager_service.gni") 16 17asacfwk_path = "../../../frameworks/asacfwk" 18 19config("accessibilityclient_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "${asacfwk_path}/include", 24 "../../../common/log/include", 25 "../../../common/interface/include", 26 ] 27 28 defines = [ 29 "AAMS_LOG_TAG = \"accessibility_asacfwk\"", 30 "AAMS_LOG_DOMAIN = 0xD001D02", 31 ] 32 33 defines += accessibility_default_defines 34 35 if (build_variant == "user") { 36 defines += [ "RELEASE_VERSION" ] 37 } 38} 39 40config("accessibilityclient_public_config") { 41 include_dirs = [ "include" ] 42} 43 44asacfwk_src = [ 45 "${asacfwk_path}/src/accessibility_system_ability_client_impl.cpp", 46 "${asacfwk_path}/src/accessibility_element_operator_impl.cpp", 47] 48 49ohos_shared_library("accessibilityclient") { 50 branch_protector_ret = "pac_ret" 51 sanitize = { 52 integer_overflow = true 53 ubsan = true 54 boundary_sanitize = true 55 cfi = false 56 cfi_cross_dso = false 57 debug = false 58 } 59 60 sources = asacfwk_src 61 configs = [ 62 ":accessibilityclient_private_config", 63 "../../../resources/config/build:coverage_flags", 64 ] 65 66 public_configs = [ ":accessibilityclient_public_config" ] 67 68 deps = [ 69 "../../../common/interface:accessibility_interface", 70 "../common:accessibility_common", 71 ] 72 73 external_deps = [ 74 "c_utils:utils", 75 "ffrt:libffrt", 76 "hilog:libhilog", 77 "init:libbeget_proxy", 78 "init:libbegetutil", 79 "ipc:ipc_single", 80 "samgr:samgr_proxy", 81 ] 82 innerapi_tags = [ "platformsdk" ] 83 install_enable = true 84 85 subsystem_name = "barrierfree" 86 part_name = "accessibility" 87} 88