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