• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//foundation/barrierfree/accessibility/common/log/include",
21    "//foundation/barrierfree/accessibility/interfaces/innerkits/acfwk/include",
22    "//foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/include",
23    "//foundation/barrierfree/accessibility/interfaces/kits/napi/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    "//foundation/barrierfree/accessibility/interfaces/innerkits/aafwk:accessibleability",
46    "//foundation/barrierfree/accessibility/interfaces/kits/napi:accessibility",
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    "hiviewdfx_hilog_native:libhilog",
56  ]
57
58  relative_install_dir = "extensionability/"
59  subsystem_name = "barrierfree"
60  part_name = "accessibility"
61}
62