• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-2023 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("//foundation/barrierfree/accessibility/accessibility_aafwk.gni")
16
17aafwk_path = "//foundation/barrierfree/accessibility/frameworks/aafwk"
18
19config("accessibleability_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "${aafwk_path}/include",
24    "//foundation/barrierfree/accessibility/common/log/include",
25  ]
26
27  defines = [
28    "AAMS_LOG_TAG = \"accessibility_aakit\"",
29    "AAMS_LOG_DOMAIN = 0xD001D01",
30  ]
31}
32
33config("accessibleability_public_config") {
34  include_dirs = [
35    "include",
36    "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
37  ]
38}
39
40aafwk_files = [
41  "${aafwk_path}/src/accessibility_element_operator_callback_impl.cpp",
42  "${aafwk_path}/src/accessibility_ui_test_ability_impl.cpp",
43  "${aafwk_path}/src/accessible_ability_channel_client.cpp",
44  "${aafwk_path}/src/accessible_ability_client_impl.cpp",
45]
46
47ohos_shared_library("accessibleability") {
48  sources = aafwk_files
49
50  configs = [ ":accessibleability_private_config" ]
51
52  public_configs = [
53    ":accessibleability_public_config",
54    "//foundation/barrierfree/accessibility/resources/config/build:coverage_flags",
55  ]
56
57  deps = [ "//foundation/barrierfree/accessibility/common/interface:accessibility_interface" ]
58
59  external_deps = [
60    "c_utils:utils",
61    "hitrace_native:hitrace_meter",
62    "hiviewdfx_hilog_native:libhilog",
63    "init:libbeget_proxy",
64    "init:libbegetutil",
65    "input:libmmi-client",
66    "ipc:ipc_core",
67    "samgr:samgr_proxy",
68  ]
69
70  public_deps = [ "//foundation/barrierfree/accessibility/interfaces/innerkits/common:accessibility_common" ]
71
72  install_enable = true
73
74  subsystem_name = "barrierfree"
75  part_name = "accessibility"
76}
77