1# Copyright (c) 2024 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. 13import("//base/inputmethod/imf/inputmethod.gni") 14import("//build/ohos.gni") 15 16ohos_shared_library("ohinputmethod") { 17 sanitize = { 18 cfi = true 19 cfi_cross_dso = true 20 cfi_vcall_icall_only = true 21 debug = false 22 } 23 output_name = "ohinputmethod" 24 output_extension = "so" 25 26 sources = [ 27 "src/inputmethod_attach_options_capi.cpp", 28 "src/inputmethod_controller_capi.cpp", 29 "src/inputmethod_cursor_info_capi.cpp", 30 "src/inputmethod_inputmethod_proxy_capi.cpp", 31 "src/inputmethod_message_handler_proxy_capi.cpp", 32 "src/inputmethod_private_command_capi.cpp", 33 "src/inputmethod_text_avoid_info_capi.cpp", 34 "src/inputmethod_text_config_capi.cpp", 35 "src/inputmethod_texteditor_proxy_capi.cpp", 36 "src/native_capi_utils.cpp", 37 "src/native_message_handler_callback.cpp", 38 "src/native_text_changed_listener.cpp", 39 ] 40 include_dirs = [ 41 "include", 42 "${inputmethod_path}/interfaces/kits/c", 43 ] 44 deps = [ "${inputmethod_path}/interfaces/inner_api/inputmethod_controller:inputmethod_client" ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "hilog:libhilog", 49 "input:libmmi-client", 50 "ipc:ipc_single", 51 ] 52 53 innerapi_tags = [ "ndk" ] 54 subsystem_name = "inputmethod" 55 part_name = "imf" 56} 57 58ohos_static_library("ohinputmethod_static") { 59 testonly = true 60 branch_protector_ret = "pac_ret" 61 sanitize = { 62 cfi = true 63 cfi_cross_dso = true 64 cfi_vcall_icall_only = true 65 debug = false 66 } 67 output_name = "ohinputmethod" 68 output_extension = "so" 69 sources = [ 70 "src/inputmethod_attach_options_capi.cpp", 71 "src/inputmethod_controller_capi.cpp", 72 "src/inputmethod_cursor_info_capi.cpp", 73 "src/inputmethod_inputmethod_proxy_capi.cpp", 74 "src/inputmethod_message_handler_proxy_capi.cpp", 75 "src/inputmethod_private_command_capi.cpp", 76 "src/inputmethod_text_avoid_info_capi.cpp", 77 "src/inputmethod_text_config_capi.cpp", 78 "src/inputmethod_texteditor_proxy_capi.cpp", 79 "src/native_capi_utils.cpp", 80 "src/native_message_handler_callback.cpp", 81 "src/native_text_changed_listener.cpp", 82 ] 83 84 include_dirs = [ 85 "include", 86 "${inputmethod_path}/interfaces/kits/c", 87 ] 88 89 deps = [ "${inputmethod_path}/interfaces/inner_api/inputmethod_controller:inputmethod_client_static" ] 90 91 external_deps = [ 92 "c_utils:utils", 93 "hilog:libhilog", 94 "input:libmmi-client", 95 "ipc:ipc_single", 96 ] 97 98 subsystem_name = "inputmethod" 99 part_name = "imf" 100} 101