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. 13 14import("//build/ohos.gni") 15 16ohos_ndk_library("libohinputmethod") { 17 output_name = "ohinputmethod" 18 output_extension = "so" 19 ndk_description_file = "./libohinputmethodndk.json" 20 min_compact_version = "12" 21 system_capability = "SystemCapability.MiscServices.InputMethodFramework" 22 system_capability_headers = [ 23 "inputmethod/inputmethod_controller_capi.h", 24 "inputmethod/inputmethod_attach_options_capi.h", 25 "inputmethod/inputmethod_cursor_info_capi.h", 26 "inputmethod/inputmethod_inputmethod_proxy_capi.h", 27 "inputmethod/inputmethod_private_command_capi.h", 28 "inputmethod/inputmethod_text_avoid_info_capi.h", 29 "inputmethod/inputmethod_text_config_capi.h", 30 "inputmethod/inputmethod_text_editor_proxy_capi.h", 31 "inputmethod/inputmethod_types_capi.h", 32 ] 33} 34 35ohos_ndk_headers("libohinputmethod_header") { 36 dest_dir = "$ndk_headers_out_dir/inputmethod" 37 sources = [ 38 "./include/inputmethod_attach_options_capi.h", 39 "./include/inputmethod_controller_capi.h", 40 "./include/inputmethod_cursor_info_capi.h", 41 "./include/inputmethod_inputmethod_proxy_capi.h", 42 "./include/inputmethod_private_command_capi.h", 43 "./include/inputmethod_text_avoid_info_capi.h", 44 "./include/inputmethod_text_config_capi.h", 45 "./include/inputmethod_text_editor_proxy_capi.h", 46 "./include/inputmethod_types_capi.h", 47 ] 48} 49