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 "../../../common/interface/src/api_event_reporter.cpp", 48] 49 50ohos_shared_library("accessibilityclient") { 51 branch_protector_ret = "pac_ret" 52 sanitize = { 53 integer_overflow = true 54 ubsan = true 55 boundary_sanitize = true 56 cfi = false 57 cfi_cross_dso = false 58 debug = false 59 } 60 61 sources = asacfwk_src 62 configs = [ 63 ":accessibilityclient_private_config", 64 "../../../resources/config/build:coverage_flags", 65 ] 66 67 public_configs = [ ":accessibilityclient_public_config" ] 68 69 deps = [ 70 "../../../common/interface:accessibility_interface", 71 "../common:accessibility_common", 72 ] 73 74 external_deps = [ 75 "c_utils:utils", 76 "e2fsprogs:libext2_uuid", 77 "ffrt:libffrt", 78 "hilog:libhilog", 79 "init:libbeget_proxy", 80 "init:libbegetutil", 81 "ipc:ipc_single", 82 "samgr:samgr_proxy", 83 ] 84 85 if (product_name != "qemu-arm-linux-min") { 86 external_deps += [ "hiappevent:hiappevent_innerapi" ] 87 } 88 89 innerapi_tags = [ "platformsdk" ] 90 install_enable = true 91 92 subsystem_name = "barrierfree" 93 part_name = "accessibility" 94} 95