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") 15import("../../../accessibility_aafwk.gni") 16 17ohos_shared_library("accessibility_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 ] 32 33 defines = [ 34 "AAMS_LOG_TAG = \"accessibility_napi\"", 35 "AAMS_LOG_DOMAIN = 0xD001D10", 36 ] 37 38 if (build_variant == "user") { 39 defines += [ "RELEASE_VERSION" ] 40 } 41 42 sources = [ 43 "./src/napi_accessibility_event_info.cpp", 44 "./src/napi_accessibility_system_ability_client.cpp", 45 "./src/native_module.cpp", 46 ] 47 48 configs = [ "../../../resources/config/build:coverage_flags" ] 49 50 deps = [ 51 "../../innerkits/acfwk:accessibilityconfig", 52 "../../innerkits/asacfwk:accessibilityclient", 53 "../../innerkits/common:accessibility_common", 54 ] 55 56 external_deps = [ 57 "ffrt:libffrt", 58 "hilog:libhilog", 59 "input:libmmi-client", 60 "napi:ace_napi", 61 ] 62 63 relative_install_dir = "module" 64 subsystem_name = "barrierfree" 65 part_name = "accessibility" 66} 67 68group("napi_packages") { 69 deps = [ 70 ":accessibility_napi", 71 "accessibility_config:config_napi", 72 "accessibility_extension:accessibilityextensionability_napi", 73 "accessibility_extension_context:accessibilityextensioncontext_napi", 74 "accessibility_extension_module_loader:accessibility_extension_module", 75 "accessibility_gesture_path:gesturepath_napi", 76 "accessibility_gesture_point:gesturepoint_napi", 77 ] 78} 79