• 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")
16import("../../../multimodalinput_mini.gni")
17
18ohos_shared_library("ani_pointer") {
19  branch_protector_ret = "pac_ret"
20  sanitize = {
21    integer_overflow = true
22    ubsan = true
23    boundary_sanitize = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  configs = [ "${mmi_path}:coverage_flags" ]
30
31  cflags_cc = [
32    "-Wno-unused-function",
33    "-Wno-unused-const-variable",
34  ]
35  sources = [ "src/pointer.cpp" ]
36
37  include_dirs = [
38    "include",
39    "${mmi_path}/util/common/include",
40    "${mmi_path}/tools/event_inject/include",
41    "${mmi_path}/interfaces/native/innerkits/proxy/include",
42  ]
43
44  deps = [
45    "${mmi_path}/frameworks/proxy:libmmi-client",
46    "${mmi_path}/util:libmmi-util",
47  ]
48
49  external_deps = [
50    "c_utils:utils",
51    "eventhandler:libeventhandler",
52    "hilog:libhilog",
53    "ipc:ipc_core",
54    "runtime_core:ani",
55  ]
56
57  subsystem_name = "multimodalinput"
58  part_name = "input"
59  output_extension = "so"
60}
61
62generate_static_abc("pointer_abc") {
63  base_url = "./ets"
64  files = [ "./ets/@ohos.multimodalInput.pointer.ets" ]
65  dst_file = "$target_out_dir/pointer.abc"
66  out_puts = [ "$target_out_dir/pointer.abc" ]
67  is_boot_abc = "True"
68  device_dst_file = "/system/framework/pointer.abc"
69}
70
71ohos_prebuilt_etc("pointer_abc_etc") {
72  source = "$target_out_dir/pointer.abc"
73  module_install_dir = "framework"
74  subsystem_name = "multimodalinput"
75  part_name = "input"
76  deps = [ ":pointer_abc" ]
77}
78
79group("ani_pointer_package") {
80  deps = [
81    ":ani_pointer",
82    ":pointer_abc_etc",
83  ]
84}
85