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_private_command_capi.cpp",
32    "src/inputmethod_text_avoid_info_capi.cpp",
33    "src/inputmethod_text_config_capi.cpp",
34    "src/inputmethod_texteditor_proxy_capi.cpp",
35    "src/native_capi_utils.cpp",
36    "src/native_text_changed_listener.cpp",
37  ]
38  include_dirs = [
39    "include",
40    "${inputmethod_path}/interfaces/kits/c",
41  ]
42  deps = [ "${inputmethod_path}/interfaces/inner_api/inputmethod_controller:inputmethod_client" ]
43
44  external_deps = [
45    "c_utils:utils",
46    "hilog:libhilog",
47    "input:libmmi-client",
48    "ipc:ipc_single",
49  ]
50
51  innerapi_tags = [ "ndk" ]
52  subsystem_name = "inputmethod"
53  part_name = "imf"
54}
55