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 16config("accessibility_extension_module_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ 20 "../../../../common/log/include", 21 "../../../innerkits/acfwk/include", 22 "include", 23 "../include", 24 ] 25 26 defines = [ 27 "AAMS_LOG_TAG = \"accessibility_napi\"", 28 "AAMS_LOG_DOMAIN = 0xD001D10", 29 ] 30 31 if (build_variant == "user") { 32 defines += [ "RELEASE_VERSION" ] 33 } 34} 35 36ohos_shared_library("accessibility_extension_module") { 37 branch_protector_ret = "pac_ret" 38 sanitize = { 39 integer_overflow = true 40 ubsan = true 41 boundary_sanitize = true 42 cfi = false 43 cfi_cross_dso = false 44 debug = false 45 } 46 47 sources = [ 48 "src/accessibility_extension.cpp", 49 "src/accessibility_extension_context.cpp", 50 "src/accessibility_extension_module_loader.cpp", 51 "src/napi_accessibility_element.cpp", 52 "src/napi_accessibility_extension.cpp", 53 "src/napi_accessibility_extension_context.cpp", 54 ] 55 56 configs = [ ":accessibility_extension_module_config" ] 57 58 deps = [ 59 "../../../innerkits/aafwk:accessibleability", 60 "./../../../innerkits/common:accessibility_common", 61 ] 62 63 external_deps = [ 64 "ability_base:want", 65 "ability_runtime:ability_context_native", 66 "ability_runtime:ability_manager", 67 "ability_runtime:abilitykit_native", 68 "ability_runtime:app_context", 69 "ability_runtime:runtime", 70 "access_token:libaccesstoken_sdk", 71 "access_token:libtokenid_sdk", 72 "c_utils:utils", 73 "common_event_service:cesfwk_innerkits", 74 "ffrt:libffrt", 75 "hilog:libhilog", 76 "input:libmmi-client", 77 "ipc:ipc_core", 78 "napi:ace_napi", 79 ] 80 81 relative_install_dir = "extensionability/" 82 subsystem_name = "barrierfree" 83 part_name = "accessibility" 84} 85