• 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    "../../../../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  branch_protector_ret = "pac_ret"
34  sanitize = {
35    integer_overflow = true
36    ubsan = true
37    boundary_sanitize = true
38    cfi = false
39    cfi_cross_dso = false
40    debug = false
41  }
42
43  sources = [
44    "src/accessibility_extension.cpp",
45    "src/accessibility_extension_context.cpp",
46    "src/accessibility_extension_module_loader.cpp",
47    "src/napi_accessibility_element.cpp",
48    "src/napi_accessibility_extension.cpp",
49    "src/napi_accessibility_extension_context.cpp",
50  ]
51
52  configs = [ ":accessibility_extension_module_config" ]
53
54  deps = [
55    "../../../innerkits/aafwk:accessibleability",
56    "./../../../innerkits/common:accessibility_common",
57  ]
58
59  external_deps = [
60    "ability_runtime:ability_context_native",
61    "ability_runtime:abilitykit_native",
62    "ability_runtime:app_context",
63    "ability_runtime:runtime",
64    "c_utils:utils",
65    "common_event_service:cesfwk_innerkits",
66    "hilog:libhilog",
67    "input:libmmi-client",
68    "napi:ace_napi",
69  ]
70
71  relative_install_dir = "extensionability/"
72  subsystem_name = "barrierfree"
73  part_name = "accessibility"
74}
75