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 21 include_dirs = [ 22 "include", 23 "${mmi_path}/util/common/include", 24 ] 25 26 deps = [ 27 "${mmi_path}/frameworks/proxy:libmmi-client", 28 "${mmi_path}/util:libmmi-util", 29 ] 30 31 external_deps = [ 32 "c_utils:utils", 33 "hilog:libhilog", 34 "image_framework:image_native", 35 ] 36 subsystem_name = "multimodalinput" 37 part_name = "input" 38} 39 40ohos_executable("uinput") { 41 sources = [ "src/main.cpp" ] 42 configs = [ "${mmi_path}:coverage_flags" ] 43 include_dirs = [ "include" ] 44 45 deps = [ "${mmi_path}/tools/inject_event:input-manager" ] 46 external_deps = [ 47 "c_utils:utils", 48 "hilog:libhilog", 49 ] 50 subsystem_name = "multimodalinput" 51 part_name = "input" 52} 53 54module_output_path = "multimodalinput/unit_out" 55ohos_unittest("InjectEventTest") { 56 module_out_path = module_output_path 57 configs = [ "${mmi_path}:coverage_flags" ] 58 include_dirs = [ "include" ] 59 60 sources = [ "test/inject_event_test.cpp" ] 61 62 deps = [ 63 "${mmi_path}/frameworks/proxy:libmmi-client", 64 "${mmi_path}/tools/inject_event:input-manager", 65 "${mmi_path}/util:libmmi-util", 66 ] 67 68 external_deps = [ 69 "c_utils:utils", 70 "hilog:libhilog", 71 "image_framework:image_native", 72 ] 73} 74 75group("inject_event") { 76 testonly = true 77 deps = [ ":InjectEventTest" ] 78} 79