• 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("../../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    "eventhandler:libeventhandler",
42    "hilog:libhilog",
43    "input:libmmi-client",
44    "json:nlohmann_json_static",
45    "window_manager:libdm",
46    "ipc:ipc_single",
47  ]
48
49  subsystem_name = "${device_status_subsystem_name}"
50  part_name = "${device_status_part_name}"
51}
52
53config("devicestatus_vdev_builders_config") {
54  include_dirs = [ "include" ]
55}
56
57config("devicestatus_vdev_builders_public_config") {
58  include_dirs = [ "include" ]
59}
60
61ohos_source_set("devicestatus_vdev_builders") {
62  sources = [
63    "src/virtual_device_builder.cpp",
64    "src/virtual_keyboard_builder.cpp",
65    "src/virtual_mouse_builder.cpp",
66    "src/virtual_touchscreen_builder.cpp",
67  ]
68
69  configs = [ ":devicestatus_vdev_builders_config" ]
70
71  public_configs = [ ":devicestatus_vdev_builders_public_config" ]
72
73  deps = [ "${device_status_utils_path}:devicestatus_util" ]
74
75  public_deps = [ ":devicestatus_vdev" ]
76
77  external_deps = [
78    "c_utils:utils",
79    "eventhandler:libeventhandler",
80    "hilog:libhilog",
81    "image_framework:image_native",
82    "input:libmmi-client",
83    "ipc:ipc_single",
84    "json:nlohmann_json_static",
85    "window_manager:libdm",
86  ]
87
88  subsystem_name = "${device_status_subsystem_name}"
89  part_name = "${device_status_part_name}"
90}
91
92ohos_executable("vdevadm") {
93  include_dirs = [ "include" ]
94
95  sources = [ "src/vdevadm.cpp" ]
96
97  deps = [
98    ":devicestatus_vdev_builders",
99    "${device_status_utils_path}:devicestatus_util",
100  ]
101
102  external_deps = [
103    "c_utils:utils",
104    "eventhandler:libeventhandler",
105    "hilog:libhilog",
106    "json:nlohmann_json_static",
107  ]
108
109  install_enable = false
110  subsystem_name = "${device_status_subsystem_name}"
111  part_name = "${device_status_part_name}"
112}
113