• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//build/ohos.gni")
15import("../../windowmanager_aafwk.gni")
16
17ohos_shared_library("libintention_event") {
18  branch_protector_ret = "pac_ret"
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23  }
24  include_dirs = [
25    "./include",
26    "${window_base_path}/wm/include",
27    "${window_base_path}/window_scene/session/host/include",
28    "${accessibility_path}/interfaces/innerkits/common/include/",
29  ]
30
31  sources = [ "src/intention_event_manager.cpp" ]
32
33  deps = [
34    "${window_base_path}/utils:libwmutil",
35    "../common:window_scene_common",
36    "../session:scene_session",
37    "../session_manager:scene_session_manager",
38  ]
39
40  external_deps = [
41    "ability_runtime:app_manager",
42    "ace_engine:ace_uicontent",
43    "c_utils:utils",
44    "eventhandler:libeventhandler",
45    "graphic_2d:libcomposer",
46    "graphic_2d:window_animation",
47    "hilog:libhilog",
48    "hisysevent:libhisysevent",
49    "hitrace:hitrace_meter",
50    "input:libmmi-client",
51  ]
52
53  defines = []
54
55  if (defined(global_parts_info) &&
56      defined(global_parts_info.barrierfree_accessibility)) {
57    external_deps += [ "accessibility:accessibility_common" ]
58  }
59
60  if (!defined(global_parts_info) ||
61      defined(global_parts_info.inputmethod_imf)) {
62    imf_enable = true
63  } else {
64    imf_enable = false
65  }
66  print("imf_enable: ", imf_enable)
67
68  if (imf_enable == true) {
69    external_deps += [ "imf:inputmethod_client" ]
70    defines += [ "IMF_ENABLE" ]
71  }
72
73  part_name = "window_manager"
74  subsystem_name = "window"
75}
76