• 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
16accessibility_common_path = "../../../frameworks/common"
17
18config("accessibility_common_private_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [ "../../../common/log/include" ]
22
23  defines = [
24    "AAMS_LOG_TAG = \"accessibility_common\"",
25    "AAMS_LOG_DOMAIN = 0xD001D04",
26  ]
27}
28
29config("accessibility_common_public_config") {
30  include_dirs = [ "include" ]
31}
32
33accessibility_common_src = [
34  "${accessibility_common_path}/../../interfaces/kits/napi/src/napi_accessibility_utils.cpp",
35  "${accessibility_common_path}/src/accessibility_ability_info.cpp",
36  "${accessibility_common_path}/src/accessibility_caption.cpp",
37  "${accessibility_common_path}/src/accessibility_constants.cpp",
38  "${accessibility_common_path}/src/accessibility_element_info.cpp",
39  "${accessibility_common_path}/src/accessibility_event_info.cpp",
40  "${accessibility_common_path}/src/accessibility_window_info.cpp",
41  "${accessibility_common_path}/src/accessibility_gesture_inject_path.cpp",
42]
43
44ohos_shared_library("accessibility_common") {
45  sources = accessibility_common_src
46  configs = [
47    ":accessibility_common_private_config",
48    "../../../resources/config/build:coverage_flags",
49  ]
50
51  public_configs = [ ":accessibility_common_public_config" ]
52
53  install_enable = true
54
55  external_deps = [
56    "hilog:libhilog",
57    "input:libmmi-client",
58    "napi:ace_napi",
59  ]
60  innerapi_tags = [ "platformsdk" ]
61  subsystem_name = "barrierfree"
62  part_name = "accessibility"
63}
64