• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("inputmethodengine_native_config") {
17  visibility = [ ":*" ]
18  include_dirs = [ "include" ]
19}
20
21config("inputmethodengine_native_public_config") {
22  visibility = []
23  include_dirs = [ "include" ]
24}
25
26ohos_shared_library("inputmethodengine") {
27  sources = [
28    "//base/miscservices/inputmethod/services/src/global.cpp",
29    "src/input_method_engine_module.cpp",
30    "src/js_input_method_engine.cpp",
31    "src/js_input_method_engine_listener.cpp",
32    "src/js_input_method_engine_registry.cpp",
33    "src/js_input_method_engine_utils.cpp",
34    "src/js_keyboard_controller.cpp",
35    "src/js_keyboard_delegate.cpp",
36    "src/js_text_input_client.cpp",
37  ]
38
39  configs = [ ":inputmethodengine_native_config" ]
40
41  deps = [
42    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
43    "//base/miscservices/inputmethod/frameworks/inputmethod_ability:inputmethod_ability",
44    "//base/miscservices/inputmethod/services:inputmethod_service",
45    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
46    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
47    "//foundation/aafwk/standard/interfaces/innerkits/app_manager:app_manager",
48    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
49    "//foundation/aafwk/standard/interfaces/innerkits/intent:intent",
50    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
51    "//foundation/ace/napi/:ace_napi",
52    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
53    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
54    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
55    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
56    "//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single",
57    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
58    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
59    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
60    "//utils/native/base:utils",
61  ]
62
63  external_deps = [
64    "ability_runtime:runtime",
65    "hiviewdfx_hilog_native:libhilog",
66    "ipc:ipc_core",
67  ]
68
69  public_configs = [ ":inputmethodengine_native_public_config" ]
70
71  relative_install_dir = "module"
72  subsystem_name = "miscservices"
73  part_name = "inputmethod_native"
74}
75