• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 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/config/components/ets_frontend/ets2abc_config.gni")
15import("//build/ohos.gni")
16
17group("ani_packages") {
18  deps = [
19    ":accessibility_ani",
20    ":accessibility_ani_abc_etc",
21    "accessibility_config:accessibility_config_ani",
22    "accessibility_config:accessibility_config_ani_abc_etc",
23  ]
24}
25
26ohos_shared_library("accessibility_ani") {
27  include_dirs = [
28    "../../../common/log/include",
29    "../../../common/interface/include",
30    "../../../frameworks/asacfwk/include",
31    "./include",
32  ]
33  sanitize = {
34    integer_overflow = true
35    ubsan = true
36    boundary_sanitize = true
37    cfi = true
38    cfi_cross_dso = true
39    debug = false
40  }
41  deps = [
42    "../../innerkits/asacfwk:accessibilityclient",
43    "../../innerkits/common:accessibility_common",
44  ]
45
46  external_deps = [
47    "c_utils:utils",
48    "eventhandler:libeventhandler",
49    "ffrt:libffrt",
50    "hilog:libhilog",
51    "input:libmmi-client",
52    "runtime_core:ani",
53    "runtime_core:ani_helpers",
54  ]
55  sources = [
56    "./src/accessibility_utils_ani.cpp",
57    "./src/ani_accessibility_common.cpp",
58    "./src/ani_accessibility_system_ability_client.cpp",
59    "./src/ani_register.cpp",
60  ]
61  part_name = "accessibility"
62  subsystem_name = "barrierfree"
63  output_extension = "so"
64}
65
66generate_static_abc("accessibility_ani_abc") {
67  base_url = "./ets"
68  files = [ "./ets/@ohos.accessibility.ets" ]
69  dst_file = "$target_out_dir/accessibility.abc"
70  out_puts = [ "$target_out_dir/accessibility.abc" ]
71
72  is_boot_abc = "True"
73  device_dst_file = "/system/framework/accessibility.abc"
74}
75
76ohos_prebuilt_etc("accessibility_ani_abc_etc") {
77  source = "$target_out_dir/accessibility.abc"
78  module_install_dir = "framework"
79  part_name = "accessibility"
80  subsystem_name = "barrierfree"
81  deps = [ ":accessibility_ani_abc" ]
82}
83