• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("//build/test.gni")
16import("../../multimodalinput_mini.gni")
17
18ohos_source_set("input-manager") {
19  sources = [ "src/input_manager_command.cpp" ]
20  stack_protector_ret = true
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25  }
26  include_dirs = [
27    "include",
28    "${mmi_path}/util/common/include",
29  ]
30
31  deps = [
32    "${mmi_path}/frameworks/proxy:libmmi-client",
33    "${mmi_path}/util:libmmi-util",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "hilog:libhilog",
39    "image_framework:image_native",
40  ]
41  subsystem_name = "multimodalinput"
42  part_name = "input"
43}
44
45ohos_executable("uinput") {
46  sources = [ "src/main.cpp" ]
47  configs = [ "${mmi_path}:coverage_flags" ]
48  include_dirs = [ "include" ]
49  stack_protector_ret = true
50  sanitize = {
51    cfi = true
52    cfi_cross_dso = true
53    debug = false
54  }
55  deps = [ "${mmi_path}/tools/inject_event:input-manager" ]
56  external_deps = [
57    "c_utils:utils",
58    "hilog:libhilog",
59  ]
60  subsystem_name = "multimodalinput"
61  part_name = "input"
62}
63
64module_output_path = "multimodalinput/mmi_unit_out"
65ohos_unittest("InjectEventTest") {
66  module_out_path = module_output_path
67  configs = [ "${mmi_path}:coverage_flags" ]
68  include_dirs = [ "include" ]
69
70  sources = [ "test/inject_event_test.cpp" ]
71
72  deps = [
73    "${mmi_path}/frameworks/proxy:libmmi-client",
74    "${mmi_path}/tools/inject_event:input-manager",
75    "${mmi_path}/util:libmmi-util",
76  ]
77
78  external_deps = [
79    "c_utils:utils",
80    "hilog:libhilog",
81    "image_framework:image_native",
82  ]
83}
84
85group("inject_event") {
86  testonly = true
87  deps = [ ":InjectEventTest" ]
88}
89