• 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
17ohos_shared_library("accessibility_config_ani") {
18  include_dirs = [
19    "../../../../common/log/include",
20    "../../../../common/interface/include",
21    "../../../../frameworks/acfwk/include",
22    "./include",
23  ]
24  sanitize = {
25    integer_overflow = true
26    ubsan = true
27    boundary_sanitize = true
28    cfi = true
29    cfi_cross_dso = true
30    debug = false
31  }
32  deps = [
33    "../../../innerkits/acfwk:accessibilityconfig",
34    "../../../innerkits/common:accessibility_common",
35  ]
36
37  external_deps = [
38    "eventhandler:libeventhandler",
39    "ffrt:libffrt",
40    "hilog:libhilog",
41    "input:libmmi-client",
42    "runtime_core:ani",
43    "runtime_core:ani_helpers",
44  ]
45  sources = [
46    "../src/accessibility_utils_ani.cpp",
47    "./src/ani_accessibility_config.cpp",
48    "./src/ani_register.cpp",
49  ]
50  part_name = "accessibility"
51  subsystem_name = "barrierfree"
52  output_extension = "so"
53}
54
55generate_static_abc("accessibility_config_ani_abc") {
56  base_url = "./ets"
57  files = [ "./ets/@ohos.accessibility.config.ets" ]
58  dst_file = "$target_out_dir/accessibility_config.abc"
59  out_puts = [ "$target_out_dir/accessibility_config.abc" ]
60
61  is_boot_abc = "True"
62  device_dst_file = "/system/framework/accessibility_config.abc"
63}
64
65ohos_prebuilt_etc("accessibility_config_ani_abc_etc") {
66  source = "$target_out_dir/accessibility_config.abc"
67  module_install_dir = "framework"
68  part_name = "accessibility"
69  subsystem_name = "barrierfree"
70  deps = [ ":accessibility_config_ani_abc" ]
71}
72