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("//build/config/components/hdi/hdi.gni")
15import("//build/ohos.gni")
16import("./../input.gni")
17
18ohos_shared_library("libhid_ddk_service_1.0") {
19  sources = [
20    "src/hid_ddk_permission.cpp",
21    "src/hid_ddk_service.cpp",
22  ]
23  include_dirs = [
24    "include/",
25    "include/emit_event_manager/",
26    "${input_driver_path}/utils/include",
27  ]
28
29  deps = [ "${input_driver_path}/ddk_service/src/emit_event_manager:emit_event_manager" ]
30
31  external_deps = [
32    "access_token:libaccesstoken_sdk",
33    "c_utils:utils",
34    "drivers_interface_input:hid_ddk_idl_headers",
35    "hdf_core:libhdf_utils",
36    "hilog:libhilog",
37    "ipc:ipc_single",
38  ]
39
40  install_images = [ chipset_base_dir ]
41  subsystem_name = "hdf"
42  part_name = "drivers_peripheral_input"
43}
44
45ohos_shared_library("libhid_ddk_driver") {
46  sources = [ "src/hid_ddk_driver.cpp" ]
47
48  include_dirs = [
49    "include/",
50    "include/emit_event_manager/",
51    "${input_driver_path}/utils/include",
52  ]
53
54  deps = [ "${input_driver_path}/ddk_service/src/emit_event_manager:emit_event_manager" ]
55
56  external_deps = [
57    "c_utils:utils",
58    "drivers_interface_input:libhid_ddk_stub_1.0",
59    "hdf_core:libhdf_host",
60    "hdf_core:libhdf_ipc_adapter",
61    "hdf_core:libhdf_utils",
62    "hdf_core:libhdi",
63    "hilog:libhilog",
64    "ipc:ipc_single",
65  ]
66
67  shlib_type = "hdi"
68  install_images = [ chipset_base_dir ]
69  subsystem_name = "hdf"
70  part_name = "drivers_peripheral_input"
71}
72
73group("hid_ddk_target") {
74  deps = [
75    ":libhid_ddk_driver",
76    ":libhid_ddk_service_1.0",
77  ]
78}
79