• 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("//base/inputmethod/imf/inputmethod.gni")
15import("//build/ohos.gni")
16
17config("imf_hisysevent_native_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include",
21    "${inputmethod_path}/frameworks/native/inputmethod_ability/include",
22    "${inputmethod_path}/frameworks/native/inputmethod_controller/include",
23    "${inputmethod_path}/services/json/include",
24  ]
25}
26
27ohos_shared_library("imf_hisysevent") {
28  branch_protector_ret = "pac_ret"
29  sanitize = {
30    boundary_sanitize = true
31    cfi = true
32    cfi_cross_dso = true
33    debug = false
34    integer_overflow = true
35    ubsan = true
36  }
37  cflags_cc = [
38    "-fdata-sections",
39    "-ffunction-sections",
40    "-Os",
41  ]
42  sources = [
43    "src/ima_hisysevent_reporter.cpp",
44    "src/imc_hisysevent_reporter.cpp",
45    "src/imf_hisysevent_info.cpp",
46    "src/imf_hisysevent_reporter.cpp",
47    "src/imf_hisysevent_util.cpp",
48    "src/imsa_hisysevent_reporter.cpp",
49  ]
50
51  deps = [
52    "${inputmethod_path}/interfaces/inner_api/inputmethod_ability:input_method_client_types",
53    "${inputmethod_path}/interfaces/inner_api/inputmethod_controller:input_client_stub",
54    "${inputmethod_path}/services/json:imf_json_static",
55  ]
56
57  configs = [
58    ":imf_hisysevent_native_config",
59    "${inputmethod_path}/interfaces/inner_api/inputmethod_controller:inputmethod_client_native_public_config",
60    "${inputmethod_path}/interfaces/inner_api/inputmethod_ability:inputmethod_ability_native_public_config",
61  ]
62
63  public_configs = [ ":imf_hisysevent_native_config" ]
64
65  external_deps = [
66    "ability_runtime:app_manager",
67    "access_token:libaccesstoken_sdk",
68    "access_token:libtokenid_sdk",
69    "c_utils:utils",
70    "hilog:libhilog",
71    "hisysevent:libhisysevent",
72    "input:libmmi-client",
73    "ipc:ipc_single",
74  ]
75
76  subsystem_name = "inputmethod"
77  part_name = "imf"
78}
79