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 = [ "${inputmethod_path}/services/json:imf_json_static" ] 52 53 configs = [ ":imf_hisysevent_native_config" ] 54 55 public_configs = [ ":imf_hisysevent_native_config" ] 56 57 external_deps = [ 58 "ability_runtime:app_manager", 59 "access_token:libaccesstoken_sdk", 60 "access_token:libtokenid_sdk", 61 "c_utils:utils", 62 "hilog:libhilog", 63 "hisysevent:libhisysevent", 64 "ipc:ipc_single", 65 ] 66 67 subsystem_name = "inputmethod" 68 part_name = "imf" 69} 70