• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-2025 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_manager_service.gni")
16
17aafwk_path = "../../../frameworks/aafwk"
18
19config("accessibleability_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "${aafwk_path}/include",
24    "../../../common/log/include",
25    "../../../common/interface/include",
26  ]
27
28  defines = [
29    "AAMS_LOG_TAG = \"accessibility_aakit\"",
30    "AAMS_LOG_DOMAIN = 0xD001D01",
31  ]
32
33  defines += accessibility_default_defines
34
35  if (build_variant == "user") {
36    defines += [ "RELEASE_VERSION" ]
37  }
38}
39
40config("accessibleability_public_config") {
41  include_dirs = [ "include" ]
42}
43
44aafwk_files = [
45  "${aafwk_path}/src/accessibility_element_operator_callback_impl.cpp",
46  "${aafwk_path}/src/accessibility_ui_test_ability_impl.cpp",
47  "${aafwk_path}/src/accessible_ability_channel_client.cpp",
48  "${aafwk_path}/src/accessible_ability_client_impl.cpp",
49  "../../../common/interface/src/api_event_reporter.cpp",
50]
51
52ohos_shared_library("accessibleability") {
53  branch_protector_ret = "pac_ret"
54  sanitize = {
55    integer_overflow = true
56    ubsan = true
57    boundary_sanitize = true
58    cfi = false
59    cfi_cross_dso = false
60    debug = false
61  }
62
63  sources = aafwk_files
64  configs = [ ":accessibleability_private_config" ]
65
66  public_configs = [
67    ":accessibleability_public_config",
68    "../../../resources/config/build:coverage_flags",
69  ]
70
71  deps = [
72    "../../../common/interface:accessibility_interface",
73    "../common:accessibility_common",
74  ]
75
76  external_deps = [
77    "c_utils:utils",
78    "e2fsprogs:libext2_uuid",
79    "ffrt:libffrt",
80    "hilog:libhilog",
81    "init:libbeget_proxy",
82    "init:libbegetutil",
83    "input:libmmi-client",
84    "ipc:ipc_single",
85    "napi:ace_napi",
86    "samgr:samgr_proxy",
87  ]
88
89  if (accessibility_feature_hiviewdfx_hitrace) {
90    external_deps += [ "hitrace:hitrace_meter" ]
91  }
92
93  if (product_name != "qemu-arm-linux-min") {
94    external_deps += [ "hiappevent:hiappevent_innerapi" ]
95  }
96
97  install_enable = true
98
99  subsystem_name = "barrierfree"
100  part_name = "accessibility"
101}
102