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 14# Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved. 15import("//build/ohos.gni") 16import("//build/test.gni") 17import("//foundation/multimodalinput/input/multimodalinput_mini.gni") 18config("virtual_device_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "include", 23 "//utils/native/base/include", 24 ] 25} 26 27config("virtual_device_public_config") { 28 include_dirs = [ 29 "include", 30 "//utils/native/base/include", 31 ] 32} 33 34ohos_shared_library("libmmi-virtual-device") { 35 sources = [ 36 "src/virtual_device.cpp", 37 "src/virtual_finger.cpp", 38 "src/virtual_gamepad.cpp", 39 "src/virtual_joystick.cpp", 40 "src/virtual_keyboard.cpp", 41 "src/virtual_keyboard_consumer_ctrl.cpp", 42 "src/virtual_keyboard_ext.cpp", 43 "src/virtual_keyboard_sys_ctrl.cpp", 44 "src/virtual_knob.cpp", 45 "src/virtual_knob_consumer_ctrl.cpp", 46 "src/virtual_knob_mouse.cpp", 47 "src/virtual_knob_sys_ctrl.cpp", 48 "src/virtual_mouse.cpp", 49 "src/virtual_remote_control.cpp", 50 "src/virtual_stylus.cpp", 51 "src/virtual_touchpad.cpp", 52 "src/virtual_touchscreen.cpp", 53 "src/virtual_trackball.cpp", 54 "src/virtual_trackpad.cpp", 55 "src/virtual_trackpad_mouse.cpp", 56 "src/virtual_trackpad_sys_ctrl.cpp", 57 ] 58 59 configs = [ ":virtual_device_config" ] 60 61 deps = [ "//utils/native/base:utils" ] 62 63 install_enable = true 64 part_name = "multimodalinput_base" 65} 66 67ohos_executable("mmi-virtual-device-manager") { 68 sources = [ "src/mmi_virtual_device_main.cpp" ] 69 70 configs = [ ":virtual_device_public_config" ] 71 72 deps = [ 73 "//foundation/multimodalinput/input/patch/diff_libinput_mmi:libinput-third-mmi", 74 "//foundation/multimodalinput/input/tools/virtual_device_manager:libmmi-virtual-device", 75 ] 76 77 install_enable = true 78 part_name = "multimodalinput_base" 79} 80