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