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 17ohos_shared_library("config_napi") { 18 branch_protector_ret = "pac_ret" 19 sanitize = { 20 integer_overflow = true 21 ubsan = true 22 boundary_sanitize = true 23 cfi = false 24 cfi_cross_dso = false 25 debug = false 26 } 27 28 include_dirs = [ 29 "../../../../common/log/include", 30 "../include", 31 "./include", 32 "../../../../common/interface/include", 33 ] 34 35 defines = [ 36 "AAMS_LOG_TAG = \"accessibility_napi\"", 37 "AAMS_LOG_DOMAIN = 0xD001D10", 38 ] 39 40 defines += accessibility_default_defines 41 42 if (build_variant == "user") { 43 defines += [ "RELEASE_VERSION" ] 44 } 45 46 sources = [ 47 "./src/napi_accessibility_config.cpp", 48 "./src/native_module.cpp", 49 ] 50 51 configs = [ "../../../../resources/config/build:coverage_flags" ] 52 53 deps = [ 54 "../../../../common/interface:accessibility_interface", 55 "../../../innerkits/acfwk:accessibilityconfig", 56 "./../../../innerkits/common:accessibility_common", 57 ] 58 59 external_deps = [ 60 "access_token:libaccesstoken_sdk", 61 "access_token:libtokenid_sdk", 62 "ffrt:libffrt", 63 "hilog:libhilog", 64 "input:libmmi-client", 65 "ipc:ipc_core", 66 "napi:ace_napi", 67 ] 68 69 relative_install_dir = "module/accessibility" 70 subsystem_name = "barrierfree" 71 part_name = "accessibility" 72} 73