1f857971dSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2f857971dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f857971dSopenharmony_ci# you may not use this file except in compliance with the License.
4f857971dSopenharmony_ci# You may obtain a copy of the License at
5f857971dSopenharmony_ci#
6f857971dSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f857971dSopenharmony_ci#
8f857971dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f857971dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f857971dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f857971dSopenharmony_ci# See the License for the specific language governing permissions and
12f857971dSopenharmony_ci# limitations under the License.
13f857971dSopenharmony_ci
14f857971dSopenharmony_ciimport("../../device_status.gni")
15f857971dSopenharmony_ci
16f857971dSopenharmony_ciconfig("devicestatus_vdev_config") {
17f857971dSopenharmony_ci  include_dirs = [ "include" ]
18f857971dSopenharmony_ci}
19f857971dSopenharmony_ci
20f857971dSopenharmony_ciconfig("devicestatus_vdev_public_config") {
21f857971dSopenharmony_ci  include_dirs = [ "include" ]
22f857971dSopenharmony_ci}
23f857971dSopenharmony_ci
24f857971dSopenharmony_ciohos_source_set("devicestatus_vdev") {
25f857971dSopenharmony_ci  sources = [
26f857971dSopenharmony_ci    "src/v_input_device.cpp",
27f857971dSopenharmony_ci    "src/virtual_device.cpp",
28f857971dSopenharmony_ci    "src/virtual_keyboard.cpp",
29f857971dSopenharmony_ci    "src/virtual_mouse.cpp",
30f857971dSopenharmony_ci    "src/virtual_touchscreen.cpp",
31f857971dSopenharmony_ci  ]
32f857971dSopenharmony_ci
33f857971dSopenharmony_ci  configs = [ ":devicestatus_vdev_config" ]
34f857971dSopenharmony_ci
35f857971dSopenharmony_ci  public_configs = [ ":devicestatus_vdev_public_config" ]
36f857971dSopenharmony_ci
37f857971dSopenharmony_ci  deps = [ "${device_status_utils_path}:devicestatus_util" ]
38f857971dSopenharmony_ci
39f857971dSopenharmony_ci  external_deps = [
40f857971dSopenharmony_ci    "c_utils:utils",
41f857971dSopenharmony_ci    "hilog:libhilog",
42f857971dSopenharmony_ci    "input:libmmi-client",
43f857971dSopenharmony_ci    "json:nlohmann_json_static",
44f857971dSopenharmony_ci    "window_manager:libdm",
45f857971dSopenharmony_ci  ]
46f857971dSopenharmony_ci
47f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
48f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
49f857971dSopenharmony_ci}
50f857971dSopenharmony_ci
51f857971dSopenharmony_ciconfig("devicestatus_vdev_builders_config") {
52f857971dSopenharmony_ci  include_dirs = [ "include" ]
53f857971dSopenharmony_ci}
54f857971dSopenharmony_ci
55f857971dSopenharmony_ciconfig("devicestatus_vdev_builders_public_config") {
56f857971dSopenharmony_ci  include_dirs = [ "include" ]
57f857971dSopenharmony_ci}
58f857971dSopenharmony_ci
59f857971dSopenharmony_ciohos_source_set("devicestatus_vdev_builders") {
60f857971dSopenharmony_ci  sources = [
61f857971dSopenharmony_ci    "src/virtual_device_builder.cpp",
62f857971dSopenharmony_ci    "src/virtual_keyboard_builder.cpp",
63f857971dSopenharmony_ci    "src/virtual_mouse_builder.cpp",
64f857971dSopenharmony_ci    "src/virtual_touchscreen_builder.cpp",
65f857971dSopenharmony_ci  ]
66f857971dSopenharmony_ci
67f857971dSopenharmony_ci  configs = [ ":devicestatus_vdev_builders_config" ]
68f857971dSopenharmony_ci
69f857971dSopenharmony_ci  public_configs = [ ":devicestatus_vdev_builders_public_config" ]
70f857971dSopenharmony_ci
71f857971dSopenharmony_ci  deps = [ "${device_status_utils_path}:devicestatus_util" ]
72f857971dSopenharmony_ci
73f857971dSopenharmony_ci  public_deps = [ ":devicestatus_vdev" ]
74f857971dSopenharmony_ci
75f857971dSopenharmony_ci  external_deps = [
76f857971dSopenharmony_ci    "c_utils:utils",
77f857971dSopenharmony_ci    "hilog:libhilog",
78f857971dSopenharmony_ci    "image_framework:image_native",
79f857971dSopenharmony_ci    "input:libmmi-client",
80f857971dSopenharmony_ci    "json:nlohmann_json_static",
81f857971dSopenharmony_ci    "window_manager:libdm",
82f857971dSopenharmony_ci  ]
83f857971dSopenharmony_ci
84f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
85f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
86f857971dSopenharmony_ci}
87f857971dSopenharmony_ci
88f857971dSopenharmony_ciohos_executable("vdevadm") {
89f857971dSopenharmony_ci  include_dirs = [ "include" ]
90f857971dSopenharmony_ci
91f857971dSopenharmony_ci  sources = [ "src/vdevadm.cpp" ]
92f857971dSopenharmony_ci
93f857971dSopenharmony_ci  deps = [
94f857971dSopenharmony_ci    ":devicestatus_vdev_builders",
95f857971dSopenharmony_ci    "${device_status_utils_path}:devicestatus_util",
96f857971dSopenharmony_ci  ]
97f857971dSopenharmony_ci
98f857971dSopenharmony_ci  external_deps = [
99f857971dSopenharmony_ci    "c_utils:utils",
100f857971dSopenharmony_ci    "hilog:libhilog",
101f857971dSopenharmony_ci    "json:nlohmann_json_static",
102f857971dSopenharmony_ci  ]
103f857971dSopenharmony_ci
104f857971dSopenharmony_ci  install_enable = true
105f857971dSopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
106f857971dSopenharmony_ci  part_name = "${device_status_part_name}"
107f857971dSopenharmony_ci}
108