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. 13 14import("//base/inputmethod/imf/inputmethod.gni") 15import("//build/ohos.gni") 16 17config("inputmethod_ability_native_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include", 22 "${inputmethod_path}/frameworks/inputmethod_controller/include", 23 "${inputmethod_path}/interfaces/kits/js/napi/inputmethodengine/include", 24 "${inputmethod_path}/services/include", 25 ] 26} 27config("inputmethod_ability_native_public_config") { 28 visibility = [] 29 include_dirs = [ 30 "include", 31 "${inputmethod_path}/services/include", 32 ] 33} 34 35ohos_shared_library("inputmethod_ability") { 36 sources = [ 37 "${inputmethod_path}/frameworks/inputmethod_controller/src/input_data_channel_proxy.cpp", 38 "${inputmethod_path}/frameworks/inputmethod_controller/src/itypes_util.cpp", 39 "${inputmethod_path}/services/src/input_channel.cpp", 40 "${inputmethod_path}/services/src/input_control_channel_proxy.cpp", 41 "${inputmethod_path}/services/src/message.cpp", 42 "${inputmethod_path}/services/src/message_handler.cpp", 43 "../inputmethod_controller/src/input_method_system_ability_proxy.cpp", 44 "src/input_method_ability.cpp", 45 "src/input_method_agent_proxy.cpp", 46 "src/input_method_agent_stub.cpp", 47 "src/input_method_core_proxy.cpp", 48 "src/input_method_core_stub.cpp", 49 ] 50 51 cflags = [ 52 "-fdata-sections", 53 "-ffunction-sections", 54 "-fvisibility=hidden", 55 "-Os", 56 ] 57 58 configs = [ ":inputmethod_ability_native_config" ] 59 60 deps = [ 61 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 62 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 63 ] 64 65 external_deps = [ 66 "c_utils:utils", 67 "hiviewdfx_hilog_native:libhilog", 68 ] 69 70 public_configs = [ ":inputmethod_ability_native_public_config" ] 71 72 subsystem_name = "inputmethod" 73 part_name = "imf" 74} 75 76ohos_static_library("inputmethod_ability_static") { 77 testonly = true 78 sources = [ 79 "${inputmethod_path}/frameworks/inputmethod_controller/src/input_data_channel_proxy.cpp", 80 "${inputmethod_path}/frameworks/inputmethod_controller/src/itypes_util.cpp", 81 "${inputmethod_path}/services/src/input_channel.cpp", 82 "${inputmethod_path}/services/src/input_control_channel_proxy.cpp", 83 "${inputmethod_path}/services/src/message.cpp", 84 "${inputmethod_path}/services/src/message_handler.cpp", 85 "../inputmethod_controller/src/input_method_system_ability_proxy.cpp", 86 "src/input_method_ability.cpp", 87 "src/input_method_agent_proxy.cpp", 88 "src/input_method_agent_stub.cpp", 89 "src/input_method_core_proxy.cpp", 90 "src/input_method_core_stub.cpp", 91 ] 92 93 configs = [ ":inputmethod_ability_native_config" ] 94 95 deps = [ 96 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 97 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 98 ] 99 100 external_deps = [ 101 "c_utils:utils", 102 "hiviewdfx_hilog_native:libhilog", 103 ] 104 105 public_configs = [ ":inputmethod_ability_native_public_config" ] 106 107 subsystem_name = "inputmethod" 108 part_name = "imf" 109}