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("../../device_status.gni") 15 16config("devicestatus_vdev_config") { 17 include_dirs = [ "include" ] 18} 19 20config("devicestatus_vdev_public_config") { 21 include_dirs = [ "include" ] 22} 23 24ohos_source_set("devicestatus_vdev") { 25 sources = [ 26 "src/v_input_device.cpp", 27 "src/virtual_device.cpp", 28 "src/virtual_keyboard.cpp", 29 "src/virtual_mouse.cpp", 30 "src/virtual_touchscreen.cpp", 31 ] 32 33 configs = [ ":devicestatus_vdev_config" ] 34 35 public_configs = [ ":devicestatus_vdev_public_config" ] 36 37 deps = [ "${device_status_utils_path}:devicestatus_util" ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "hilog:libhilog", 42 "input:libmmi-client", 43 "json:nlohmann_json_static", 44 "window_manager:libdm", 45 ] 46 47 subsystem_name = "${device_status_subsystem_name}" 48 part_name = "${device_status_part_name}" 49} 50 51config("devicestatus_vdev_builders_config") { 52 include_dirs = [ "include" ] 53} 54 55config("devicestatus_vdev_builders_public_config") { 56 include_dirs = [ "include" ] 57} 58 59ohos_source_set("devicestatus_vdev_builders") { 60 sources = [ 61 "src/virtual_device_builder.cpp", 62 "src/virtual_keyboard_builder.cpp", 63 "src/virtual_mouse_builder.cpp", 64 "src/virtual_touchscreen_builder.cpp", 65 ] 66 67 configs = [ ":devicestatus_vdev_builders_config" ] 68 69 public_configs = [ ":devicestatus_vdev_builders_public_config" ] 70 71 deps = [ "${device_status_utils_path}:devicestatus_util" ] 72 73 public_deps = [ ":devicestatus_vdev" ] 74 75 external_deps = [ 76 "c_utils:utils", 77 "hilog:libhilog", 78 "image_framework:image_native", 79 "input:libmmi-client", 80 "json:nlohmann_json_static", 81 "window_manager:libdm", 82 ] 83 84 subsystem_name = "${device_status_subsystem_name}" 85 part_name = "${device_status_part_name}" 86} 87 88ohos_executable("vdevadm") { 89 include_dirs = [ "include" ] 90 91 sources = [ "src/vdevadm.cpp" ] 92 93 deps = [ 94 ":devicestatus_vdev_builders", 95 "${device_status_utils_path}:devicestatus_util", 96 ] 97 98 external_deps = [ 99 "c_utils:utils", 100 "hilog:libhilog", 101 "json:nlohmann_json_static", 102 ] 103 104 install_enable = true 105 subsystem_name = "${device_status_subsystem_name}" 106 part_name = "${device_status_part_name}" 107} 108