• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 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("inputmethod_client_native_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include",
21    "${inputmethod_path}/frameworks/common",
22    "${inputmethod_path}/frameworks/native/inputmethod_controller/include",
23    "${inputmethod_path}/services/dfx/include",
24    "${inputmethod_path}/services/include",
25  ]
26}
27
28config("inputmethod_client_native_public_config") {
29  visibility = [ "./*" ]
30  include_dirs = [
31    "include",
32    "${inputmethod_path}/frameworks/common",
33    "${inputmethod_path}/frameworks/native/inputmethod_controller/include",
34    "${inputmethod_path}/frameworks/native/inputmethod_ability/include",
35    "${inputmethod_path}/services/include",
36    "${inputmethod_path}/services/dfx/include",
37  ]
38}
39
40ohos_shared_library("inputmethod_client") {
41  sources = [
42    "${inputmethod_path}/frameworks/native/inputmethod_ability/src/input_method_agent_proxy.cpp",
43    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_proxy.cpp",
44    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_stub.cpp",
45    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_proxy.cpp",
46    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_stub.cpp",
47    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_death_recipient.cpp",
48    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_controller.cpp",
49    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_system_ability_proxy.cpp",
50    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_utils.cpp",
51    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/itypes_util.cpp",
52    "${inputmethod_path}/services/src/message.cpp",
53    "${inputmethod_path}/services/src/message_handler.cpp",
54  ]
55
56  cflags = [
57    "-fdata-sections",
58    "-ffunction-sections",
59    "-fvisibility=hidden",
60    "-Os",
61  ]
62
63  version_script = "inputmethod_client.versionscript"
64
65  innerapi_tags = [ "platformsdk" ]
66
67  deps = [ "${inputmethod_path}/services/dfx:inputmethod_dfx_static" ]
68
69  public_deps = [ "${inputmethod_path}/services/dfx:inputmethod_dfx_static" ]
70
71  external_deps = [
72    "c_utils:utils",
73    "eventhandler:libeventhandler",
74    "hilog:libhilog",
75    "input:libmmi-client",
76    "ipc:ipc_single",
77    "samgr:samgr_proxy",
78  ]
79
80  configs = [ ":inputmethod_client_native_config" ]
81
82  public_configs = [ ":inputmethod_client_native_public_config" ]
83
84  subsystem_name = "inputmethod"
85  part_name = "imf"
86}
87
88ohos_static_library("inputmethod_client_static") {
89  testonly = true
90  sources = [
91    "${inputmethod_path}/frameworks/native/inputmethod_ability/src/input_method_agent_proxy.cpp",
92    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_proxy.cpp",
93    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_stub.cpp",
94    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_proxy.cpp",
95    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_stub.cpp",
96    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_death_recipient.cpp",
97    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_controller.cpp",
98    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_system_ability_proxy.cpp",
99    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_utils.cpp",
100    "${inputmethod_path}/frameworks/native/inputmethod_controller/src/itypes_util.cpp",
101    "${inputmethod_path}/services/src/message.cpp",
102    "${inputmethod_path}/services/src/message_handler.cpp",
103  ]
104
105  public_configs = [ ":inputmethod_client_native_public_config" ]
106
107  public_deps = [ "${inputmethod_path}/services/dfx:inputmethod_dfx_static" ]
108
109  external_deps = [
110    "c_utils:utils",
111    "eventhandler:libeventhandler",
112    "hilog:libhilog",
113    "input:libmmi-client",
114    "ipc:ipc_single",
115    "samgr:samgr_proxy",
116  ]
117
118  subsystem_name = "inputmethod"
119  part_name = "imf"
120}
121