122736c2fSopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd. 222736c2fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 322736c2fSopenharmony_ci# you may not use this file except in compliance with the License. 422736c2fSopenharmony_ci# You may obtain a copy of the License at 522736c2fSopenharmony_ci# 622736c2fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 722736c2fSopenharmony_ci# 822736c2fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 922736c2fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1022736c2fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1122736c2fSopenharmony_ci# See the License for the specific language governing permissions and 1222736c2fSopenharmony_ci# limitations under the License. 1322736c2fSopenharmony_ci 1422736c2fSopenharmony_ciimport("//base/inputmethod/imf/inputmethod.gni") 1522736c2fSopenharmony_ciimport("//build/ohos.gni") 1622736c2fSopenharmony_ci 1722736c2fSopenharmony_ciconfig("inputmethod_client_native_config") { 1822736c2fSopenharmony_ci visibility = [ ":*" ] 1922736c2fSopenharmony_ci include_dirs = [ 2022736c2fSopenharmony_ci "include", 2122736c2fSopenharmony_ci "${inputmethod_path}/common/include", 2222736c2fSopenharmony_ci "${inputmethod_path}/frameworks/common", 2322736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/include", 2422736c2fSopenharmony_ci "${inputmethod_path}/interfaces/inner_api/inputmethod_controller/include", 2522736c2fSopenharmony_ci "${inputmethod_path}/services/include", 2622736c2fSopenharmony_ci ] 2722736c2fSopenharmony_ci} 2822736c2fSopenharmony_ci 2922736c2fSopenharmony_ciconfig("inputmethod_client_native_public_config") { 3022736c2fSopenharmony_ci visibility = [ "./*" ] 3122736c2fSopenharmony_ci include_dirs = [ 3222736c2fSopenharmony_ci "include", 3322736c2fSopenharmony_ci "${inputmethod_path}/common/include", 3422736c2fSopenharmony_ci "${inputmethod_path}/frameworks/common", 3522736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/include", 3622736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_ability/include", 3722736c2fSopenharmony_ci "${inputmethod_path}/interfaces/inner_api/inputmethod_ability/include", 3822736c2fSopenharmony_ci "${inputmethod_path}/interfaces/inner_api/inputmethod_controller/include", 3922736c2fSopenharmony_ci "${inputmethod_path}/services/include", 4022736c2fSopenharmony_ci ] 4122736c2fSopenharmony_ci} 4222736c2fSopenharmony_ci 4322736c2fSopenharmony_ciohos_shared_library("inputmethod_client") { 4422736c2fSopenharmony_ci branch_protector_ret = "pac_ret" 4522736c2fSopenharmony_ci sources = [ 4622736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_ability/src/input_method_agent_proxy.cpp", 4722736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_event_monitor_manager.cpp", 4822736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_event_monitor_manager_impl.cpp", 4922736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_system_channel.cpp", 5022736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_stub.cpp", 5122736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_stub.cpp", 5222736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_controller.cpp", 5322736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_system_ability_proxy.cpp", 5422736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_utils.cpp", 5522736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/keyevent_consumer_stub.cpp", 5622736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/system_cmd_channel_stub.cpp", 5722736c2fSopenharmony_ci ] 5822736c2fSopenharmony_ci 5922736c2fSopenharmony_ci cflags_cc = [ 6022736c2fSopenharmony_ci "-fvisibility=hidden", 6122736c2fSopenharmony_ci "-fvisibility-inlines-hidden", 6222736c2fSopenharmony_ci "-fdata-sections", 6322736c2fSopenharmony_ci "-ffunction-sections", 6422736c2fSopenharmony_ci "-Os", 6522736c2fSopenharmony_ci "-Wno-c99-designator", 6622736c2fSopenharmony_ci ] 6722736c2fSopenharmony_ci 6822736c2fSopenharmony_ci version_script = "inputmethod_client.versionscript" 6922736c2fSopenharmony_ci 7022736c2fSopenharmony_ci innerapi_tags = [ "platformsdk" ] 7122736c2fSopenharmony_ci 7222736c2fSopenharmony_ci deps = [ "${inputmethod_path}/common:inputmethod_common" ] 7322736c2fSopenharmony_ci 7422736c2fSopenharmony_ci external_deps = [ 7522736c2fSopenharmony_ci "bundle_framework:appexecfwk_base", 7622736c2fSopenharmony_ci "bundle_framework:appexecfwk_core", 7722736c2fSopenharmony_ci "c_utils:utils", 7822736c2fSopenharmony_ci "eventhandler:libeventhandler", 7922736c2fSopenharmony_ci "hilog:libhilog", 8022736c2fSopenharmony_ci "input:libmmi-client", 8122736c2fSopenharmony_ci "ipc:ipc_single", 8222736c2fSopenharmony_ci "samgr:samgr_proxy", 8322736c2fSopenharmony_ci ] 8422736c2fSopenharmony_ci public_external_deps = [ "ability_base:want" ] 8522736c2fSopenharmony_ci 8622736c2fSopenharmony_ci configs = [ ":inputmethod_client_native_config" ] 8722736c2fSopenharmony_ci 8822736c2fSopenharmony_ci public_configs = [ ":inputmethod_client_native_public_config" ] 8922736c2fSopenharmony_ci 9022736c2fSopenharmony_ci subsystem_name = "inputmethod" 9122736c2fSopenharmony_ci part_name = "imf" 9222736c2fSopenharmony_ci} 9322736c2fSopenharmony_ci 9422736c2fSopenharmony_ciohos_static_library("inputmethod_client_static") { 9522736c2fSopenharmony_ci testonly = true 9622736c2fSopenharmony_ci branch_protector_ret = "pac_ret" 9722736c2fSopenharmony_ci sanitize = { 9822736c2fSopenharmony_ci cfi = true 9922736c2fSopenharmony_ci cfi_cross_dso = true 10022736c2fSopenharmony_ci debug = false 10122736c2fSopenharmony_ci } 10222736c2fSopenharmony_ci sources = [ 10322736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_ability/src/input_method_agent_proxy.cpp", 10422736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_event_monitor_manager.cpp", 10522736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_event_monitor_manager_impl.cpp", 10622736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/ime_system_channel.cpp", 10722736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_client_stub.cpp", 10822736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_data_channel_stub.cpp", 10922736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_controller.cpp", 11022736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_system_ability_proxy.cpp", 11122736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/input_method_utils.cpp", 11222736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/keyevent_consumer_stub.cpp", 11322736c2fSopenharmony_ci "${inputmethod_path}/frameworks/native/inputmethod_controller/src/system_cmd_channel_stub.cpp", 11422736c2fSopenharmony_ci ] 11522736c2fSopenharmony_ci 11622736c2fSopenharmony_ci public_configs = [ ":inputmethod_client_native_public_config" ] 11722736c2fSopenharmony_ci 11822736c2fSopenharmony_ci deps = [ "${inputmethod_path}/common:inputmethod_common" ] 11922736c2fSopenharmony_ci 12022736c2fSopenharmony_ci external_deps = [ 12122736c2fSopenharmony_ci "bundle_framework:appexecfwk_base", 12222736c2fSopenharmony_ci "bundle_framework:appexecfwk_core", 12322736c2fSopenharmony_ci "c_utils:utils", 12422736c2fSopenharmony_ci "eventhandler:libeventhandler", 12522736c2fSopenharmony_ci "hilog:libhilog", 12622736c2fSopenharmony_ci "input:libmmi-client", 12722736c2fSopenharmony_ci "ipc:ipc_single", 12822736c2fSopenharmony_ci "samgr:samgr_proxy", 12922736c2fSopenharmony_ci ] 13022736c2fSopenharmony_ci 13122736c2fSopenharmony_ci public_external_deps = [ "ability_base:want" ] 13222736c2fSopenharmony_ci 13322736c2fSopenharmony_ci subsystem_name = "inputmethod" 13422736c2fSopenharmony_ci part_name = "imf" 13522736c2fSopenharmony_ci} 136