1# Copyright (C) 2022 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") 15 16accessibility_common_path = "../../../frameworks/common" 17 18config("accessibility_common_private_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ "../../../common/log/include" ] 22 23 defines = [ 24 "AAMS_LOG_TAG = \"accessibility_common\"", 25 "AAMS_LOG_DOMAIN = 0xD001D04", 26 ] 27} 28 29config("accessibility_common_public_config") { 30 include_dirs = [ "include" ] 31} 32 33accessibility_common_src = [ 34 "${accessibility_common_path}/../../interfaces/kits/napi/src/napi_accessibility_utils.cpp", 35 "${accessibility_common_path}/src/accessibility_ability_info.cpp", 36 "${accessibility_common_path}/src/accessibility_caption.cpp", 37 "${accessibility_common_path}/src/accessibility_constants.cpp", 38 "${accessibility_common_path}/src/accessibility_element_info.cpp", 39 "${accessibility_common_path}/src/accessibility_event_info.cpp", 40 "${accessibility_common_path}/src/accessibility_permission.cpp", 41 "${accessibility_common_path}/src/accessibility_window_info.cpp", 42 "${accessibility_common_path}/src/accessibility_gesture_inject_path.cpp", 43] 44 45ohos_shared_library("accessibility_common") { 46 branch_protector_ret = "pac_ret" 47 sanitize = { 48 integer_overflow = true 49 ubsan = true 50 boundary_sanitize = true 51 cfi = true 52 cfi_cross_dso = true 53 debug = false 54 } 55 56 sources = accessibility_common_src 57 configs = [ 58 ":accessibility_common_private_config", 59 "../../../resources/config/build:coverage_flags", 60 ] 61 62 public_configs = [ ":accessibility_common_public_config" ] 63 64 install_enable = true 65 66 external_deps = [ 67 "access_token:libaccesstoken_sdk", 68 "hilog:libhilog", 69 "input:libmmi-client", 70 "ipc:ipc_single", 71 "napi:ace_napi", 72 ] 73 innerapi_tags = [ "platformsdk" ] 74 subsystem_name = "barrierfree" 75 part_name = "accessibility" 76} 77