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 32ohos_shared_library("accessibility_extension_module") { 33 sources = [ 34 "src/accessibility_extension.cpp", 35 "src/accessibility_extension_context.cpp", 36 "src/accessibility_extension_module_loader.cpp", 37 "src/napi_accessibility_element.cpp", 38 "src/napi_accessibility_extension.cpp", 39 "src/napi_accessibility_extension_context.cpp", 40 ] 41 42 configs = [ ":accessibility_extension_module_config" ] 43 44 deps = [ 45 "../../../innerkits/aafwk:accessibleability", 46 "./../../../innerkits/common:accessibility_common", 47 ] 48 49 external_deps = [ 50 "ability_runtime:ability_context_native", 51 "ability_runtime:abilitykit_native", 52 "ability_runtime:app_context", 53 "ability_runtime:runtime", 54 "c_utils:utils", 55 "common_event_service:cesfwk_innerkits", 56 "hilog:libhilog", 57 "input:libmmi-client", 58 "napi:ace_napi", 59 ] 60 61 relative_install_dir = "extensionability/" 62 subsystem_name = "barrierfree" 63 part_name = "accessibility" 64} 65