1# Copyright (c) 2021 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/miscservices/inputmethod/inputmethod.gni") 14import("//build/ohos.gni") 15 16config("inputmethod_client_native_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "include", 20 "//utils/native/base/include", 21 "${inputmethod_path}/services/include", 22 ] 23} 24 25config("inputmethod_client_native_public_config") { 26 visibility = [] 27 include_dirs = [ 28 "//base/miscservices/inputmethod/frameworks/inputmethod_controller/include", 29 "//base/miscservices/inputmethod/frameworks/inputmethod_ability/include", 30 "//base/miscservices/inputmethod/services/include", 31 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 32 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 33 "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include", 34 "//utils/native/base/include", 35 ] 36} 37 38ohos_shared_library("inputmethod_client") { 39 sources = [ 40 "${inputmethod_path}/frameworks/inputmethod_ability/src/input_method_agent_proxy.cpp", 41 "${inputmethod_path}/services/src/input_attribute.cpp", 42 "${inputmethod_path}/services/src/input_method_property.cpp", 43 "${inputmethod_path}/services/src/keyboard_type.cpp", 44 "${inputmethod_path}/services/src/message.cpp", 45 "${inputmethod_path}/services/src/message_handler.cpp", 46 "src/input_client_proxy.cpp", 47 "src/input_client_stub.cpp", 48 "src/input_data_channel_proxy.cpp", 49 "src/input_data_channel_stub.cpp", 50 "src/input_method_controller.cpp", 51 "src/input_method_system_ability_proxy.cpp", 52 "src/input_method_utils.cpp", 53 ] 54 55 deps = [ 56 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 57 "//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single", 58 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 59 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 60 "//foundation/multimodalinput/input/frameworks/proxy:libmmi-common", 61 "//utils/native/base:utils", 62 ] 63 64 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 65 66 configs = [ ":inputmethod_client_native_config" ] 67 68 public_configs = [ ":inputmethod_client_native_public_config" ] 69 70 subsystem_name = "miscservices" 71 part_name = "inputmethod_native" 72} 73