• 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
17acfwk_path = "../../../frameworks/acfwk"
18
19config("accessibilityconfig_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "${acfwk_path}/include",
24    "../../../common/log/include",
25    "../../../common/interface/include",
26  ]
27
28  defines = [
29    "AAMS_LOG_TAG = \"accessibility_acfwk\"",
30    "AAMS_LOG_DOMAIN = 0xD001D03",
31  ]
32
33  defines += accessibility_default_defines
34
35  if (build_variant == "user") {
36    defines += [ "RELEASE_VERSION" ]
37  }
38}
39
40config("accessibilityconfig_public_config") {
41  include_dirs = [ "include" ]
42}
43
44acfwk_src = [
45  "${acfwk_path}/../../interfaces/kits/napi/src/napi_accessibility_config_observer.cpp",
46  "${acfwk_path}/src/accessibility_config_impl.cpp",
47  "${acfwk_path}/src/accessibility_config.cpp",
48]
49
50ohos_shared_library("accessibilityconfig") {
51  branch_protector_ret = "pac_ret"
52  sanitize = {
53    integer_overflow = true
54    ubsan = true
55    boundary_sanitize = true
56    cfi = false
57    cfi_cross_dso = false
58    debug = false
59  }
60
61  sources = acfwk_src
62  configs = [
63    ":accessibilityconfig_private_config",
64    "../../../resources/config/build:coverage_flags",
65  ]
66
67  public_configs = [ ":accessibilityconfig_public_config" ]
68
69  deps = [
70    "../../../common/interface:accessibility_interface",
71    "../common:accessibility_common",
72  ]
73
74  external_deps = [
75    "c_utils:utils",
76    "eventhandler:libeventhandler",
77    "ffrt:libffrt",
78    "hilog:libhilog",
79    "init:libbeget_proxy",
80    "init:libbegetutil",
81    "input:libmmi-client",
82    "ipc:ipc_single",
83    "napi:ace_napi",
84    "samgr:samgr_proxy",
85  ]
86  innerapi_tags = [ "platformsdk" ]
87  install_enable = true
88
89  subsystem_name = "barrierfree"
90  part_name = "accessibility"
91}
92